Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Oct 18th, 2005, 2:33 PM   #11
ivan
Professional Programmer
 
ivan's Avatar
 
Join Date: Sep 2005
Location: serbia & montenegro
Posts: 484
Rep Power: 3 ivan is on a distinguished road
Not long time ago, I wrote a simple Xor - encryption and then wrote a brute force attacker for it. It was a great learning experience.
ivan is offline   Reply With Quote
Old Oct 18th, 2005, 5:51 PM   #12
Jessehk
The Oblivious One
 
Jessehk's Avatar
 
Join Date: May 2005
Location: Ontario, Canada
Posts: 630
Rep Power: 4 Jessehk is on a distinguished road
Like you thought, it would be for learning expiriences

I like the idea of doing + and - rather then just adding.

I might also reverse the encrypted text, and maybe add a random number from 1 - 9 to all of them.

Example:

"perl"

p + 2 = r
e - 1 = d
r + 4 = v
l - 8 = d

rdvd

=

dvdr

(dvdr) + 4

hzhu

final word = "hzhu"

I would have the program read from program produced files, with maybe the scramble text at the top of the file, and the key at the bottom. The encryptor would create the files ( either getting input from a file or from stdin; both with command line options ), and decrypt the files and display the output in either a file, or stdout.

sounds good?
__________________
Dr. Zoidberg: [ecstatic] I'm going to a movie... with FRIENDS!
Jessehk is offline   Reply With Quote
Old Oct 19th, 2005, 7:19 AM   #13
ivan
Professional Programmer
 
ivan's Avatar
 
Join Date: Sep 2005
Location: serbia & montenegro
Posts: 484
Rep Power: 3 ivan is on a distinguished road
Yes, but I don't like the idea to put the key in the file... it can be cracked very easy
ivan is offline   Reply With Quote
Old Oct 19th, 2005, 7:56 AM   #14
Infinite Recursion
Programming Guru
 
Infinite Recursion's Avatar
 
Join Date: Jul 2004
Location: United States
Posts: 3,464
Rep Power: 8 Infinite Recursion is on a distinguished road
Send a message via MSN to Infinite Recursion Send a message via Yahoo to Infinite Recursion
sounds good.

Make the key be part of the parameter on the command line. Do not include it in the text.
__________________
http://jasonpowers.net

"There are a thousand hacking at the branches of evil to one who is striking at the root."
Infinite Recursion is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 2:53 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC