SHA256String 对文本执行SHA256运算
(body string)
| 22 | |
| 23 | // SHA256String 对文本执行SHA256运算 |
| 24 | func SHA256String(body string) ([]byte, error) { |
| 25 | return SHA256Bytes([]byte(body)) |
| 26 | } |
| 27 | |
| 28 | // SHA256Bytes 对byte数组执行SHA256运算 |
| 29 | func SHA256Bytes(body []byte) ([]byte, error) { |
nothing calls this directly
no test coverage detected