added support for sha1, sha512, sha256