Adds support for SHA/SHA1 hashes.

Needed for "ws" module.