DATA Step, Macro, Functions and more

Decode hashed data

Reply
Occasional Contributor
Posts: 9

Decode hashed data

Hi There,

Is there any SAS function to decode hashed data. I ave hashed the data using MD5 function and wants to know how can I convert the MD5 values back to original.

Thanks in advance.
PROC Star
Posts: 389

Re: Decode hashed data

Hi,

MD5 is a one-way secure hash function and as such you are not supposed to be able to convert an MD5 hash value back to the original. MD5 is/was often used for verifying passwords without having to store the password, and so you can imagine how unsuitable it would be if you could easily derive a password from its MD5 hash Smiley Happy

For more info on SAS MD5 function see http://support.sas.com/documentation/cdl/en/lrdict/63026/HTML/default/a003064419.htm and for info on the MD5 algorithm see http://en.wikipedia.org/wiki/MD5

Cheers
Paul
Super Contributor
Posts: 259

Re: Decode hashed data

MD5 is a one-way hash-function, restoring the originial value is not easy. I doubt that it can be done within SAS.

More information about the md5-algorithm can be found at http://en.wikipedia.org/wiki/Md5
Occasional Contributor
Posts: 9

Re: Decode hashed data

Thanks guys!!
Ask a Question
Discussion stats
  • 3 replies
  • 1169 views
  • 0 likes
  • 3 in conversation