codec library
Flutter-free encryption core (entrypoint for CLI, servers, and scripts).
Use package:litert_crypto/litert_crypto.dart inside a Flutter app.
Use this entrypoint when handling the LRTC format on a plain Dart VM
(build scripts, backends) where Flutter is not available.
Classes
- LrtcCodec
- Encrypts/decrypts the LRTC format: AES-256-GCM with the envelope header as additional authenticated data.
- LrtcEnvelope
- The LRTC encrypted file format, version 2.
Exceptions / Errors
- DecryptionFailedException
- Decryption failed — wrong key or tampered ciphertext (HMAC verification failed).
- InvalidFormatException
- The input bytes are not in the LRTC format, or the envelope is corrupted.
- The KeyProvider could not supply a key.
- LitertCryptoException
- Common exceptions for litert_crypto.