Android-EncryptUtils icon indicating copy to clipboard operation
Android-EncryptUtils copied to clipboard

Not thread safe to put/get values from single instance of EncryptedSharedPreferences

Open AndreySoloviov opened this issue 9 years ago • 0 comments

i'm getting (divide by zero, BadPadding, Illegal Block Size) exceptions, while trying to put/get data from different threads with single instance of EncryptedSharedPreferences.

Encryption's encrypt/decrypt should be synchronized if u are using single instance of ESP, cause of: http://stackoverflow.com/questions/6957406/is-cipher-thread-safe

AndreySoloviov avatar Jun 27 '16 15:06 AndreySoloviov