浏览代码

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
Peter Armitage 13 年之前
父节点
当前提交
dd83c0b64f
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      bcrypt/bcrypt.go

+ 1 - 1
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)