Documentation ¶ Index ¶ Constants type Hasher func NewHasher() *Hasher func NewHasherWith(options Options) *Hasher func (h *Hasher) Check(value []byte, hash []byte) (bool, error) func (h *Hasher) Hash(value []byte) ([]byte, error) type Options Constants ¶ View Source const DefaultCost = 10 Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Hasher ¶ type Hasher struct { // contains filtered or unexported fields } func NewHasher ¶ func NewHasher() *Hasher func NewHasherWith ¶ func NewHasherWith(options Options) *Hasher func (*Hasher) Check ¶ func (h *Hasher) Check(value []byte, hash []byte) (bool, error) func (*Hasher) Hash ¶ func (h *Hasher) Hash(value []byte) ([]byte, error) type Options ¶ type Options struct { // contains filtered or unexported fields } Source Files ¶ View all Source files hasher.go Click to show internal directories. Click to hide internal directories.