Currently, md5_calculate_hash_for_char and md5_calculate_hash_for_raw are used for MD5 calculation. In string Calculation
When using MD5, the former is relatively large, but if the string contains Chinese characters, if it is parsed in other languages (such as Java), the MD5 value may be different. Because md5_calculate_hash_for_char processes the characters before calculating the hash value.
ReadCodeWe can know that the core function is used.
Calculate_hash_for_raw, similarly, calculate_hash_for_char. Therefore, you can use these two functions to calculate MD5.
For example:
span {
font-family: "Courier";
font-size: 12pt;
color: #000000;
Background: # cce8cf;
}< br/>. l1s32 {
color: # 3399ff;
}< br/>. l1s33 {
color: #4da619;
}< br/>. l1s52 {
color: # 0000ff;
}< br/> -->
call function 'calculate _ hash_for_char '
exporting
ALG = 'md5'
DATA = xml_string
importing
hash = hash
exceptions
internal_error = 1
others = 2.
In this way, the MD5 value can be calculated.