AESEncryptionManager

class AESEncryptionManager

Encryption / Decryption service using the AES algorithm example for nullbeans.com https://nullbeans.com/how-to-encrypt-decrypt-files-byte-arrays-in-java-using-aes-gcm/#Generating_an_AES_key

Constructors

AESEncryptionManager
Link copied to clipboard
fun AESEncryptionManager()

Functions

decryptData
Link copied to clipboard
fun decryptData(sharedPref: SharedPreferences, encryptPassword: String?, encryptedData: ByteArray): ByteArray

This method will decrypt the given data

encryptData
Link copied to clipboard
fun encryptData(sharedPref: SharedPreferences, encryptPassword: String?, data: ByteArray): ByteArray

This method will encrypt the given data