decrypt static method

String decrypt(
  1. String aeskey,
  2. String ciphertext
)

解密

Implementation

static String decrypt(String aeskey, String ciphertext) {
  final key = Key.fromUtf8(aeskey);
  final iv = IV.fromLength(0);
  final encrypter = Encrypter(AES(key, mode: AESMode.ecb));
  return encrypter.decrypt64(ciphertext, iv: iv);
}