encrypt method

Uint8List encrypt(
  1. Uint8List data
)

Encrypts data passed. The result of this encryption is known as a "Fernet token" and has strong privacy and authenticity guarantees.

Implementation

Uint8List encrypt(final Uint8List data) =>
    encryptAtTime(data, DateTime.now().millisecondsSinceEpoch ~/ 1000);