Jump to content

[SOLVED] Encryption


pugboy

Recommended Posts

If you want to be able to decrypt it, consider using base64_encode(), maybe with a salt. If you just want to make a permanent encryption, say for a login system, I recommend using md5() with a salt. A salt is just for extra security.

 

#md5 with a salt
$salt = "texthere";
$encrypt = md5($salt . $password);

#Here is my standard encryption
$salt = "12 character salt here";
$encrypt = base64_encode(md5(base64_encode($salt.$password.$salt)))

My encryption is overdone, but I would love to see someone crack it :)

Link to comment
https://forums.phpfreaks.com/topic/105838-solved-encryption/#findComment-542470
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.