Store a 4 digit PIN in HSM simulator And fetch it.

Dec 21, 2015 at 10:52 AM
Edited Dec 21, 2015 at 10:52 AM

I am really confused how to store a pin in LMK . And validate the pin.

Say for an example I have a pin 1234 and I want to store it in HSM simulator. Then I want to send this pin to HSM simulator to validate.

It will be really helpful if someone please write the code through command from beginning. I mean zpk encryption decryption translate pin to zpk then storing it in LMK. And fetch/validate the pin. I am really stuck on this and can't proceed further