CryptEncoderSSHA384 encodes a password with SHA384 with the configured salt
(salt string)
| 92 | // CryptEncoderSSHA384 encodes a password with SHA384 |
| 93 | // with the configured salt |
| 94 | func CryptEncoderSSHA384(salt string) func(pass []byte, hash interface{}) []byte { |
| 95 | return func(pass []byte, hash interface{}) []byte { |
| 96 | s := []byte(salt) |
| 97 | p := append(pass, s...) |
| 98 | h := sha512.Sum384(p) |
| 99 | return h[:] |
| 100 | } |
| 101 | } |
| 102 | |
| 103 | // CryptEncoderSHA512 encodes a password with SHA512 |
| 104 | func CryptEncoderSHA512(pass []byte, hash interface{}) []byte { |
no outgoing calls