User validating Using a pin


I am wondering weather I can use a pin code to authenticate the user. I want user to follow the following steps.

1. First log in using username and password (validated through rest)
2. If success let him create 4 digit pin.
3. Then his username and password is encrypted using that pin.
4. At the next log in user just needs to enter pin code (automatically web service is called and user validated)

So my question is can I create a pin code and encrypt the username and password using pin and decrypt it using the pin ?

Thank you so much
1 person has
this question
This topic is no longer open for comments or replies.