This project shows an example of how to use the Android Keystore to encrypt and decrypt String values.
See full example in CryptoToolboxImpl class
The project was tested on Android 14. Use latest Android Studio version
Interface for a CryptoToolbox
Implementation of CryptoToolbox. Use it as it seems fit
An exception class to use in CryptoToolbox