Use default cost for bcrypt
This commit is contained in:
1 parent
36673ae3f0
commit
076fd65dea
1 file changed
+1
-1
+1
-1
@@ -10,7 +10,7 @@ import (
|
||||
func main() {
|
||||
password := os.Args[1]
|
||||
|
||||
hash, err := bcrypt.GenerateFromPassword([]byte(password), 12)
|
||||
hash, err := bcrypt.GenerateFromPassword([]byte(password), bcrypt.DefaultCost)
|
||||
if err != nil {
|
||||
fmt.Println("Error generating hash: %s", err)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user