Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Old 08-23-2007, 10:13 PM My encryption method
Mattmaul1992's Avatar
Ultra Talker

Posts: 486
Name: Matt
Trades: -1
Hello everyone,

Lately I've been intrigued by encryption. So instead of researching how current methods such as the popular md5 methods work I have jumped right in and made my own. Here's how it works -
At the beginning of the string there are three characters (we'll name "x" in our example string) which are random and mean nothing. Then there is an algorithm set ID. There are 25 different algorithm sets (I have already created 10 out of 25 of these sets and plan on completing them tomorrow). OK, there's tones of other methods that do something like this (none of them popular). What did I do different? In every set some characters use the encryption values of other characters. For example character A is encrypted to "a3kri". Character B is encrypted to "fk3sd". Well character C is encrypted to "a3krifk3sd" which is just A and B's value added together. So if anyone did try to decrypt this (or more specifically create a program that did so) they would get A and B instead of the desired C. My decrypter decodes C before A and B so A and B never get the chance to get confused. Are you lost yet? It's really simple. Just read it over . Now how does this stop someone from encrypting something a few thousand times over and getting the value of every single character and finding the EXACT order of what character needs to be decrypted first in every 25 sets of algorithms (this would take months, maybe even years if I added another 100 sets)? Well it's quite simple. It is then masked with MD5. How do we benefit? MD5 (from what I know) could have an entirely different value for a from one time to another based on string length or something else like this. And then after this I do one simple algorithm that just changes one character to another (a to s and r to p, etc.). Just as a final safety measure. So basically it's a triple level encryption method.
One last thing I forgot to mention is that every character in every set varies in length from 2 to 30 characters long making trying to figure out their values painful because it's hard to figure out where a letter starts and where it ends. The only conventional way to get around that is to of course have a computer do it. Writing a program that advanced just seems impossible. It would have to actually THINK and make DECISIONS for itself (the human type of thinking.. Not just normal computing.).
So my final question is that is all this extra stuff worth it or would it be better to just keep encrypting passwords and credit card numbers in MD5? The file sizes are of course just outrageous but I'm not trying to hide paragraphs. Just 1-3 words at a time. It adds up of course but security for passwords and credit card numbers is more important than a few extra MB's.
Also does anyone know of any similar methods? And how would I go about making a method that might actually be used as much as the major methods by switching bits around? I surely can't do it with PHP but does anyone have any idea how you'd do this in C++?
I've probably lost everyone in this post lol. I hope someone has followed me all the way through.
__________________
PHP Code:
$talkupation++; 

Please login or register to view this content. Registration is FREE
- Free IPB forum hosting (releasing today!!!), no ads, free modifications
Mattmaul1992 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 08-24-2007, 12:35 AM Re: My encryption method
mgraphic's Avatar
Truth Seeker

Latest Blog Post:
JAMISONTUNES
Posts: 2,918
Name: Keith Marshall
Location: Connecticut
Trades: 0
What you wanted to have the value of A and B, but the decrypter is seeing C instead?

The theory behind md5 is to create a hexdecimal hash from a string or binary value and its not supposed to be "decrypted". So if you hash a credit card number, you should be unable to restore it back to the original number.
__________________

<mgraphic /> - I don't have a solution but I admire the problem.
mgraphic is offline
Reply With Quote
View Public Profile
 
Old 08-24-2007, 08:40 AM Re: My encryption method
Ultra Talker

Posts: 483
Trades: 0
Agreed with mgraphic: you'll be screwed if you actually WANTED A and B next to each other instead of C.

Again, just to reiterate what he said about MD5, before trying to write your own encryption algorithm you have to actually learn what you are talking about. As far as I'm concerned, as soon as you called MD5 an encryption algorithm you showed how much you DON'T know about encryption. Sorry but it's a fact of life.

I would suggest one of two things:
1) learn what you are talking about before trying this; or
2) use an encryption algorithm such as AES or some form of asymmetric algorithm. Search the PEAR library site for 'encrypt' and you'll find a number of implementations of PEER-REVIEWED (read, TESTED) algorithms...
__________________

Please login or register to view this content. Registration is FREE
TwistMyArm is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to My encryption method
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.14289 seconds with 12 queries