forked from External/ergo
use mincost to speed up bcrypt
This commit is contained in:
parent
f0773c4e9e
commit
994200bf46
1 changed files with 1 additions and 2 deletions
|
|
@ -10,8 +10,7 @@ import (
|
|||
)
|
||||
|
||||
func genPasswd(passwd string) {
|
||||
log.Printf("encoding password \"%s\"\n", passwd)
|
||||
crypted, err := bcrypt.GenerateFromPassword([]byte(passwd), bcrypt.DefaultCost)
|
||||
crypted, err := bcrypt.GenerateFromPassword([]byte(passwd), bcrypt.MinCost)
|
||||
if err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue