Can anybody point me to a tutorial or a short script that shows how to encrypt some text with salt into standard DES?
I know about the crypt()-function, but I'm currently writing a PHP script that should be working on whatever server it's on and it should always encrypt to standard DES, no matter what encryption is actually defined (MD5 etc.) on the server.
Alternatively, if someone knows a short script to create a "tripcode" with salt, tell me please.
Standard DES encryption script?
Moderator: General Moderators
Re: Standard DES encryption script?
I made a google search and found this
Code: Select all
<?php
if (CRYPT_STD_DES == 1) { // If standard DES is installed
crypt($string, 'ds'); // encrypt $string using the salt 'ds'
}
?>
Re: Standard DES encryption script?
Read what I wrote before doing a Google search.
Re: Standard DES encryption script?
hmmm...my mistake......
