Documentation ¶
Index ¶
- func DecryptString(cipherKey string, message string) (retVal interface{}, err error)
- 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 UrlEncode(s string) string
- func Uuid() string
- func ValueAsString(value interface{}) ([]byte, error)
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 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 ValueAsString ¶
PubNub - specific serializer
Types ¶
This section is empty.