Use PHP sha1() function instead of MySQL SHA1()
Merge pull request #198 from onddo/mysql-sha1

Use PHP sha1() function instead of MySQL SHA1()