Preface – This post is part of the ABAP Programs series.
In ABAP we can perform the following:
Table of Contents
calculate_hash_for_raw
METHOD calculate_hash_for_raw. TRY. cl_abap_message_digest=>calculate_hash_for_raw( EXPORTING if_algorithm = 'SHA256' if_data = iv_data IMPORTING ef_hashstring = ev_sha256 ). CATCH cx_root. " Eh, what're you gonna do? ENDTRY. ENDMETHOD.
calculate_hash_for_string
METHOD calculate_hash_for_string. TRY. cl_abap_message_digest=>calculate_hash_for_char( EXPORTING if_algorithm = 'SHA256' if_data = iv_data IMPORTING ef_hashstring = ev_sha256 ). CATCH cx_root. " Eh, what're you gonna do? ENDTRY. ENDMETHOD.
0 Comments