security

package
v0.0.16 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2021 License: MIT Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecryptPassword

func DecryptPassword(src string) string

func EncryptPassword

func EncryptPassword(src string) string

func PoorPassword

func PoorPassword() string

func SetupCipher

func SetupCipher(passwdCipher Cipher)

func StrongPassword

func StrongPassword() string

Types

type Cipher

type Cipher interface {
	Encrypt(src []byte) ([]byte, error)
	Decrypt(src []byte) ([]byte, error)
	HexDigestEncrypt(str string) (string, error)
	HexDigestDecrypt(hexstr string) (string, error)
}

Jump to

Keyboard shortcuts

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