AverageJoe Posted July 1, 2007 Posted July 1, 2007 This is my first program, just wanted to see what you guys think. Its in python, which i will recomend as a great language to learn in. import string letters = string.ascii_lowercase + string.ascii_uppercase + string.punctuation word = (raw_input("what word would you like to encode ?")) encoded = '' for letter in word: if letter == ' ': encoded = encoded + ' ' else: x = letters.index(letter) + 5 encoded = encoded + letters[x] print encoded if you can't tell what it does, it cyphers text. Ex. the above would be Dtz hfs,y yjqq Bmfy ny itjx; ny hDumjwx yjCy= all you have to do to decypher it is change the + 5 to -5 lol it's simple, but i think its cool.
awesomegamer Posted July 1, 2007 Posted July 1, 2007 Pretty cool. You use a developer or text compiler? I like to do things like that, I make stuff that is impossible to decrypt (to original form) good for custom algorithm passwords.
kronix3 Posted July 5, 2007 Posted July 5, 2007 oh this was the program that you showed me on aim. I like it and its worth using.
nilayz Posted July 6, 2007 Posted July 6, 2007 Nice script, though I would suggest making the processing a bit more complex, as simple shift ciphers are very easy to break
AverageJoe Posted July 6, 2007 Author Posted July 6, 2007 oh this was the program that you showed me on aim. I like it and its worth using. I don't recall talking to you on aim. anyways, I got it down pretty quick, the only hard part was figuring out how to get the z to shift up.
awesomegamer Posted July 8, 2007 Posted July 8, 2007 You need to compile and run it. A compiler is a program the converts readable code into a machine language so that it can run.
njenkins3 Posted September 19, 2007 Posted September 19, 2007 wow fascinating stuff! i'm learning how to create web sites right now and next year i'm probably going to get into a few college courses to get my bachelors in web designing!
karath Posted September 23, 2007 Posted September 23, 2007 I have counted something like 5 spam posts... Did you lift the code off the internet (gasp!) or did you actually write it all by yourself? I know a couple of my friends write codes, though one of them just lifts it directly off the internet.
AverageJoe Posted September 23, 2007 Author Posted September 23, 2007 Wow that is from back in the day. I wrote that by myself, but now I'm onto loading 3d models, and making animation using opengl! It's funny how things work out, I don't even use python anymore, I've moved onto c++. Joe
karath Posted September 23, 2007 Posted September 23, 2007 Wow that is from back in the day. I wrote that by myself, but now I'm onto loading 3d models, and making animation using opengl! It's funny how things work out, I don't even use python anymore, I've moved onto c++. Joe Wow, you mean this code was old? So, do you have a professional graphics rendering program or what? Like Xara or Photoshop Elements CS3 or do you just use GIMP for the 3D models?
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now