MCPcopy Create free account
hub / github.com/1Panel-dev/1Panel / hashPassword

Function hashPassword

agent/app/service/file_share.go:77–80  ·  view source on GitHub ↗
(salt, password string)

Source from the content-addressed store, hash-verified

75}
76
77func hashPassword(salt, password string) string {
78 sum := sha256.Sum256([]byte(salt + ":" + password))
79 return hex.EncodeToString(sum[:])
80}
81
82func shareModelToInfo(item model.FileShare) response.FileShareInfo {
83 return response.FileShareInfo{

Callers 2

CreateMethod · 0.85
checkMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected