encryptor 0.0.1 copy "encryptor: ^0.0.1" to clipboard
encryptor: ^0.0.1 copied to clipboard

AES with PKCS7 padding encryption with simple encrypt/decrypt functions.

example/encryptor.dart

import 'package:encryptor/encryptor.dart';
import 'package:flutter/foundation.dart';

void main() {
  var plainText = 'SOME DATA TO ENCRYPT';
  var key = 'Key to encrypt and decrpyt the plain text';

  var encrypted = Encryptor.encrypt(key, plainText);
  var decrypted = Encryptor.decrypt(key, encrypted);

  debugPrint(encrypted);
  debugPrint(decrypted);
}
32
likes
160
pub points
89%
popularity

Publisher

unverified uploader

AES with PKCS7 padding encryption with simple encrypt/decrypt functions.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

crypto, encrypt, flutter

More

Packages that depend on encryptor