aes256

package module
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2025 License: MIT Imports: 6 Imported by: 1

README

aesGenerate256

Module to generate aes keys in GoLang

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decrypt

func Decrypt(key string, encodedText string) (string, error)

Used to decrypt a provided string that was previously created with aes256.Encrypt(). This function processes hex encoded stirngs so it should work with any secret as long as it's hex encoded.

func Encrypt

func Encrypt(key string, plaintext string) (string, error)

Used to encrypt a provided string using a provided key string. It's converted to a []byte within the program for processing.

func Random32ByteString

func Random32ByteString() string

Generates a random string to use as an AES key. These keys need to be exactly 32 characters long and it's done as a string to be stored in plaintext.

Types

This section is empty.

Jump to

Keyboard shortcuts

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