Skip to content

Commit 076fd65

Browse files
committed
Use default cost for bcrypt
1 parent 36673ae commit 076fd65

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/hasher.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010
func main() {
1111
password := os.Args[1]
1212

13-
hash, err := bcrypt.GenerateFromPassword([]byte(password), 12)
13+
hash, err := bcrypt.GenerateFromPassword([]byte(password), bcrypt.DefaultCost)
1414
if err != nil {
1515
fmt.Println("Error generating hash: %s", err)
1616
}

0 commit comments

Comments
 (0)