how this encryption works? it can be generated with php or not? it is stronger then md5, sha1 using 120bit encryption, md5 32, so im wondering, it can be generated with php?
or maybe sha256?
Edit:
ok. i found this script
so i got some idea, we can create a encryption service script
example,
where the encryptor.php is script with encrypt function...
this is just an example, i'll try to make one...
and i think that this is good service script
Edit:
ok. i found this script
Code:
<?php
function encryptData($string,$type) {
if($type == 'SHA256') // See if they have selected to use SHA256 encryption.
{
// Use MHash to encrypt the string with SHA256.
$encryptedstring = bin2hex(mhash(MHASH_SHA256,$string));
echo $encryptedstring;
}
else
{
if($type == 'SHA1') // See if they have selected to use SHA1 encryption.
{
// Encrypt the string with md5, sha1 and base64
$encryptedstring = sha1(base64_encode($string));
echo $encryptedstring;
}
else
{
if($type == 'MD5') // See if they have selected to use MD5 encrpytion.
{
// Encrypt with md5 and base64.
$encryptedstring = md5(base64_encode($string));
echo $encryptedstring;
}
else
{
// If the $type variable is incorrect echo an error.
echo 'You have not specified a valid encryption method. Those available are SHA256, SHA1 and MD5, note the capitals, they are required.';
}
}
}
}
?>
Code:
Text to encrypt: <input name="string" type="text" maxlength="50" emptyok="true"/> Select Hash: <select> <option value="md5">MD5</option> <option value="sha1">SHA1</option> <option value="sha256">SHA256</option> </select> <anchor>Encypt <go method="post" href="encryptor.php"> <postfield name="string" value="$(string)"/> <postfield name="type" value="$(type)"/> </go> </anchor>
this is just an example, i'll try to make one...
Comment