Ansicht
Dokumentation

SAPLSECH - Security: MD5 Hash (Copyright by RSA)

SAPLSECH - Security: MD5 Hash (Copyright by RSA)

PERFORM Short Reference   General Material Data  
This documentation is copyright by SAP AG.
SAP E-Book

Cryptograhic Hash Functions

Using cryptographic hash functions, you can calculate a fingerprint, that is a hash value of fixed length, for any amount of data. It is practically impossible two find two different data records that build the same hash value. The original data record cannot be recalculated from the hash value ("One-Way Encryption").

The two best-known hash functions are SHA-1 and MD5, with SHA-1 being regarded as the more secure procedure. SHA-1 creates hash values 20 bits length; MD5 hash values 16 bits long.

SAP-Version of MD5

Copyright

The source was extracted from RFC1321 and "formatted" for SAP-use
- Standard-C function definitions
- indenting,
- Standard-C memcpy() and memset()
- derive 16-bit and 32-bit unsigned integers from SAP_USHORT & SAP_UINT

RFC 1321: Ron Rivest, "The MD5 Message-Digest Algorithm"
MIT Laboratory for Computer Science
and RSA Data Security, Inc.
April 1992

MD5.C - RSA Data Security, Inc., MD5 message-digest algorithm

Copyright (C) 1991-2, RSA Data Security, Inc. Created 1991.
All rights reserved.

License to copy and use this software is granted provided that it is identified as the "RSA Data Security, Inc. MD5 Message-Digest Algorithm" in all material mentioning or referencing this software or this function.

License is also granted to make and use derivative works provided that such works are identified as "derived from the RSA Data Security, Inc. MD5 Message-Digest Algorithm" in all material mentioning or referencing the derived work.

RSA Data Security, Inc. makes no representations concerning either the merchantability of this software or the suitability of this software for any particular purpose. It is provided "as is" without express or implied warranty of any kind.

These notices must be retained in any copies of any part of this documentation and/or software.

Purpose

Functions

  • CALCULATE_HASH_FOR_CHAR Calculate hash value for data of type CHAR
  • CALCULATE_HASH_FOR_RAW Calculate hash value for data of type RAW
  • CONVERT_HASH Convert hash value





General Material Data   Vendor Master (General Section)  
This documentation is copyright by SAP AG.

Length: 2473 Date: 20240520 Time: 110921     sap01-206 ( 41 ms )