decrypt4 method
Encrypt 4
Implementation
Future<String> decrypt4(String data) async {
final cipher = chacha20Poly1305Aead;
/// Choose some 256-bit secret key
final secretKey = SecretKey(__deviceIdSecretKey.codeUnits);
var message = splitMac(
Nonce(<int>[54, 12, 89, 74, 5, 69, 8, 23, 14, 5, 89, 22]).list,
base64.decode(data));
final encrypted =
await cipher.decrypt(message, secretKey: secretKey, aad: [12, 12, 10]);
return utf8.decode(encrypted);
}