C# Class PubNubMessaging.Core.PubnubCryptoBase

ファイルを表示 Open project: pubnub/c-sharp Class Usage Examples

Public Methods

Method Description
ConvertHexToUnicodeChars ( string value ) : string

Converts the upper case hex to lower case hex.

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

Protected Methods

Method Description
ComputeHashRaw ( string input ) : string

Computes the hash using the specified algo

EncodeNonAsciiCharacters ( string value ) : string

Encodes the non ASCII characters.

EncryptOrDecrypt ( bool type, string plainStr ) : string
GetEncryptionKey ( ) : string

Method Details

ComputeHashRaw() protected abstract method

Computes the hash using the specified algo
protected abstract ComputeHashRaw ( string input ) : string
input string /// Input string ///
return string

ConvertHexToUnicodeChars() public static method

Converts the upper case hex to lower case hex.
public static ConvertHexToUnicodeChars ( string value ) : string
value string Hex Value.
return string

Decrypt() public method

public Decrypt ( string cipherText ) : string
cipherText string
return string

EncodeNonAsciiCharacters() protected method

Encodes the non ASCII characters.
protected EncodeNonAsciiCharacters ( string value ) : string
value string /// Value. ///
return string

Encrypt() public method

public Encrypt ( string plainText ) : string
plainText string
return string

EncryptOrDecrypt() protected abstract method

protected abstract EncryptOrDecrypt ( bool type, string plainStr ) : string
type bool
plainStr string
return string

GetEncryptionKey() protected method

protected GetEncryptionKey ( ) : string
return string

PubnubAccessManagerSign() public method

public PubnubAccessManagerSign ( string key, string data ) : string
key string
data string
return string

PubnubCryptoBase() public method

public PubnubCryptoBase ( string cipher_key ) : System
cipher_key string
return System