Documentation ¶
Index ¶
- func DecryptString(cipherKey string, message string) (retVal interface{}, err error)
- func EncodeJSONAsPathComponent(jsonBytes string) string
- func EncryptString(cipherKey string, message string) 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 QueryToString(query *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 URLEncode(s string) string
- func UUID() string
- func ValueAsString(value interface{}) ([]byte, error)
- type A
- type B
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecryptString ¶
DecryptString decodes encrypted string using the cipherKey
It accepts the following parameters: cipherKey: cipher key to use to decrypt. message: to encrypted.
returns the unencoded encrypted string, error if any.
func EncodeJSONAsPathComponent ¶
encodeJSONAsPathComponent properly encodes serialized JSON for placement within a URI path
func EncryptString ¶
EncryptString creates the base64 encoded encrypted string using the cipherKey. It accepts the following parameters: cipherKey: cipher key to use to encrypt. message: to encrypted.
returns the base64 encoded encrypted string.
func GetHmacSha256 ¶
getHmacSha256 creates the cipher key hashed against SHA256. It accepts the following parameters: secretKey: the secret key. input: input to hash.
returns the hash.
func PreparePamParams ¶
func QueryToString ¶
func SerializeAndEncrypt ¶
func ValueAsString ¶
PubNub - specific serializer