Documentation ¶
Index ¶
Constants ¶
View Source
const (
// DefaultCost is the default cost for the bcrypt hash
DefaultCost = 10
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BcryptGenerateCmd ¶
type BcryptGenerateCmd struct { Cost int `short:"c" long:"cost" default:"10" description:"The cost weight, range of 4-31" value-name:"COST"` OutWriter io.Writer InReader io.Reader }
BcryptGenerateCmd allows encrypting a password provided through stdin
func NewBcryptGenerateCmd ¶
func NewBcryptGenerateCmd() *BcryptGenerateCmd
NewBcryptGenerateCmd returns a BcryptGenerateCmd with configured defaults
func (*BcryptGenerateCmd) Execute ¶
func (c *BcryptGenerateCmd) Execute(args []string) error
Execute performs the Brcrypt operation
Click to show internal directories.
Click to hide internal directories.