hash static method

List<int> hash(
  1. List<int> data
)
override

Computes the MD4 hash (Message Digest 4) for the given input data.

Parameters:

  • data: The input data for which the MD4 hash is computed.

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;
}