aeroswat Posted May 10, 2010 Share Posted May 10, 2010 I just downloaded WampServer2 so i can take it home and play on my comp at home. Do I need to download anything to be able to enable the SHA256/512 encryption algorithms on my php build? Link to comment https://forums.phpfreaks.com/topic/201298-quick-question-about-encryption-algorithms-on-windows/ Share on other sites More sharing options...
TeddyKiller Posted May 10, 2010 Share Posted May 10, 2010 PHP Comes installed with encrption.. well.. most encryption types. I haven't used WAMPServer2, but I'd say you wouldn't need to download anything. Although I'll leave this for someone else with a better knowledge to answer this. Link to comment https://forums.phpfreaks.com/topic/201298-quick-question-about-encryption-algorithms-on-windows/#findComment-1056109 Share on other sites More sharing options...
aeroswat Posted May 11, 2010 Author Share Posted May 11, 2010 PHP Comes installed with encrption.. well.. most encryption types. I haven't used WAMPServer2, but I'd say you wouldn't need to download anything. Although I'll leave this for someone else with a better knowledge to answer this. All of the hosts I seem to be using don't have SHA-256 or SHA-512 installed. Or even Blowfish for that matter. Unless I am checking them the wrong way. This is the way the php doc files recommended to check if (CRYPT_BLOWFISH == 1) { echo "Blowfish: <br />"; } if (CRYPT_SHA256 == 1) { echo "SHA-256: <br />"; } if (CRYPT_SHA512 == 1) { echo "SHA-512: <br />"; } Link to comment https://forums.phpfreaks.com/topic/201298-quick-question-about-encryption-algorithms-on-windows/#findComment-1056537 Share on other sites More sharing options...
TeddyKiller Posted May 11, 2010 Share Posted May 11, 2010 Hmm. Well.. I only know of the MD5 and SHA1. As they are the most common. Is there a method for what your wanting. So lets say.. SHA256 could be made out of .. MD5, SHA1, and other encryption type together.. which equals up to SHA256? Or alternatively, change your encryption type. Maybe having SHA256 etc is not nessecary? I'm sure you must be able to install things onto WAMP.. but you'd have to look up that. Link to comment https://forums.phpfreaks.com/topic/201298-quick-question-about-encryption-algorithms-on-windows/#findComment-1056608 Share on other sites More sharing options...
Mchl Posted May 11, 2010 Share Posted May 11, 2010 SHAx is not encryption It's hashing. Use hash. Link to comment https://forums.phpfreaks.com/topic/201298-quick-question-about-encryption-algorithms-on-windows/#findComment-1056650 Share on other sites More sharing options...
aeroswat Posted May 11, 2010 Author Share Posted May 11, 2010 SHAx is not encryption It's hashing. Use hash. http://php.net/manual/en/function.crypt.php I need to be able to use this function with the specified algorithms. And no Teddy I wish you could lol that'd be awesome Hash doesn't allow a salt This is for password encryption Link to comment https://forums.phpfreaks.com/topic/201298-quick-question-about-encryption-algorithms-on-windows/#findComment-1056656 Share on other sites More sharing options...
Mchl Posted May 11, 2010 Share Posted May 11, 2010 hash() does allow salt. Just concatenate it to string being hashed. And once again. It is not encryption. Link to comment https://forums.phpfreaks.com/topic/201298-quick-question-about-encryption-algorithms-on-windows/#findComment-1056663 Share on other sites More sharing options...
aeroswat Posted May 11, 2010 Author Share Posted May 11, 2010 hash() does allow salt. Just concatenate it to string being hashed. And once again. It is not encryption. Does the length of the salt matter? Link to comment https://forums.phpfreaks.com/topic/201298-quick-question-about-encryption-algorithms-on-windows/#findComment-1056671 Share on other sites More sharing options...
Mchl Posted May 11, 2010 Share Posted May 11, 2010 The longer, the better. Link to comment https://forums.phpfreaks.com/topic/201298-quick-question-about-encryption-algorithms-on-windows/#findComment-1056682 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.