Setting PIN

Set Card PIN

  1. Collect PIN from user

  2. Encrypt PIN using RSA encryption with PKCS1_v1_5 cipher

    1. Get public key from documentation

    2. Create a cipher using the public key and and the PKCS1 v1.5 signature

    3. Encode the PIN string as Bytes with UTF-8

    4. Encrypt the byte string with the cipher key

    5. Encode the encrypted encrypted pin with Base64

Last updated