fromAES method
Decrypts AES-encrypted and Base64-encoded String.
The key
should be the same as that given for the AES encryption.
AES暗号化されBase64エンコードされたStringを復号化します。
key
はAES暗号化された際に与えたものと同じものを与えてください。
Implementation
String fromAES(String key) {
assert(key.length >= 32, "Please pass at least 32 characters for [key].");
final encodedKey = Key.fromUtf8(key.substring(0, 32));
final iv = IV.fromUtf8(key.substring(max(0, key.length - 16), key.length));
return Encrypter(AES(encodedKey)).decrypt64(this, iv: iv);
}