(password string)
| 233 | } |
| 234 | |
| 235 | func StaticHash(password string) string { |
| 236 | return utils.HashData(utils.SHA256, []byte(fmt.Sprintf("%s-%s", password, StaticHashSalt))) |
| 237 | } |
| 238 | |
| 239 | func HashPwd(static string, salt string) string { |
| 240 | return utils.HashData(utils.SHA256, []byte(fmt.Sprintf("%s-%s", static, salt))) |
no test coverage detected