Revert "Changed hash function from md5 to sha1"

This reverts commit 97bf0b2137db7bccb10586a5a9d33fa2a89a7a02.