AES encryption/decryption library
Based on the encryption article by Nic Raboy.
import (
"github.com/erikbryant/aes"
)
plainText := "rattlesnake"
passphrase := "bites"
cipherText, err := aes.Encrypt(plainText, passphrase)
if err != nil {
return err
}
import (
"github.com/erikbryant/aes"
)
cipherText := "vJ5fbgmTTPDc+ebBYbjaCq7JjOQWSy10T3JyC3wfF4Xp0UoEaq40"
passphrase := "bites"
plainText, err := aes.Decrypt(cipherText, passphrase)
if err != nil {
return err
}