hello every1 !!!

i have trouble writing tis encrypt program and hope some1 will give me a guide.

how to i accept a encrypt message and to use a decrypting key from 0 to 9.The ascii code which link to the digit will be return and to subtract 30H from Ascii to ocnvert back to binary.

thanks!!!!!!!!