Skip to content
pubscout

aes_crypt_null_safe

3.1.1, released a year ago by codingfries.com

Dart encryption library for files, plain text and binary data using AES Crypt format.

$ flutter pub add aes_crypt_null_safe
Source repository

What it does

Provides 256-bit AES encryption and decryption for files, text, and binary data in pure Dart. Fully compatible with the AES Crypt file specification version 2 across all platforms including the web. It also supports SHA256 and HMAC-SHA256 computations.

AI-written summary of version 3.1.1, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to encrypt or decrypt files compatible with the AES Crypt standard format.
  • You want to secure plain text strings or binary data inside a Dart or Flutter app using 256-bit AES.
  • You require pure Dart cryptographic operations that work across all platforms including web.

Skip it when

  • You are looking for hardware-backed secure storage or OS keychain wrappers instead of file/data encryption.
  • You need high-level database encryption rather than general file/stream encryption.

Strengths

  • Compatible with standard AES Crypt file formats used by other software across operating systems.
  • Supports Unicode passwords, custom overwrite modes, and both synchronous and asynchronous operations.
  • Implemented in pure Dart making it work on all platforms including web.

Weaknesses

  • Backwards compatibility with version 1 of the AES Crypt specification is untested.
  • Limited built-in cipher modes for custom low-level encryption compared to heavier crypto libraries.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
1
var crypt = AesCrypt('my cool password');
crypt.setOverwriteMode(AesCryptOwMode.warn);
crypt.encryptFileSync('srcfile.txt');
crypt.decryptFileSync('srcfile.txt.aes');

Alternatives

Packages that do the same job and could replace aes_crypt_null_safe.

Works with

Packages commonly used together with aes_crypt_null_safe: ones it builds on, ones built on it, and its own family.