Setting PIN
Set Card PIN
Collect PIN from user
Encrypt PIN using RSA encryption with PKCS1_v1_5 cipher
Get public key from documentation
Create a cipher using the public key and and the PKCS1 v1.5 signature
Encode the PIN string as Bytes with UTF-8
Encrypt the byte string with the cipher key
Encode the encrypted encrypted pin with Base64
Last updated