encryptionSchemes

package
v0.0.0-...-f284455 Latest Latest
Warning

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

Go to latest
Published: May 19, 2019 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(cost int) *bcryptScheme

Types

type EncryptionScheme

type EncryptionScheme interface {
	Encrypt(password string) (string, error)
	Compare(encryptedPassword, password string) bool
	ToString() string
}
var DefaultEncryptionScheme EncryptionScheme = New(10)

Jump to

Keyboard shortcuts

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