In dart how to decrypt of the encrypted value?

249 views
Skip to first unread message

Niyazi Toros

unread,
Jul 3, 2018, 12:29:10 PM7/3/18
to Dart Core Development

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(?????????); 


}


Bob Nystrom

unread,
Jul 3, 2018, 12:31:29 PM7/3/18
to Niyazi Toros, Dart Core Development
Hi Niyazi.

This mailing list (core-dev@) is for discussing changes to the Dart language and core platform itself.

For general questions on how to use Dart and its libraries, mi...@dartlang.org is the group you want (even though I admit the name is fairly confusing). There are a lot more people using misc@, so you're more likely to get a good answer there.

Cheers!

– bob


--
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.

Seth Ladd

unread,
Jul 3, 2018, 12:44:15 PM7/3/18
to Bob Nystrom, Niyazi Toros, Dart Core Development
Hi! we can also recommend Stack Overflow for "How To" type questions: https://stackoverflow.com/tags/dart

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.
Reply all
Reply to author
Forward
0 new messages