encrypt

package
v2.24.0 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package encrypt provides utilities to encrypt and decrypt data.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AES256GCM

func AES256GCM(key, plaintext []byte) []byte

AES256GCM encrypts the plaintext using AES-256-GCM with the provided key. It returns the ciphertext with the nonce prepended.

func DecryptAES256GCM

func DecryptAES256GCM(key, ciphertext []byte) ([]byte, error)

DecryptAES256GCM decrypts the ciphertext using AES-256-GCM with the provided key.

Types

This section is empty.

Jump to

Keyboard shortcuts

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