decrypt method

Future<String> decrypt(
  1. String encrypted
)

Implementation

Future<String> decrypt(String encrypted) async {
  await init();

  final iv = IV.fromBase64(encrypted.substring(0, 24));
  return _encrypter.decrypt64(
    encrypted.substring(24),
    iv: iv,
  );
}