| | |
Improve scrambled text game
Please support our Python advertiser: Programming Forums - DaniWeb Sister Site
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 |
Tag cloud for Python
accessdenied apache application argv array beginner book change code color converter dictionary dynamic edit editing enter examples excel file filename float format ftp function gui homework import inches input java keyboard lapse library line lines linux list lists loop microphone mouse movingimageswithpygame mysql newb number numbers numeric output parameters parsing path phonebook port prime programming projects py2exe pygame pyopengl pyqt python random recursion recursive redirect remote reverse scrolledtext server session simple smtp software sprite ssh statictext string strings syntax table tennis terminal text thread threading time tkinter tlapse trick tuple tutorial ubuntu unicode unit urllib urllib2 variable windows wordgame wxpython






