Improve scrambled text game

Thread Solved
Reply

Join Date: Sep 2008
Posts: 10
Reputation: iamgame is an unknown quantity at this point 
Solved Threads: 0
iamgame's Avatar
iamgame iamgame is offline Offline
Newbie Poster

Re: Improve scrambled text game

 
0
  #11
Sep 21st, 2008
Originally Posted by Gribouillis View Post
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.
Seems to me like a nice technique. It is steganography, right?
Reply With Quote Quick reply to this message  
Join Date: Jul 2005
Posts: 1,205
Reputation: bumsfeld will become famous soon enough bumsfeld will become famous soon enough 
Solved Threads: 130
bumsfeld's Avatar
bumsfeld bumsfeld is offline Offline
Nearly a Posting Virtuoso

Re: Improve scrambled text game

 
0
  #12
Sep 21st, 2008
Originally Posted by iamgame View Post
Seems to me like a nice technique. It is steganography, right?
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.

So, I guess I can assume that md5 is not reversible, right?
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
Last edited by bumsfeld; Sep 21st, 2008 at 10:08 pm.
Should you find Irony, you can keep her!
Reply With Quote Quick reply to this message  
Join Date: Sep 2008
Posts: 10
Reputation: iamgame is an unknown quantity at this point 
Solved Threads: 0
iamgame's Avatar
iamgame iamgame is offline Offline
Newbie Poster

Re: Improve scrambled text game

 
0
  #13
Sep 24th, 2008
Ok, I've updated the code with suggestions of forum members here.

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.
Attached Files
File Type: zip JumbledWordsGame-Source.zip (45.5 KB, 0 views)
Reply With Quote Quick reply to this message  
Join Date: Sep 2008
Posts: 10
Reputation: iamgame is an unknown quantity at this point 
Solved Threads: 0
iamgame's Avatar
iamgame iamgame is offline Offline
Newbie Poster

Re: Improve scrambled text game

 
0
  #14
Sep 24th, 2008
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.
Last edited by iamgame; Sep 24th, 2008 at 7:25 pm.
Attached Files
File Type: zip JumbledWordsGame-Source.zip (40.6 KB, 1 views)
Reply With Quote Quick reply to this message  
Join Date: Sep 2008
Posts: 10
Reputation: iamgame is an unknown quantity at this point 
Solved Threads: 0
iamgame's Avatar
iamgame iamgame is offline Offline
Newbie Poster

Re: Improve scrambled text game

 
0
  #15
Sep 28th, 2008
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.
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:



Other Threads in the Python Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC