crypto

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: May 6, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecryptAES

func DecryptAES(cryptoText string, key []byte) ([]byte, error)

DecryptAES decrypts base64 encoded text using AES-GCM.

func EncryptAES

func EncryptAES(plaintext []byte, key []byte) (string, error)

EncryptAES encrypts text using AES-GCM with the given key (must be 32 bytes).

func HashSecret

func HashSecret(ctx context.Context, cfg *fosite.Config, secret string) (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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