This is an lightweight library for save and get data secure into the Keystore which encrypted and decrypted.
implementation 'com.github.tntkhang:keystore-secure:1.1.1'
Call init
before using
KeystoreSecure.init(context);
Encrypt string by:
KeystoreSecure.encrypt(context, STORE_KEY_1, valueToEncrypt);
Decrypt string by:
KeystoreSecure.decrypt(STORE_KEY_1);