How do I encrypt a number from 1 to 1000 to a 4 digit hex code?

Tech-Archive recommends: Fix windows errors by optimizing your registry



I need to create a method for a web page I'm building that encrypts a
number from 1 to 1000 into a 4 digit hex code. I know nothing about
cryptography. Can anyone steer me in the right direction?

.



Relevant Pages