Created
May 3, 2022 12:51
-
-
Save developerjamiu/a866598ce101e35ff153a31c194c1f86 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:crypto/crypto.dart'; | |
void main { | |
final key = Key.fromUtf8('qwertyuiopasdfghjklzxcvbnmqwertyuiop'); | |
final encrypter = Encrypter(AES(key)); | |
encrypted = encrypter.encrypt('stringToEncrypt', iv: IV.fromLength(16)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment