aes

package
Version: v0.0.0-...-99a2c5e Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package aes provides easy to use functions for utilizing AES GCM to encrypt and decrypt messages using a provided secret key.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decrypt

func Decrypt(key []byte, ciphertext string) (string, error)

Decrypt decrypts an AES encrypted message using the provided key. The key must be 16, 24 or 32 byte broad to select either AES-128, AES-192 or AES-256.

func Encrypt

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

Encrypt uses AES to securly encrypt a plaintext using the provided key. The key must be 16, 24 or 32 byte broad to select either AES-128, AES-192 or AES-256.

Types

This section is empty.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL