Skip to content

Instantly share code, notes, and snippets.

@developerjamiu
Created May 3, 2022 12:51
Show Gist options
  • Save developerjamiu/a866598ce101e35ff153a31c194c1f86 to your computer and use it in GitHub Desktop.
Save developerjamiu/a866598ce101e35ff153a31c194c1f86 to your computer and use it in GitHub Desktop.
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