added support for sha512 for compatibility with applications that don't
support bcrypt