tripleDESEncrypt static method

String tripleDESEncrypt(
  1. dynamic data,
  2. String encryptionKey
)

Encrypts data using 3DES technology. Returns a String

Implementation

static String tripleDESEncrypt(dynamic data, String encryptionKey) {
  try {
    final blockCipher = BlockCipher(TripleDESEngine(), encryptionKey);
    return blockCipher.encodeB64(data);
  } catch (error) {
    throw(FlutterWaveError("Unable to encrypt request: $error"));
  }
}