Fixed type error for SHA1