CRYPT

Program uses random numbers lists stored in the calculator to encrypt text (using 3-digit key). Of course, you need to substitute characters for numbers. You can use the following 40-character table. This table was designed to use encoding czech text, so it doesn't contain Q,W letters. You can of cource make up your own one.
1 - A6 - F11 - K16 - P21 - V26 - 231 - 736 - ?
2 - B7 - G12 - L17 - R22 - X27 - 332 - 837 - CR
3 - C8 - H13 - M18 - S23 - Y28 - 433 - 938 - acute accent
4 - D9 - I14 - N19 - T24 - Z29 - 534 - .39 - caron
5 - E10 - J15 - O20 - U25 - 130 - 635 - !40 - space

Source code (247 B)


CLRT
PRINT"ENTER KEY!
INPUT K
CLRT
PRINT"EN-1 DECRYPT-2
E-3=>RAND
K=
STATx
INPUT A
LABEL 1
IF n>=0 GOTO 2
DATA RANDOM
GOTO 1
LABEL 2
CLRT
INPUT P
DATA 0,IPART P-n
IF 64<=ABS (πn-64 GOTO 1
PRINT"P= -----> .
P=1+40FPART (40-1(n+39+(3-2A)INT (39RANDOM+1
CLRT
PRINT P
WAIT
GOTO 1