[php]How to encrypt string with one method differnet ways. (pls help)?

  • Thread starter Thread starter shmfceliteace
  • Start date Start date
S

shmfceliteace

Guest
I am wondering, how I can or is there a way, take string and encrypt them using different methods or keys, while keeping the code simple, but the key random?

Lets see if I can make this more clear...
I have a string: "abcd".
Now, lets say that on 5 different sites, this is the login password for the admin, ok?

Now, off course it is going to be encrypted, but, what if I wanted each one of those passwords to be encrypted differently? (For no apparent reason)
Not that the encrypted passwords themselves are different, but *how* they are encrypted is different.

I figured the easiest way to do this would be to encrypt each by a different rules/key/string that is randomly generated.

But, I do not know enough about encrytption to even know exactly what I am asking.
lol

I hope I made my question understandable.

(btw, this is with PHP)
 
$varaible = md5($variable)
even further... md5(md5($variable).. etc..
the more you add md5, the more it encrypts... but also the more you need to unencrypt.

md5 is an encryption code.
 
Back
Top