package
1.6.1
Repository: https://github.com/projeto-uspy/uspy-backend.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

AESDecrypt decrypts using AES.
AESEncrypt encrypts using AES.
Bcrypt returns the b-crypt digest of a string It uses 4 as the cost of computing.
BcryptCompare takes an input and a truth digest and compares them Use this instead of direct comparisons because this function is safe.
CheckFileExists takes a path string and returns true if it exists.
GenerateJWT generates a JWT from map.
IsHex takes a string and returns true if it is a hex string.
MakeRequest runs a single request.
Min returns the minimum of two integers.
MustAtoi is like strconv.Atoi, but panics if it fails.
RemoveAccessToken deletes the user access token.
SHA256 returns the sha256 digest of a string.
UniqueInts takes a slice of integers and returns a new slice without duplicates.
ValidateJWT takes a JWT token string and validates it.