package aesutil
import "github.com/teamwork/utils/aesutil"
Package aesutil provides a set of functions for 2-way encryption and hashing.
Index ¶
- func Decrypt(keyString string, base64Data string) ([]byte, error)
- func Encrypt(keyString string, data []byte) (string, error)
Functions ¶
func Decrypt ¶
Decrypt a base64 string to binary data with AES using the key provided.
func Encrypt ¶
Encrypt binary data to a base64 string with AES using the key provided.
Source Files ¶
- Version
- v1.0.0 (latest)
- Published
- Mar 14, 2022
- Platform
- js/wasm
- Imports
- 6 packages
- Last checked
- 20 hours ago –
Tools for package owners.