Niyazi Toros
2018-07-03 11:48:00 UTC
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('***@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(?????????);
}
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('***@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(?????????);
}
--
For more ways to connect visit https://www.dartlang.org/community
---
You received this message because you are subscribed to the Google Groups "Dart Misc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to misc+***@dartlang.org.
To view this discussion on the web visit https://groups.google.com/a/dartlang.org/d/msgid/misc/0695244d-6df1-415c-9225-7c7fd26a9d12%40dartlang.org.
For more ways to connect visit https://www.dartlang.org/community
---
You received this message because you are subscribed to the Google Groups "Dart Misc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to misc+***@dartlang.org.
To view this discussion on the web visit https://groups.google.com/a/dartlang.org/d/msgid/misc/0695244d-6df1-415c-9225-7c7fd26a9d12%40dartlang.org.