Revert "sha1 code changed"

This reverts commit 40f8bffdf2044b5c69168cac3d02ab36d1613370.