on 2014 Feb 07 9:24 AM
Hi All,
We are using Base64 encoding of password for developing one of our application in SAP SRM. The existing code is something like this:
* Put the XSTRING in Base64
&1 = cl_http_utility=>ENCODE_X_BASE64( &2 ).
We have a new requirement to replace Base64 and encode the password using SHA-1 Algorithm.
May I know, how can we achieve this.
Thanks & Regards,
Pavan
Request clarification before answering.
Hi Pavan,
You can use this FM CALCULATE_HASH_FOR_CHAR.
The FM has a parameter ALG which specifies the type of hash algorithm to be used. Default value being 'SHA1' , this will do the job for you.
Hope this solves your issue.
Regards,
Karthik Babu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.