consistent64HexChars method

  1. @override
String consistent64HexChars(
  1. String input
)
override

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

Implementation

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

  return hex.encode(hashed.bytes);
}