Implement functions sha1 and sha256 in "hash" module