Documentation
¶
Index ¶
- func Decrypt(encryptedMessage string) (string, error)
- func GenerateRandomBytes(n int) ([]byte, error)
- func SetKeyAndSalt(k []byte, s []byte)
- func SignatureVerificationMiddleware(next http.Handler) http.Handler
- func VerifySignature(signature, encryptedPath string) bool
- func VerifySignatures(signature, encryptedPath string) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateRandomBytes ¶
func SetKeyAndSalt ¶
func VerifySignature ¶
func VerifySignatures ¶
Compare the HMAC created from the message and salt with the one provided by the client
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.