bcrypt

package
v1.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 25, 2020 License: GPL-2.0 Imports: 5 Imported by: 2

Documentation

Index

Constants

View Source
const (
	// DefaultCost is the default cost for the bcrypt hash
	DefaultCost = 10
)

Variables

This section is empty.

Functions

func Run

func Run(args []string) error

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL