Thursday, December 30, 2010

Caesar's cipher encryption

text$="In cryptography, a Caesar cipher, also known as a Caesar's cipher, the shift cipher, Caesar's code or Caesar shift, is one of the simplest and most widely known encryption techniques(Wikipedia)"
for n = 1 to length(text$)
letter$= mid(text$, n, 1)
m = asc(letter$)
next n
print ciphr$

No comments:

Post a Comment