lundi 25 mars 2019

Android and Kotlin programming, hash, encrypt and decrypt example

Click here to view source code of utility functions for SHA-1 hash, AES encryption and decryption, and saving AES secret key and Initialization Vector to Shared Preferences in Android.

This is a good starting point for you if you need to understand :

  • Hashing passwords or any other type of data
  • Encryption and Decryption using AES
  • Serialization and deserialization of data
  • Storing serialized data to Shared Preferences
  • Deserialize data to object from Shared Preferences