Skip to content
This repository was archived by the owner on Jul 2, 2021. It is now read-only.

allow to hash an empty string #6

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion sha1.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ def _produce_digest(self):
return _process_chunk(message[64:], *h)


def sha1(data):
def sha1(data=b''):
"""SHA-1 Hashing Function

A custom SHA-1 hashing function implemented entirely in Python.
Expand Down