consistent64HexChars method

String consistent64HexChars(
  1. String input
)

Generates a random 64 length hexadecimal string that is consistent with the given input.

Implementation

String consistent64HexChars(String input) {
  final randomBytes = utf8.encode(input);
  final hashed = sha256.convert(randomBytes);

  return hex.encode(hashed.bytes);
}