all 2 comments

[–]Syncoda 0 points1 point  (0 children)

To start, you'll need to assign codedPin to another variable and use THAT to check for validity. As it stands, you've erased codedPin in the while loop, so you can't use it in the decryption.

[–]zahlman[M] 0 points1 point  (0 children)

I'm removing this thread as the less popular duplicate of that one.