943,664 Members | Top Members by Rank

Ad:
  • Python Discussion Thread
  • Marked Solved
  • Views: 2362
  • Python RSS
You are currently viewing page 2 of this multi-page discussion thread; Jump to the first page
Sep 21st, 2008
0

Re: Improve scrambled text game

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?
Reputation Points: 10
Solved Threads: 0
Newbie Poster
iamgame is offline Offline
9 posts
since Sep 2008
Sep 21st, 2008
0

Re: Improve scrambled text game

Click to Expand / Collapse  Quote originally posted by iamgame ...
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.

Quote ...
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.
Reputation Points: 404
Solved Threads: 180
Nearly a Posting Virtuoso
bumsfeld is offline Offline
1,422 posts
since Jul 2005
Sep 24th, 2008
0

Re: Improve scrambled text game

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.
Attached Files
File Type: zip JumbledWordsGame-Source.zip (45.5 KB, 1 views)
Last edited by iamgame; Sep 24th, 2008 at 10:41 am.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
iamgame is offline Offline
9 posts
since Sep 2008
Sep 24th, 2008
0

Re: Improve scrambled text game

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.
Attached Files
File Type: zip JumbledWordsGame-Source.zip (40.6 KB, 2 views)
Last edited by iamgame; Sep 24th, 2008 at 7:25 pm.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
iamgame is offline Offline
9 posts
since Sep 2008
Sep 28th, 2008
0

Re: Improve scrambled text game

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.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
iamgame is offline Offline
9 posts
since Sep 2008

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Python Forum Timeline: pygame zoom/rotate
Next Thread in Python Forum Timeline: Import Main problem





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC