| | |
Improve scrambled text game
Thread Solved
![]() |
•
•
•
•
An alternative to using a password to communicate with your friend is to send them a picture of your favorite pet and to use the sha128 digest of the picture as a key, together with a standard encryption algorithm (RSA or a better one). This way, only the people with your pet's picture can decipher your messages, which is quite secure I think.
Blog - anurag.granularproject.org
As far as I understand, steganography would be to change each byte of image file just one small amount, so the picture essentially looks the same. Comparing it with the original picture would reveal the secret message hidden in the small changes.
That is the idea, and the reason md5 is used for encrypting the password itself. Encryption of the text itself can be donw with a number of Python tools. Very simple one would be XOR encryption against the looped password. I think there is code snippet under Python for that. Check out:
http://www.daniweb.com/code/snippet688.html
•
•
•
•
So, I guess I can assume that md5 is not reversible, right?
http://www.daniweb.com/code/snippet688.html
Last edited by bumsfeld; Sep 21st, 2008 at 10:08 pm.
Should you find Irony, you can keep her!
Ok, I've updated the code with suggestions of forum members here.
Changelog:
Download the source-code attached with this post. To execute the program, simply double-click the JumbledGUI.pyw file, given that you have Python and wxPython runtimes already installed.
As of now, I am aware of only one problem in the program. The score system, though works fine normally, is a bit flawed. Try it to check the problem. Do tell me if you can think of a better way of implementing the score system.
Changelog:
- All words now read from a text file, so adding more words is easier
- Words are jumbled automatically by the program (using the random module), instead of pre-defined dictionary of words and corresponding jumbled words
- The main window is now colored and smaller in size
- The program also displays the score of the player
Download the source-code attached with this post. To execute the program, simply double-click the JumbledGUI.pyw file, given that you have Python and wxPython runtimes already installed.
As of now, I am aware of only one problem in the program. The score system, though works fine normally, is a bit flawed. Try it to check the problem. Do tell me if you can think of a better way of implementing the score system.
Last edited by iamgame; Sep 24th, 2008 at 10:41 am.
Blog - anurag.granularproject.org
Ok, the score problem is solved now. I solved it by taking a :flag" variable. 
So, rather than downloading the attachment in my previous post, download this updated one.

So, rather than downloading the attachment in my previous post, download this updated one.
Last edited by iamgame; Sep 24th, 2008 at 7:25 pm.
Blog - anurag.granularproject.org
Update:
The improved Jumbled Words Game is available for download in various forms:
http://anurag.granularproject.org/20...ed-words-game/
Thanks again to all the members here who helped me improve it.
The improved Jumbled Words Game is available for download in various forms:
http://anurag.granularproject.org/20...ed-words-game/
Thanks again to all the members here who helped me improve it.
Blog - anurag.granularproject.org
![]() |
Other Threads in the Python Forum
- Previous Thread: pygame zoom/rotate
- Next Thread: Import Main problem
| Thread Tools | Search this Thread |
alarm anydbm app assignment beginner bluetooth character cipher cmd conversion coordinates corners curves customdialog cx-freeze data decimals definedlines development directory dynamic excel exe feet file float format function generator getvalue gnu graphics halp handling homework http ideas input ip itunes keycontrol leftmouse line linux list lists loan loop maintain maze millimeter module mouse number numbers output parsing path prime programming push py2exe pygame pymailer python queue random raw_input recursion recursive schedule screensaverloopinactive script searchingfile slicenotation sqlite ssh string strings sudokusolver text time tlapse tooltip tuple type ubuntu unicode url urllib urllib2 variable ventrilo vigenere web webservice wikipedia wxpython xlib xlwt






