decrypt static method

String decrypt(
  1. String key,
  2. String encrpytedPharse
)

decrypt the plainText with user key and random iv and return plain Text if will encryption randomIV is passed than make sure to pass the same randomIV to decrypt.

Implementation

static String decrypt(
  String key,
  String encrpytedPharse,
) {
  final ei = _encrypterInitilization(
    key: key,
  );
  final encrypter = ei.encrypter;
  final iv = ei.iv;
  return encrypter.decrypt64(encrpytedPharse, iv: iv);
}