Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Hashcode to readable string format

Former Member
0 Likes
2,895

Hello Everyone,

I need a function module or any code for converting from hashcode to string. I Googled a lot but could not find the solution.

Example:

B35640911EBA4565 is my hash code. After converting I should get "qwer123!" as output string. So how can I convert? And the hash key is of type RAW(8).

Regards

Satish D R

2 REPLIES 2
Read only

Former Member
0 Likes
1,526

Not possible. Hash is a one way function.

Imagine, a 1gb file can have RAW8 hash. If reversing was possible, it would be world's best compression algorithm.

Read only

Former Member
0 Likes
1,526

As per definition, the result of a cryptographic hash function is/should be irreversible, i.e. one cannot/shouldn't be able to retrieve the plain text password from the hash value.

Check this article to see more on the hash algorithms in SAP.

http://www.daniel-berlin.de/security/sap-sec/password-hash-algorithms/