-
public class EncryptionUtils
-
-
Method Summary
Modifier and Type Method Description static SecretKeygenerateKey()static SetMPinEncryptedInfoencrypt(String otp, String mPin, String pubKeyValue)static SetMPinEncryptedInfoencrypt(String mPin)static Array<byte>generateIV()static PublicKeygetPublicKey(String key)Alternative method that accepts a PublicKey object directlyinstead of a string representation static StringencryptDataUsingRsa(SecretKey data, PublicKey publicKey)-
-
Method Detail
-
generateKey
static SecretKey generateKey()
-
encrypt
static SetMPinEncryptedInfo encrypt(String otp, String mPin, String pubKeyValue)
-
encrypt
static SetMPinEncryptedInfo encrypt(String mPin)
-
generateIV
static Array<byte> generateIV()
-
getPublicKey
static PublicKey getPublicKey(String key)
Alternative method that accepts a PublicKey object directlyinstead of a string representation
-
encryptDataUsingRsa
static String encryptDataUsingRsa(SecretKey data, PublicKey publicKey)
-
-
-
-