pont

package module
v1.4.4 Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2025 License: MIT Imports: 14 Imported by: 0

README

pont

Go Reference

the bridge

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Encrypt

func Encrypt(suite Suite, key, plaintext, aad string) (ciphertext string, err error)

Types

type Suite

type Suite string
const (
	ChaCha20_Poly1305_SHA256   Suite = "ChaCha20-Poly1305_SHA256"
	ChaCha20_Poly1305_SHA512   Suite = "ChaCha20-Poly1305_SHA512"
	ChaCha20_Poly1305_SHA3_256 Suite = "ChaCha20-Poly1305_SHA3-256"
	ChaCha20_Poly1305_SHA3_512 Suite = "ChaCha20-Poly1305_SHA3-512"
	AES_256_GCM_SHA256         Suite = "AES-256-GCM_SHA256"
	AES_256_GCM_SHA512         Suite = "AES-256-GCM_SHA512"
	AES_256_GCM_SHA3_256       Suite = "AES-256-GCM_SHA3-256"
	AES_256_GCM_SHA3_512       Suite = "AES-256-GCM_SHA3-512"
)

func Decrypt

func Decrypt(key, ciphertext string) (suite Suite, plaintext, aad string, err error)

Directories

Path Synopsis
cmd
pts

Jump to

Keyboard shortcuts

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