password

package
v0.0.0-...-748ecea Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package password will hash and comparable hash-pass.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager struct {
	// contains filtered or unexported fields
}

Manager contains method for hashing and comparable value.

func New

func New(options ...Option) *Manager

New creates and returns new Hasher.

func (*Manager) Compare

func (*Manager) Compare(val1 []byte, val2 []byte) bool

Compare comparable two hash.

func (*Manager) Hashing

func (m *Manager) Hashing(val string) ([]byte, error)

Hashing value and returns bytes.

type Option

type Option func(*Manager)

Option for building Password struct.

func Cost

func Cost(cost int) Option

Cost option for sets hashing cost.

Jump to

Keyboard shortcuts

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