Re: SHA-256 an email address Link in Velocity

Harry_Rashid
Level 3

Hi,

I am working with Conversant to add in parameters, they have asked if hasing is possible with Marketo, as below - 

  • The dtm_email_hash parameter (dtm_email_hash={{lead.Email Address}}) should be encrypted using SHA256 hashing as that is personal information. Is this possible with market?

Is it possible to SHA256 Hashing an email address in an link?

Thanks,

Haroon

27 REPLIES 27
Harry_Rashid
Level 3

Sorry, we are targeting existing LEADS within Marketo and was told these email addresses will not change for now.

Harry_Rashid
Level 3

Thanks Jay!

Will try this, hopefully it will do the job for me.

Quick one, the endpoint.php in your screen grab is that the file with the php code you provided me?

Thanks again!

SanfordWhiteman
Level 10 - Community Moderator

Quick one, the endpoint.php in your screen grab is that the file with the php code you provided me?

Yep, the idea is you have uploaded that file to a separate server.

Of course you should also add authentication, unless you're going to rely on an de facto "unguessable" URL (such as a GUID).

SanfordWhiteman
Level 10 - Community Moderator
Is there any webhook-compatible service you know of?

Yes... but Community Guidelines prohibit mentioning it.

If I were in your shoes I'd build it in Velocity, knowing it can be done. But obvs. that's easy for me to say.

Harry_Rashid
Level 3

Thanks again

Any chance you can provide an example or velocity code I can look at to build this?

SanfordWhiteman
Level 10 - Community Moderator

My Base64 code is the closest you're going to get to this kind of algorithm. (Though obvs. a different algo.)

Harry_Rashid
Level 3

Cool, is this the code? https://nation.marketo.com/community/product_and_support/blog/2019/10/13/base64-ing-a-string-in-velo... 

I'll see if I can manage to do something.