package aesutil

import "github.com/teamwork/utils/aesutil"

Package aesutil provides a set of functions for 2-way encryption and hashing.

Index

Functions

func Decrypt

func Decrypt(keyString string, base64Data string) ([]byte, error)

Decrypt a base64 string to binary data with AES using the key provided.

func Encrypt

func Encrypt(keyString string, data []byte) (string, error)

Encrypt binary data to a base64 string with AES using the key provided.

Source Files

aesutil.go

Version
v1.0.0 (latest)
Published
Mar 14, 2022
Platform
js/wasm
Imports
6 packages
Last checked
20 hours ago

Tools for package owners.