security

package
Version: v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// LowSecurity if password rating in rage(0,49)
	Low int = iota
	// MidSecurity if password rating in rage(50, 74)
	Satifsfied
	// HighSecurity if password rating in rage(75, 100)
	High

	HighBound       = 65
	SatifsfiedBound = 35
	LowBound        = 0
)

Variables

This section is empty.

Functions

func DecryptVault

func DecryptVault(b []byte, key string, v interface{}) error

DecryptVault encrypts the data using the key

func EncryptVault

func EncryptVault(b []byte, key string) ([]byte, error)

EncryptVault encrypts the data using the key

func InitWithDefault

func InitWithDefault(key string, defaultVault interface{}) ([]byte, error)

InitWithDefault encrypts and empty map[string]interface with a provided key

func PasswordStrength

func PasswordStrength(password string) int

PasswordStrength evaluates how strong the password is based on the variety and diversity of the chosen characters

Types

This section is empty.

Source Files

Jump to

Keyboard shortcuts

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