@@ -83,13 +83,13 @@ func CryptEncoderSSHA256(salt string) func(pass []byte, hash interface{}) []byte
83
83
}
84
84
}
85
85
86
- // CryptEncoderSHA384 encodes a password with SHA256
86
+ // CryptEncoderSHA384 encodes a password with SHA384
87
87
func CryptEncoderSHA384 (pass []byte , hash interface {}) []byte {
88
88
h := sha512 .Sum384 (pass )
89
89
return h [:]
90
90
}
91
91
92
- // CryptEncoderSSHA384 encodes a password with SHA256
92
+ // CryptEncoderSSHA384 encodes a password with SHA384
93
93
// with the configured salt
94
94
func CryptEncoderSSHA384 (salt string ) func (pass []byte , hash interface {}) []byte {
95
95
return func (pass []byte , hash interface {}) []byte {
@@ -100,13 +100,13 @@ func CryptEncoderSSHA384(salt string) func(pass []byte, hash interface{}) []byte
100
100
}
101
101
}
102
102
103
- // CryptEncoderSHA512 encodes a password with SHA256
103
+ // CryptEncoderSHA512 encodes a password with SHA512
104
104
func CryptEncoderSHA512 (pass []byte , hash interface {}) []byte {
105
105
h := sha512 .Sum512 (pass )
106
106
return h [:]
107
107
}
108
108
109
- // CryptEncoderSSHA512 encodes a password with SHA256
109
+ // CryptEncoderSSHA512 encodes a password with SHA512
110
110
// with the configured salt
111
111
func CryptEncoderSSHA512 (salt string ) func (pass []byte , hash interface {}) []byte {
112
112
return func (pass []byte , hash interface {}) []byte {
0 commit comments