decryptString static method

String decryptString(
  1. String encrypted
)

the text of encrypted. Throws DecryptException when it was changed or made with another key.

Implementation

static String decryptString(String encrypted) {
  AppConfig config = Dox().config;
  return AESEncryptor.decode(
    encrypted,
    config.appKey,
    previousSecrets: config.previousKeys,
  );
}