首页 > 代码库 > SAP ABAP编程 字符串加密-MD5_CALCULATE_HASH_FOR_CHAR

SAP ABAP编程 字符串加密-MD5_CALCULATE_HASH_FOR_CHAR

DATAstr1 TYPE LENGTH 12 VALUE ‘zxcv‘,
      str2 TYPE LENGTH 32,
      str3 TYPE LENGTH 32.


CALL FUNCTION ‘MD5_CALCULATE_HASH_FOR_CHAR‘
  EXPORTING
    data    str1
    length  0
*   VERSION = 1
  IMPORTING
    hash    str2.

WRITE‘原来:‘str1.

WRITE‘改动:‘str2.

技术分享


SAP ABAP编程 字符串加密-MD5_CALCULATE_HASH_FOR_CHAR