Versions in this module Expand all Collapse all v0 v0.1.0 Apr 22, 2018 Changes in this version + const TypeAES + const TypeXORBase64 + func Decrypt(key, toDecrypt []byte) ([]byte, error) + func DecryptWithAES(key, src []byte) ([]byte, error) + func DecryptWithXORBase64(key, src []byte) ([]byte, error) + func Encrypt(key, toEncrypt []byte, encType byte) ([]byte, error) + func EncryptWithAES(key, src []byte) ([]byte, error) + func EncryptWithXORBase64(key, src []byte) ([]byte, error) + func PKCS7Padding(ciphertext []byte, blockSize int) []byte + func PKCS7UnPadding(origData []byte) []byte