Skip to content

knottx/aes256-dart

Repository files navigation

AES256

Available at pub.dev

AES CBC mode with 256-bit key, PKCS7 padding, and random salt.

Try on Demo

import 'package:aes256/aes256.dart';

...
// encryption
final encrypted = Aes256.encrypt(
    text: 'text', 
    passphrase: 'passphrase',
);

// decryption
final decrypted = Aes256.decrypt(
    encrypted: encrypted,
    passphrase: 'passphrase',
);
...