...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.