Is mysql5 algoritm is SHA-1(SHA-1($pass)) ?
Then i trying this http://vb.wikia.com/wiki/SHA-1.bas script, with function =SHA1HASH(SHA1HASH("test")) i get c4033bff94b567a190e33faa551f411caef444f2 but Mysql5 hash must be 94BDCEBE19083CE2A1F959FD02F964C7AF4CFC29
How to convert string to Mysql5 hash in VBA?

I have found why this hapens,
because Sha1 provided in Hex, but Mysql5 in binary
SELECT PASSWORD("test"), If you need to use the password hashing outside of mysql - I would recommend that you use sha1 - with salting. dev.mysql.com/doc/refman/5.0/en/…