safe

package
v0.0.0-...-f8e9dc7 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2024 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decrypt

func Decrypt(secret, ciphertext []byte) ([]byte, error)

func Encrypt

func Encrypt(secret, plaintext []byte) ([]byte, error)

func Secret

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

func Signature

func Signature(secret, data []byte) []byte

Signature can be used to generate a HMAC-SHA256 hash of a given data to ensure its integrity.

Types

This section is empty.

Jump to

Keyboard shortcuts

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