encrypt_file_loader library

Classes

AesCbcSecretKey
AES secret key for symmetric encryption and decryption using AES in Cipher Block Chaining mode (CBC-mode), as described in NIST SP800-38A.
AesCtrSecretKey
AES secret key for symmetric encryption and decryption using AES in Counter mode (CTR-mode), as described in NIST SP800-38A.
AesGcmSecretKey
EcdhPrivateKey
EcdhPublicKey
EcdsaPrivateKey
EcdsaPublicKey
EncryptFileLoader
EncryptFileLoader is a class that loads, caches, and decrypts.
Hash
A cryptographic hash algorithm implementation.
HkdfSecretKey
HKDF secret key (or password) for key derivation.
HmacSecretKey
Key for signing/verifying with HMAC.
KeyPair<S, T>
A key-pair as returned from key generation.
LoaderConnectionError
Load is failed by SocketException
LoaderEmpty
Load is success but data is empty
LoaderFailed
Load is failed
LoaderFormatError
Load is failed by FormatException
LoaderResult
Result pattern on EncryptFileLoader.loadAndDecrypt
LoaderSuccess
Load is success
LoaderUrlError
Load is failed by HttpException
Pbkdf2SecretKey
PBKDF2 secret key (or password) for key derivation.
RsaOaepPrivateKey
RSAES-OAEP private key for decryption of messages.
RsaOaepPublicKey
RSAES-OAEP public key for decryption of messages.
RsaPssPrivateKey
RSASSA-PSS private key for signing messages.
RsaPssPublicKey
RSASSA-PSS public key for verifying signatures.
RsassaPkcs1V15PrivateKey
RSASSA-PKCS1-v1_5 private key for signing messages.
RsassaPkcs1V15PublicKey
RSASSA-PKCS1-v1_5 public key for signing messages.
TypeAesCbc
see AesCbcSecretKey
TypeAesCtr
see AesCtrSecretKey
TypeAesGcm
see AesGcmSecretKey
TypePlain
non-encrypted file
TypeRsaOaep
see RsaOaepPrivateKey

Enums

EllipticCurve
Elliptic curves supported by ECDSA and ECDH.
LoadResult
Result pattern on EncryptFileLoader.load
ResponseType
Encrypted data is retrieved in the response

Functions

fillRandomBytes(TypedData destination) → void
Fill destination with cryptographically random values.

Typedefs

DecryptResult = ({Uint8List data, String? filename})
Decrypted result from db

Exceptions / Errors

OperationError
Thrown when an operation failed for an operation-specific reason.