halfer/Meshing — Issue #36: Add in other hashing functions
Author: halfer
Created: 2011-11-10 20:00:13+00:00
State: open

Presently although the hashing function is read from the versionable table, there is no way to reset this. It is therefore fixed to sha1() for the time being. I doubt that there would be demand for md5, but sha256 and others may be of interest.

The [hash](http://php.net/manual/en/function.hash.php) function can be used for this. We would need to ensure that any algorithm used comes with a warning about what versions of PHP will work with it ([list here](http://www.php.net/manual/en/function.hash-algos.php)). At the moment, I'm of the view that public meshes should stick to hashes that are available in 5.2.x.