Now the hash() function only does sha-1. There was a request for MD5 at one point (though they could use sha-1) so it seems we need a full set of these: md2, md5, sha-1, sha-2, sha-256, sha-384 and sha-512. Allow for an optional second parameter to the hash function that is the name of the algorithm.
Now the hash() function only does sha-1. There was a request for MD5 at one point (though they could use sha-1) so it seems we need a full set of these: md2, md5, sha-1, sha-2, sha-256, sha-384 and sha-512. Allow for an optional second parameter to the hash function that is the name of the algorithm.