b64

package
v0.1.23 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2025 License: MIT Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Base64

func Base64[T string | []byte](value T) string

Base64 returns the base64 encoding of the input value.

func ContentHash added in v0.1.12

func ContentHash(content []byte) (string, error)

ContentHash computes the base64 encoded SHA-256 hash of the given content.

func Hmac256 added in v0.1.12

func Hmac256(message, secret string) (string, error)

Hmac256 computes the base64 encoded HMAC-SHA-256 hash of the given message using the given secret.

Types

This section is empty.

Jump to

Keyboard shortcuts

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