encryptMessage static method
Implementation
static Uint8List encryptMessage(
Uint8List message, String passphrase, Uint8List salt) {
var keyBytes = Dartez.sodiumUtils.pwhash(passphrase, salt);
var nonce = Dartez.sodiumUtils.nonce();
var s = Dartez.sodiumUtils.close(message, nonce, keyBytes);
return new Uint8List.fromList(nonce.toList() + s.toList());
}