security

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decrypt

func Decrypt(encryptedMessage string) (string, error)

Decrypt is used to decrypt the encrypted message passed in from the client

func GenerateRandomBytes

func GenerateRandomBytes(n int) ([]byte, error)

func SetKeyAndSalt

func SetKeyAndSalt(k []byte, s []byte)

func VerifySignature

func VerifySignature(signature, encryptedPath string) bool

Compare the HMAC created from the message and salt with the one provided by the client

Types

This section is empty.

Jump to

Keyboard shortcuts

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