get Secret Key
fun getSecretKey(sharedPref: SharedPreferences, iv: ByteArray): SecretKey
Content copied to clipboard
This method will convert a random password, saved in sharedPreferences to a SecretKey
Return
SecretKey
Parameters
shared Pref
: the sharedPref, to fetch / save the key
iv
: the encryption nonce