Posts: 3,288
Threads: 167
Joined: Nov 2001
Wonder how this would translate....
BASICA Code Rel Made:
1. Measure 1/3 cup of Flour
2. Mix Eggs
3. Add Sugar
4. Add Coloring
5. Mix the ingredients all together
6. Bake until brown
7. End
:*)
Posts: 46
Threads: 12
Joined: Dec 2002
dudes, dudes, dudes....... uve got me wrong.
im talking about an enigma type thing.
A=E
B=U
ETC ETC.
im just looking to write a program that u can input a sentence and the comp will print the translation.
img]http://forums.rleague.com/images/avatars/westsig.gif[/img]
go the mighty maggies.
(thanks yakstorm)
i regularly visit a rugby league version of these forums. i have amassed almost 2k worth of messages.
Posts: 691
Threads: 5
Joined: Apr 2002
Ohhhhhh, you mean encryption :roll:, whoops.
One of the simplest forms of encryption is simple rotation. In rot1 A->B, B->C and Z->A. Rot13 is the most common rotation because its halfway along the alphabet, its major drawback however is that it is extremely trivial to break.
You could have a look at cipher systems such as playfair, vignere, RSA(difficult, very secure), PGP, etc. Most cipher systems that are difficult to crack also involve some very complex mathmatics.
To write a simple encryption program in Qbasic you could either use a formula based method (eg rot13) on each letter or you could use a lookup table for encrypting each letter (requires that the table be transmitted to the reader of the code, but then how do you encrypt the table :???: ). Both methods should be relatively simple exercises in programming.
esus saves.... Passes to Moses, shoots, he scores!