decryptMessage method

Uint8List decryptMessage(
  1. dynamic message,
  2. dynamic passphrase,
  3. dynamic salt
)

Implementation

static Uint8List decryptMessage(message, passphrase, salt) {
  var keyBytes = SodiumUtils.pwhash(passphrase, salt);
  return SodiumUtils.open(message, keyBytes);
}