Digest/Hash function
The Digest/Hash function produces a digital summary of information called a message digest. Message digests provide a digital identifier for a digital document. The message digest produced by the Digest/Hash function is Base64 encoded.
Message digest functions are mathematical functions that process information to produce a message digest for each unique document. Identical documents have the same message digest, which can be used to ensure that the message received is the same as the message sent.
- Digest/Hash the Input Data with MD5
- Digest/Hash the Input Data with SHA-1
- Digest/Hash the Input Data with SHA-256
The input is the document or string for which you want a digest. For example, MD5 ("Austin was happy that the band played on") =NjJhODJhNTViZmI3Y2YwZDc2NDkxYjc0ZTkzZDlmMTQ=
MD5 is defined in RFC 1321. IBM® App Connect uses the MD5 algorithm included in the JDK security package. The algorithm takes a message of undefined length and outputs a message digest of 128 bits.
SHA-1 is defined by the Federal Information Processing Standards Publication 180-1 (FIPS PUB 180-1). App Connect uses the SHA-1 algorithm included in the JDK security package. SHA-1 takes an input message of any length less than 264 bits and produces a message digest of 160-bits.
SHA-256 is a 256-bit hash function and is compliant with the National Institute of Standards SP 800-131a specification. App Connect uses the SHA-256 algorithm included in the JDK security package. The input is the document or string for which you want a digest. For example, SHA-56 ("Sample Input") =bEzV+7Tz6afzJhY0E5u0Zt1+9uBURb/2pgi2PT9Ms/s=. The hash value is 32 bytes or 256 bits length.
Use Digest/Hash the Input Data with MD5 function to create a Base64 encoded digest of the input data using MD5.
Use the Digest/Hash the Input Data with SHA-1 function to create a Base64 encoded digest of the input data using SHA-1.
Use the Digest/Hash the Input Data with SHA-256 function to create a Base64 encoded digest of the input data using SHA-256.