From dd83c0b64f027ecefd228bee774f20fb3abd61a7 Mon Sep 17 00:00:00 2001 From: Peter Armitage Date: Mon, 16 Jul 2012 09:37:31 -0400 Subject: [PATCH] bcrypt: Documentation If you supply a cost < MinCost this package will use DefaultCost, not MinCost R=golang-dev, jeff CC=golang-dev https://golang.org/cl/6354100 --- bcrypt/bcrypt.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bcrypt/bcrypt.go b/bcrypt/bcrypt.go index d1ebee8..35f0d8b 100644 --- a/bcrypt/bcrypt.go +++ b/bcrypt/bcrypt.go @@ -83,7 +83,7 @@ type hashed struct { // GenerateFromPassword returns the bcrypt hash of the password at the given // cost. If the cost given is less than MinCost, the cost will be set to -// MinCost, instead. Use CompareHashAndPassword, as defined in this package, +// DefaultCost, instead. Use CompareHashAndPassword, as defined in this package, // to compare the returned hashed password with its cleartext version. func GenerateFromPassword(password []byte, cost int) ([]byte, error) { p, err := newFromPassword(password, cost)