icapps / flutter_secure_file_storage

MIT License
8 stars 2 forks source link

Unhandled Exception: Instance of 'InvalidCipherTextException' #29

Open mauricev opened 8 months ago

mauricev commented 8 months ago

On a Mac flutter app,

[ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: Instance of 'InvalidCipherTextException'
#0      BaseAEADBlockCipher.validateMac (package:pointycastle/src/impl/base_aead_block_cipher.dart:71:7)
#1      GCMBlockCipher.doFinal (package:pointycastle/block/modes/gcm.dart:208:5)
#2      BaseAEADBlockCipher.process (package:pointycastle/src/impl/base_aead_block_cipher.dart:126:12)
#3      EncryptionUtil._doDecrypt (package:flutter_secure_file_storage/src/encryption_util.dart:70:49)
#4      compute.<anonymous closure> (package:flutter/src/foundation/_isolates_io.dart:19:20)
#5      _RemoteRunner._run (dart:isolate:1090:47)
#6      _RemoteRunner._remoteExecute (dart:isolate:1084:12)
#7      _delayEntrypointInvocation.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:300:17)
#8      _RawReceivePort._handleMessage (dart:isolate-patch/isolate_patch.dart:184:12)