Welcome visitor
* Login
* Register
It is currently July 18th, 2019, 5:20 pm
All times are UTC [ DST ]
* Search
View unanswered posts - View active topics

FORUMS » Server Side » PHP



Post new topic Reply to topic  [ 1 post ] 
Author Message
  Encriptation of Passwords
PostPosted: February 5th, 2009, 1:44 am 
User avatar

Posts: 86
...or something else.

I was looking at other forums so i decided to create this one, so we can talk about ways to secure the information through encryption. So if you know any method please share with us.

Let me put on the table 2 basic methods we can use. The first one would be the so well known MD5. Its use on php is very easy, like this:
md5(string);
//or using a var
md5($aVariable);

The second one is a variation of the previous one, and is to add a 'salt' to our encryption. You can use both, a given string or a variable.
echo crypt(something);
//or you can control de salt to use
define('salt','$1$g9drsu84n');//the initial $1$ is like a standard, the rest is random
echo crypt(something,salt);

In case you don't establish the salt, like the first case, PHP does it.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

FORUMS » Server Side » PHP


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron