Skip to content

Instantly share code, notes, and snippets.

@mrgcohen
Last active August 29, 2015 14:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mrgcohen/11254725 to your computer and use it in GitHub Desktop.
Save mrgcohen/11254725 to your computer and use it in GitHub Desktop.
Intercom hash setup secure mode
intercom_hash = Base64.encode64(
OpenSSL::HMAC.digest(
OpenSSL::Digest::Digest.new('sha256'),
IntercomRails.config.api_secret,
the_user_id_if_being_sent_otherwise_users_email_address
)
).strip()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment