MCPcopy Create free account
hub / github.com/LanceLRQ/deer-executor / SHA256String

Function SHA256String

common/persistence/utils.go:24–26  ·  view source on GitHub ↗

SHA256String 对文本执行SHA256运算

(body string)

Source from the content-addressed store, hash-verified

22
23// SHA256String 对文本执行SHA256运算
24func SHA256String(body string) ([]byte, error) {
25 return SHA256Bytes([]byte(body))
26}
27
28// SHA256Bytes 对byte数组执行SHA256运算
29func SHA256Bytes(body []byte) ([]byte, error) {

Callers

nothing calls this directly

Calls 1

SHA256BytesFunction · 0.85

Tested by

no test coverage detected