cipher2 0.0.1 cipher2: ^0.0.1 copied to clipboard
A plugin for AES encrytion and decrytion.
cipher2 #
A flutter plugin project for AES encryption and decrytion.
Getting Started #
This project is a plugin package for flutter which implements AES encrytion and decryption.
String plainText = '我是shyandsy,never give up man';
String key = 'xxxxxxxxxxxxxxxx';
String iv = 'yyyyyyyyyyyyyyyy';
encrytion #
this method will return a based 64 encoded ciphertext
// encrytion
String encryptedString = await Cipher2.encryptAesCbc128Padding7(plainText, key, iv);
decryption #
// decrytion
decryptedString = await Cipher2.decryptAesCbc128Padding7(encryptedString, key, iv);