I am testing the Cryptographic hashing functions for Dart. I can't find any information about DECRYPTION?
Can anyone show me how to decryption of the encrypted value?
And this is example;
import 'dart:convert';
import 'package:crypto/crypto.dart';
void main() async {
var key = utf8.encode('p@ssw0rd');
var bytes = utf8.encode("Dart and Aqueduct makes my life easier. Thank you.");
// TODO: ENCRYPTION
var hmacSha256 = new Hmac(sha256, key); // HMAC-SHA256
var digest = hmacSha256.convert(bytes);
print(“————ENCRYPTION—————“);
print("HMAC digest as bytes: ${digest.bytes}");
print("HMAC digest as hex string: $digest");
print('\r\n');
// TODO: DECRYPTION
????????????
print(“————DECRYPTION—————“);
print(?????????);
}
--
You received this message because you are subscribed to the Google Groups "Dart Core Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to core-dev+unsubscribe@dartlang.org.
To unsubscribe from this group and stop receiving emails from it, send an email to core-dev+u...@dartlang.org.
--
You received this message because you are subscribed to the Google Groups "Dart Core Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to core-dev+u...@dartlang.org.