PDA

View Full Version : sha1 in PHP as of 4.3.0



dawithers
04-22-2004, 01:13 AM
So I am developing a php based journal called journalness (http://journalness.sf.net). It has a login function which uses sha1 hashes to store passwords. This works great with php 4.3.0 and up but most fully active hosting servers dont have a newer version of PHP. I think the current version is something like 4.3.3 and my hosting service uses 4.1.8 as well as sourceforge.net's web hosting server, which doesnt support sha1 it only supports md5. I think its great that PHP has added this function but its kinda dissapointing that many larger webservers havent adopted a version of php that has the sha1 function.
Anyway just thought i would rant and flame about that.

dawithers

jlcooke
04-22-2004, 09:29 AM
Originally posted by dawithers
I think the current version is something like 4.3.3 and my hosting service uses 4.1.8 as well as sourceforge.net's web hosting server, which doesnt support sha1 it only supports md5. I think its great that PHP has added this function but its kinda dissapointing that many larger webservers havent adopted a version of php that has the sha1 function.
Anyway just thought i would rant and flame about that.
dawithers

There is a PHP module called mhash (http://ca.php.net/manual/en/ref.mhash.php) which should be on every hosting provider. It includes several hashs. But no SHA-256/384/512 yet. :(

dawithers
04-25-2004, 12:52 PM
yes, unfortunately in order for me to utilize my own software I had to make a sha1 version and an md5 version :trash: