password

package
v2.0.0-beta14 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Time    uint32 // 迭代次数, default: 1
	Memory  uint32 // 内存大小, default: 64 * 1024
	Threads uint8  // 线程数, default: 4
	KeyLen  uint32 // 密钥长度, default: 32
}

type Manager

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

func New

func New(configs ...*Config) *Manager

New create a password manager

func (*Manager) Generate

func (m *Manager) Generate(password string) string

func (*Manager) Verify

func (m *Manager) Verify(password, hash string) bool

Jump to

Keyboard shortcuts

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