Help us shape the future of Go! Take the 2026 Go Developer Survey

crypto

package module
v0.0.0-...-e55c43d Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecryptPassword

func DecryptPassword(crypted, token, prependedMasterKey, appendedMasterKey string) (string, error)

DecryptPassword ************************************************************* * Decrypt a password according to the passPhrase and the token *****************************************************************************

func DecryptPasswordWithBase64

func DecryptPasswordWithBase64(crypted, token, prependedMasterKey, appendedMasterKey string) (string, error)

DecryptBusinessesDbPassword ************************************************* * Decrypt a password according to the passPhrase and the token *****************************************************************************

func EncryptPassword

func EncryptPassword(uncrypted, token, prependedMasterKey, appendedMasterKey string) (string, error)

EncryptPassword ************************************************************* * Encrypt a password according to the passPhrase and the token *****************************************************************************

func EncryptPasswordWithBase64

func EncryptPasswordWithBase64(uncrypted, token, prependedMasterKey, appendedMasterKey string) (string, error)

EncryptBusinessesDbPassword ************************************************* * Encrypt a password according to the passPhrase and the token *****************************************************************************

func HashPassword

func HashPassword(uncrypted, masterKey string) string

***************************************************************************** ** HashPassword ** Hash a password according to the masterKey *****************************************************************************

func VerifyHash

func VerifyHash(uncrypted, hash, masterKey string) bool

***************************************************************************** ** VerifyHash ** Verify a hash according to the masterKey *****************************************************************************

Types

This section is empty.

Jump to

Keyboard shortcuts

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