crypt

package
v0.0.0-...-c63e43b Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecryptAES

func DecryptAES(str string, key []byte) (string, error)

DecryptAES decrypts a string using AES with a key

func EncryptAES

func EncryptAES(str string, key []byte) (string, error)

EncryptAES encrypts a string using AES with a key

func Hash

func Hash(str string) string

Hash hashes a string TODO cache

func HashWithBytes

func HashWithBytes(str []byte) string

HashWithBytes hashes bytes

func PassHash

func PassHash(str string) string

PassHash hashes a string specifically to be used for passwords

func RandomString

func RandomString(n int) string

RandomString generates a random string

func VerifyPassHash

func VerifyPassHash(str string, expectedStr string) bool

VerifyPassHash verifies that two hashed strings are for the same password string

Types

This section is empty.

Jump to

Keyboard shortcuts

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