Skip to content
This repository has been archived by the owner on Dec 21, 2019. It is now read-only.

Commit

Permalink
Increased default bcrypt cost
Browse files Browse the repository at this point in the history
Resolves #18
  • Loading branch information
apexskier committed Apr 7, 2015
1 parent a66ab9d commit 49b24b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ func (a Authorizer) Register(rw http.ResponseWriter, req *http.Request, user Use
}

// Generate and save hash
hash, err := bcrypt.GenerateFromPassword([]byte(user.Username+password), 8)
hash, err := bcrypt.GenerateFromPassword([]byte(user.Username+password), bcrypt.DefaultCost)
if err != nil {
return mkerror("couldn't save password: " + err.Error())
}
Expand Down

0 comments on commit 49b24b3

Please sign in to comment.