Generate sha1 hash and verify sha1 with given string.
Check the sha hash of string with signature
string
signature
Wechat sha hash
Check the sha hash of string with signature.