crypto

package
v0.0.0-...-d04c61c Latest Latest
Warning

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

Go to latest
Published: May 4, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decrypt

func Decrypt(key string, token string) ([]byte, error)

Decrypt attempts to decrypt the input string.

func Encrypt

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

Encrypt encrypts the input bytes into a base64 encoded string.

func Hash

func Hash(s string) (string, error)

Hash hashes the input string.

func HashCheck

func HashCheck(s, hash string) bool

HashCheck compares the input string to the input hash.

Types

This section is empty.

Jump to

Keyboard shortcuts

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