Documentation ¶
Index ¶
- func BearerHMAC(payload []byte) []byte
- func BearerVerify(payload []byte, signature []byte) bool
- func DecryptWithExpiration(payload []byte, expiry time.Duration) []byte
- func DecryptWithoutExpiration(payload []byte) []byte
- func Encrypt(payload []byte) []byte
- func InitCrypto(config ini.File)
- func Sign(payload []byte) []byte
- func SignWebhook(payload []byte) (string, string)
- func Verify(payload, signature []byte) bool
- func VerifyWebhook(payload []byte, nonce, signature string) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BearerHMAC ¶
func BearerVerify ¶
func DecryptWithExpiration ¶
func InitCrypto ¶
func InitCrypto(config ini.File)
func SignWebhook ¶
Signs the payload for a webhook, returning respectively the values for the X-Payload-Nonce and X-Payload-Signature headers.
func VerifyWebhook ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.