I don't know about you guys but sometimes when I talk to friends online about personal stuff, I like to use codes to hide certain things from other people. I do it a lot especially over social networking websites like facebook because other people can see what I've wrote (i'm just paranoid like that). So what I thought I'd do was to create a script that encrypts a message based on a key but then can also decrypt a message using the key that was used to encrypt it.

So that's what I did today and I thought well, let's share it and see what other people think of it. So yeah, here's the script.

This is the source -- I wrote it in Python.

edit: I've made some alterations and posted it online. Here's the link: