hashKey function

Future<String> hashKey(
  1. String key
)

Implementation

Future<String> hashKey(String key) async {
  final result = (await crypto.Sha256().hash(hex.decode(key))).bytes;
  return hex.encode(result);
}