basiccrypt

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decrypt

func Decrypt(data, passphrase string) string

func Encrypt

func Encrypt(data []byte, passphrase string) string

Encrypt is delegated to crypt the data in input with the given password

func GenerateToken

func GenerateToken(username string, password string) string

GenerateToken create a token for authenticate the request

func VerifyPlainPasswords

func VerifyPlainPasswords(plainPswUser, chiperPswDb, key string) bool

VerifyPlainPasswords is delegated to verify if the incoming password is equals to the one stored in the DB

func VerifyTokens

func VerifyTokens(token1, token2, password string) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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