Programming Forums
User Name Password Register
 

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

Reply
 
Thread Tools Display Modes
Old Sep 19th, 2005, 9:33 PM   #1
Sane
Programming Guru
 
Sane's Avatar
 
Join Date: Apr 2005
Location: Waterloo, Ontario
Posts: 1,888
Rep Power: 5 Sane will become famous soon enough
Send a message via MSN to Sane
Lightbulb New Efficient Encryption Method

I conceived a new kind of encryption method, based on the idea of number systems. Based on the concept of how hexidecimal, for example, can turn 4 numbers in to 1. But now ... imagine instead of encrypting in base 16 (hexidecimal), you were to encrypt in base 3.32*10^240. Yep, that's right:

Quote:
base 331919366861422343291198550056300220979016999617911071215544742058488007287285032429425852574395359183179790996559831601745692952541693670357981546550760224890453753856000000000000000000000000000000000000000000000000000000000000000000000000 to be exact
How do you say? That number is exactly (( 24*24 )*( 255*255*255 ))**24 which just happens to be:

((width of surface * length of surface) * (R*G*B))^(height)

So then from any y from this system can be thrown through a simple processing function to derive 24 values of R, G, B, X, Y=1..24 . Then those values are used to map a pixel to a 24/24 symbol. It works perfectly, processing lines of text over 100 characters in to just only 1 symbol!!

Example: The two very small dots in the left corner by the border. That says Sane.

This holds much potential, because I could still derive over 24 values with a more complex algorithm, I could pre-encrypt the unicode values of the text to shorten what needs to be encrypted. And best of all, it's fully capable of being reverse-engineered. Once all this is accomplished, as well as the implications in C++, I'm estimating the ratio will improve from 100:1 to 1000:1, making it the best encryption process anywhere.

I'm looking for some people who'd be interested in perfecting this method and helping me publish it. It is programmed fully in Python, and I hope someone can convert it into C++ due to Python's inability to convert long to float (which I desperately need).

I'm not showing the source code though because I'm that paranoid about it's safety of owner.

Patent pending?

Last edited by Sane; Sep 19th, 2005 at 9:58 PM.
Sane is offline   Reply With Quote
Old Sep 19th, 2005, 9:46 PM   #2
mythicknight
Newbie
 
Join Date: Sep 2005
Posts: 0
Rep Power: 0 mythicknight is on a distinguished road
Thumbs up

Awesome Sane =D

I must do this as well: &
mythicknight is offline   Reply With Quote
Old Sep 19th, 2005, 10:21 PM   #3
iignotus
Professional Programmer
 
iignotus's Avatar
 
Join Date: Apr 2005
Location: Nowhere Special
Posts: 466
Rep Power: 4 iignotus is on a distinguished road
Send a message via AIM to iignotus
I'd love to hear about the decryption process....
__________________
% rc4 hexkey < input > output
#define S ,t=s[i],s[i]=s[j],s[j]=t /* rc4 hexkey <file */
unsigned char k[256],s[256],i,j,t;main(c,v,e)char**v;{++v;while(++i)s[ 
i]=i;for(c=0;*(*v)++;k[c++]=e)sscanf((*v)++-1,"%2x",&e);while(j+=s[i]
+k[i%c]S,++i);for(j=0;c=~getchar();putchar(~c^s[t+=s[i]]))j+=s[++i]S;}
iignotus is offline   Reply With Quote
Old Sep 19th, 2005, 10:57 PM   #4
Infinite Recursion
Programming Guru
 
Infinite Recursion's Avatar
 
Join Date: Jul 2004
Location: United States
Posts: 3,467
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
Impressive.
__________________
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
Old Sep 19th, 2005, 11:18 PM   #5
OpenLoop
Expert Programmer
 
OpenLoop's Avatar
 
Join Date: May 2005
Location: East Lansing, MI
Posts: 663
Rep Power: 4 OpenLoop is on a distinguished road
Nice! Keep us posted, i really want to know about decryption.
BTW, if you're using a lot of Python libraries, converting to c++ might be a pain.
OpenLoop is offline   Reply With Quote
Old Sep 20th, 2005, 1:01 AM   #6
bl00dninja
Programming Guru
 
bl00dninja's Avatar
 
Join Date: Oct 2004
Location: namespace std
Posts: 1,246
Rep Power: 5 bl00dninja is on a distinguished road
this sounds really cool. good job!
__________________
i put on my robe and wizard hat...

Have you ever heard of Plato, Aristotle, Socrates?...Morons.
bl00dninja is offline   Reply With Quote
Old Sep 20th, 2005, 1:13 AM   #7
coldDeath
Expert Programmer
 
coldDeath's Avatar
 
Join Date: Aug 2005
Location: UK
Posts: 862
Rep Power: 4 coldDeath is on a distinguished road
Send a message via AIM to coldDeath Send a message via Yahoo to coldDeath
Knowing Sane, he hasn't used many libaries.
__________________
Join us at #programmingforums @ irc.freenode.net!

My software never has bugs. It just develops random features.
coldDeath is offline   Reply With Quote
Old Sep 20th, 2005, 5:15 AM   #8
Sane
Programming Guru
 
Sane's Avatar
 
Join Date: Apr 2005
Location: Waterloo, Ontario
Posts: 1,888
Rep Power: 5 Sane will become famous soon enough
Send a message via MSN to Sane
I've only used Pygame. And that's to blit all the symbols together and save as a bitmap.

But I think I just noticed a flaw. In order to decrypt, the x is multiplied by 24*255*255*255*the number of pixels in the symbol. Then decoded in the same base to give you your characters. But the x has been rounded to an integer when placed on the bitmap, but it needs to be a precise float in order to get back to the original number.

I think I have a solution though. It can work the float untill all the modulus' of each term returns true to the color values and X. So the decryption might be a bit more complicated then I thought ...


Edit: And I think I might have explained it a little wierd in my post. Each term from the output of the conversion to base 3*10^240, becomes a big number. But since that number is too large to convert to ascii and whatnot, it is processed in to color and co-ordinate information until it becomes 0.

So each symbol equals a term from base 3*10^240 (Just as every term from base 16 might become a letter or stay a number.).

Last edited by Sane; Sep 20th, 2005 at 5:33 AM.
Sane is offline   Reply With Quote
Old Sep 20th, 2005, 6:34 AM   #9
tempest
Programming Guru
 
tempest's Avatar
 
Join Date: Oct 2004
Posts: 1,041
Rep Power: 5 tempest is on a distinguished road
Send a message via ICQ to tempest Send a message via AIM to tempest Send a message via Yahoo to tempest
So how do you differentiate the order of the bitmap information to decode?
__________________

tempest is offline   Reply With Quote
Old Sep 20th, 2005, 8:07 AM   #10
Sane
Programming Guru
 
Sane's Avatar
 
Join Date: Apr 2005
Location: Waterloo, Ontario
Posts: 1,888
Rep Power: 5 Sane will become famous soon enough
Send a message via MSN to Sane
From y 1 .. 24, and from every subsequent section in the sequence: (x/24)*24 .. end.
Sane 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 5:30 AM.

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