![]() |
Creating your own encryption method
Hello , How could I compile a class/function to create my own encryption method.
eg: Code:
$text = 'milkdud22' |
Just scramble the input with some string functions like so:
php Code:
That is of course unless you want to reverse it, in which case it'll require a little more thought. What is wrong with the in-built encryption methods, however? |
Um , well nothing really I just like to have it so I have my own encryption method hopefully making it harder to crack.
|
Anything you create will probably be worse than the major existing methods (SHA1 is still to be reverse engineered). The methods you have now are created by people who have real experience in this stuff. One of the first rules of using encryption methods is "Don't use your own".
|
As Village Idiot said, SHA1's yet to be reversed. Add a salt to that SHA1 and even dictionary attacks will be fruitless.
|
The best idea is to use a combination of encryption methods. I personally use this:
PHP Code:
|
Quote:
|
I'm using the method Wildhoney mentioned.
PHP Code:
|
Quote:
|
| All times are GMT. The time now is 11:08 AM. |
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0