hash static method
Computes the MD4 hash (Message Digest 4) for the given input data.
This static method creates an MD4 hash object, updates it with the provided data, computes the hash, and then cleans up the object. The resulting MD4 hash is a 128-bit (16-byte) value.
Parameters:
data
: The input data for which the MD4 hash is computed.
Returns: A List
Implementation
static List<int> hash(List<int> data) {
/// Create an MD4 hash object.
final h = MD4();
/// Update the hash object with the input data.
h.update(data);
/// Compute the MD4 hash.
final digest = h.digest();
/// Clean up the hash object.
h.clean();
/// Return the MD4 hash.
return digest;
}