[email protected] Posted March 11, 2007 Share Posted March 11, 2007 i am looking for a page that explains the different built-in common encryption types for php (md5, sha1...etc) can anyone help? Link to comment https://forums.phpfreaks.com/topic/42267-encrypt-methods/ Share on other sites More sharing options...
Blekk Posted March 11, 2007 Share Posted March 11, 2007 I think your best bet is to go on www.php.net and typing the different functions into the function list search box, such as just typing md5 etc. Link to comment https://forums.phpfreaks.com/topic/42267-encrypt-methods/#findComment-205049 Share on other sites More sharing options...
redarrow Posted March 11, 2007 Share Posted March 11, 2007 1a. md5 is a function. when the function is used it encript's a string into a 32 charecter ,(Also note that md5 can be used with other php encripting function's like sha1 and salt md5 can not be decrited yet! i say it agin yet!). md5() example <?php $paswword="redarrow"; $password=md5($password); echo $password; ?> 2a. sha1 is a function. when the function is used it encript's a string into a 40 charecter ,(Also note that sha1 can be used with other php encripting function's like md5 and salt but can not be uncripted yet! i say agin yet!). sha1() example <?php $paswword="redarrow"; $password=sha1($password); echo $password; ?> 3a. base64_encode() function is only 8 bit ,(Also note thae base64_encode () is not like the big boys like sha1 and md5 or salt becouse base64_encode can be base64_decode() becouse of the grate old days use of this function there are meny internet sites offering decoding help.). base64_encode() and base64_decode() example <?php $paswword="redarrow"; $password=base64_encode($password); echo $password; //to decode use: echo base64_decode($password); ?> You also can look up crypt() function that also has meny functions to encript but is only one way encript and no decript link for crypt http://uk3.php.net/crypt . Link to comment https://forums.phpfreaks.com/topic/42267-encrypt-methods/#findComment-205069 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.