encryption

package
v0.0.0-...-4f59262 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2026 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNilInput   = errors.New("cannot convert to base64 with nil input")
	ErrBlankInput = errors.New("cannot convert from base64 with blank input")
)

Functions

func DecryptAndDecode

func DecryptAndDecode(base64Encoded string, secretKey string) (string, error)

DecryptAndDecode decodes and decrypts a given base64 string and returns the decrypted plain text

func EncryptAndEncode

func EncryptAndEncode(input string, secretKey string) (string, error)

EncryptAndEncode encrypts an input with a secret key and returns the base64 encoded and encrypted string

Types

This section is empty.

Jump to

Keyboard shortcuts

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