decrypt method
The default value moduleKey -> 'defaultKey' 'defaultKey' is set upon initialize the NUICryptography
Implementation
@override
FutureOr<String> decrypt({required String data, String moduleKey = defaultModuleKey}) async {
//Info to pass into isolate
if(!module.containsKey(moduleKey)){
throw NUICryptoException(cause: NUICryptoError.KEY_NOT_FOUND);
}
try{
return await _doDecryption(data, module[moduleKey]!);
}on Exception catch(e){
logNUI("NUICryptography in Flutter Isolate", "Encryption Exception ${e.toString()}");
rethrow;
}
}