Beamable SDK
Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
PubNubMessaging.Core.PubnubCryptoBase Class Referenceabstract
Inheritance diagram for PubNubMessaging.Core.PubnubCryptoBase:
Inheritance graph
[legend]

Public Member Functions

 PubnubCryptoBase (string cipher_key)
 
string Encrypt (string plainText)
 
string Decrypt (string cipherText)
 
string PubnubAccessManagerSign (string key, string data)
 

Static Public Member Functions

static string ConvertHexToUnicodeChars (string value)
 Converts the upper case hex to lower case hex. More...
 

Protected Member Functions

abstract string ComputeHashRaw (string input)
 Computes the hash using the specified algo More...
 
string GetEncryptionKey ()
 
abstract string EncryptOrDecrypt (bool type, string plainStr)
 
string EncodeNonAsciiCharacters (string value)
 Encodes the non ASCII characters. More...
 

Member Function Documentation

◆ ComputeHashRaw()

abstract string PubNubMessaging.Core.PubnubCryptoBase.ComputeHashRaw ( string  input)
protectedpure virtual

Computes the hash using the specified algo

Returns
The hash.
Parameters
inputInput string
algorithmAlgorithm to use for Hashing

Implemented in PubNubMessaging.Core.PubnubCrypto.

◆ ConvertHexToUnicodeChars()

static string PubNubMessaging.Core.PubnubCryptoBase.ConvertHexToUnicodeChars ( string  value)
inlinestatic

Converts the upper case hex to lower case hex.

Returns
The lower case hex.
Parameters
valueHex Value.

◆ EncodeNonAsciiCharacters()

string PubNubMessaging.Core.PubnubCryptoBase.EncodeNonAsciiCharacters ( string  value)
inlineprotected

Encodes the non ASCII characters.

Returns
The non ASCII characters.
Parameters
valueValue.

◆ EncryptOrDecrypt()

abstract string PubNubMessaging.Core.PubnubCryptoBase.EncryptOrDecrypt ( bool  type,
string  plainStr 
)
protectedpure virtual

EncryptOrDecrypt

Basic function for encrypt or decrypt a string for encrypt type = true for decrypt type = false

Implemented in PubNubMessaging.Core.PubnubCrypto.


The documentation for this class was generated from the following file: