Versions in this module Expand all Collapse all v5 v5.0.1 May 25, 2021 Changes in this version + func DecryptFile(cipherKey string, contentLenEnc int64, reader io.Reader, w io.WriteCloser) + func DecryptString(cipherKey string, message string, useRandomInitializationVector bool) (retVal interface{}, err error) + func EncodeJSONAsPathComponent(jsonBytes string) string + func EncryptCipherKey(cipherKey string) []byte + func EncryptFile(cipherKey string, iv []byte, filePart io.Writer, file *os.File) + func EncryptString(cipherKey string, message string, useRandomInitializationVector bool) string + func GetHmacSha256(secretKey string, input string) string + func JoinChannels(channels []string) []byte + func PamEncode(value string) string + func PreparePamParams(params *url.Values) string + func Serialize(msg interface{}) ([]byte, error) + func SerializeAndEncrypt(msg interface{}, cipherKey string, serialize bool, ...) (string, error) + func SerializeEncryptAndSerialize(msg interface{}, cipherKey string, serialize bool, ...) (string, error) + func TestComplexClassDecryption(t *testing.T) + func TestComplexClassEncryption(t *testing.T) + func URLEncode(s string) string + func UUID() string + func ValueAsString(value interface{}) ([]byte, error) + type A struct + I string + Interface *B + type B struct + Value string