salt
This commit is contained in:
parent
afce5b5bf4
commit
7749102432
2
main.go
2
main.go
|
@ -192,7 +192,7 @@ func createPasswordEntry(email, password string) string {
|
||||||
}
|
}
|
||||||
|
|
||||||
func getSalt() string {
|
func getSalt() string {
|
||||||
salt := make([]byte, 32)
|
salt := make([]byte, 5)
|
||||||
_, err := io.ReadFull(rand.Reader, salt)
|
_, err := io.ReadFull(rand.Reader, salt)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatal(err)
|
log.Fatal(err)
|
||||||
|
|
Loading…
Reference in New Issue