security

package module
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2023 License: MIT Imports: 4 Imported by: 0

README

-security-go

-security-go is part of the kiss-my-package set used by apps like FaceMasq, PaperBag, Celestial, Executrix, and more

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CurrentCost

func CurrentCost() int

Types

type Security

type Security struct {
	PasswordSalt string
}

func FromContext

func FromContext(ctx context.Context) *Security

func New

func New(ctx context.Context, salt string) (*Security, error)

func ToContext

func ToContext(ctx context.Context, salt string) (*Security, context.Context)

func (*Security) ConfirmPassword

func (security *Security) ConfirmPassword(input, stored string) (string, error)

func (*Security) HashPassword

func (security *Security) HashPassword(input string) (string, error)

Jump to

Keyboard shortcuts

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