MCPcopy Create free account
hub / github.com/actiontech/dtle / DecryptPasswordSupportNoRsaKey

Function DecryptPasswordSupportNoRsaKey

api/handler/common.go:150–155  ·  view source on GitHub ↗
(password string, rsaPrivateKey string)

Source from the content-addressed store, hash-verified

148}
149
150func DecryptPasswordSupportNoRsaKey(password string, rsaPrivateKey string) (realPwd string, err error) {
151 if "" == rsaPrivateKey {
152 return password, nil
153 }
154 return DecryptPassword(password, rsaPrivateKey)
155}
156
157func DecryptPassword(password string, rsaPrivateKey string) (realPwd string, err error) {
158 if "" == rsaPrivateKey {

Callers 2

ValidatePasswordFunction · 0.92
VerifyPasswordFunction · 0.92

Calls 1

DecryptPasswordFunction · 0.85

Tested by

no test coverage detected