Revert "Sha1() function protect"

This reverts commit 68c875d1f13dfc82b9755b642b437a6b8ea7bae3.
Revert "Revert "Sha1() function protect""

This reverts commit 77013a7593f190860858d863fa33360ce77c4385.