A set of helper functions to encode/decode using Base64 scheme and encrypt/decrypt using AES algorithms
go get github.com/gigary/crypto
import "github.com/gigary/crypto"
crypto.Encrypt(plain, key, crypto.IV)to encrypt a plain text using a secret keycrypto.Decrypt(cipher, key, crypto.IV)to decrypt a cipher text using a secret keycrypto.Encode64(text)to encode a string using Base64 schemecrypto.Decode64(text)to decode a string using Base64 scheme
- Michael Bui from Gigary