encrypt Data
fun encryptData(sharedPref: SharedPreferences, encryptPassword: String?, data: ByteArray): ByteArray
Content copied to clipboard
This method will encrypt the given data
Return
Encrypted data in a byte array
Parameters
shared Pref
: the sharedPref, to fetch the key
data
: the data that will be encrypted