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