cryptography icon indicating copy to clipboard operation
cryptography copied to clipboard

Documentation error: `encrypt` instead of `decrypt`

Open mh- opened this issue 3 years ago • 0 comments

Currently on https://pub.dev/documentation/cryptography/latest/cryptography/Cipher-class.html

  // Decrypt
  final clearText = await algorithm.encrypt(
    secretBox,
    secretKey: secretKey,
  );
  print('Cleartext: $clearText');

This should read await algorithm.decrypt(

mh- avatar May 16 '22 09:05 mh-