Calculating SHA2 checksum on string in ABAP -
Calculating SHA2 checksum on string in ABAP -
i trying calculate sha2 checksum on string in abap. have come across functions calculate_hash_for_char , calculate_hmac_for_char. however, calculate_hash_for_char can calculate sha1 (entering sha2 returns nothing).
by contrast, calculate_hmac_for_char seems rely on entries maintained in securestorage, not helpful me (and i'm not sure give me results need).
also, after seeing how fm ssfh_f4_hashalg returns possible values hash algorithms, seems possible values dependent on version of sapseculib have installed.
any ideas how else can calculate sha2 hash in abap?
ok, seems reply utilize class cl_abap_message_digest (and specify sha256 algorithm). info in note 1410294 (support sha2-family message digest , hmac) , requires kernel patch level etc.
abap
Comments
Post a Comment