encryptAesCbc128Padding7 method

Future<String> encryptAesCbc128Padding7(
  1. String plainText,
  2. String key,
  3. String iv
)

Encrypt data by AES algorithm with CCB Padding 7 mode, and return a base64 encoded encrypted string

plainText is the string to be encrypted.

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> encryptAesCbc128Padding7(
        String plainText, String key, String iv) async =>
    await _channel.invokeMethod("Encrypt_AesCbc128Padding7", {
      "data": plainText,
      "key": key,
      "iv": iv,
    });