security

package
Version: v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decrypt added in v0.3.2

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

Decrypt encrypts the data using the key

func Encrypt added in v0.3.2

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

Encrypt encrypts the data using the key

func GenPassword added in v0.3.2

func GenPassword(len int) (string, error)

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) error

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