Documentation ¶ Index ¶ type AESCipher func NewAESCipher(key_str string) (*AESCipher, error) func (ci *AESCipher) Decrypt(cipherstring string, base64_encoded bool) (plainstring string, err error) func (ci *AESCipher) Encrypt(plaintext []byte, base64_encoded bool) (cipherstring string) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type AESCipher ¶ type AESCipher struct { GCM cipher.AEAD // contains filtered or unexported fields } func NewAESCipher ¶ func NewAESCipher(key_str string) (*AESCipher, error) Initilze AES/GCM for both encrypting and decrypting. func (*AESCipher) Decrypt ¶ func (ci *AESCipher) Decrypt(cipherstring string, base64_encoded bool) (plainstring string, err error) func (*AESCipher) Encrypt ¶ func (ci *AESCipher) Encrypt(plaintext []byte, base64_encoded bool) (cipherstring string) Source Files ¶ View all Source files encrypt.go Click to show internal directories. Click to hide internal directories.