decryptAesCbc128Padding7 method

Future<String> decryptAesCbc128Padding7(
  1. String encryptedText,
  2. String key,
  3. String iv
)

Decrypt data by AES algorithm with CCB Padding 7 mode, and return a plain text

encryptedText is a base64 encoded encrypted string.

key the key string, the length of it should be 128bits(16 bytes)

iv the iv string, the length of it should be 128bits(16 bytes)

Implementation

static Future<String> decryptAesCbc128Padding7(
    String encryptedText, String key, String iv) async {
  final decrypted = await _channel.invokeMethod("Decrypt_AesCbc128Padding7", {
    "data": encryptedText,
    "key": key,
    "iv": iv,
  });
  return decrypted;
}