Hash MD5 with Macro

Marco Zotta asked on April 14, 2016 10:33

Hi All, I need to pass a link url from a Kentico page (ver.6) to an external website form passing some parameter and a hash code adding a private string to secure it. Is possible to do it with Macros like that?

href="http://www.EXTERNALWEBSITE.XX/PAGE.php?UserID={%currentuser.UserID#%}&FullName={%currentuser.FullName#%}&Email={%currentuser.Email#%}&HashCode=MD5({%currentuser.UserID%}+{%currentuser.Wmail#%}+"PrivateString123")"

Thanks to everyone! Marco

Correct Answer

Dawid Jachnik answered on April 14, 2016 10:57

Hello,

yes, it is possible. You need to create custom macro with string paramater which return MD5 hash.

Here's the documentation how to create macro method and here's the MD5 function

0 votesVote for this answer Unmark Correct answer

Recent Answers


Marco Zotta answered on May 2, 2016 17:10

Thanks Dawid. It works!

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.