-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
I'm not sure where the best place is to put this is (maybe a utility method on the ExIntercom global?), but it's needed for "secure mode" messaging through the web or native clients.
It doesn't need to be complicated --- just something like this
defmodule ExIntercom do
def hmac_tokenize(value, intercom_secure_key) do
:sha256
|> :crypto.hmac(intercom_secure_key, value)
|> Base.encode16
end
endHappy to open up a PR for this if you feel it's a good idea
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels