fernet library
A Dart library for encrypting and decrypting messages using the Fernet scheme.
Fernet guarantees that a message encrypted using it cannot be manipulated or read without the key. Fernet is an implementation of symmetric (also known as "secret key") authenticated cryptography. Fernet also has support for implementing key rotation via MultiFernet.
Classes
- Fernet
- This class provides both encryption and decryption facilities.
- MultiFernet
- This class implements key rotation for Fernet. It takes a List of Fernet instances and implements the same API with the exception of one additional method: MultiFernet.rotate
Mixins
- ByteUtils
- Utility methods for converting between integer and big endian bytes.
- CryptoUtils
- Utility methods for cryptographic algorithms AES-CBC and HMAC-SHA256.
Exceptions / Errors
- InvalidToken
- See Fernet.decrypt for more information.