Method | Description | |
---|---|---|
Base64ForUrlDecode ( string str ) : string |
Decode Base64 encoded string with URL and Filename Safe Alphabet using UTF-8.
|
|
Base64ForUrlEncode ( string str ) : string |
Base 64 Encoding with URL and Filename Safe Alphabet using UTF-8 character set.
|
|
Base64UrlDecode ( string arg ) : byte[] | ||
Base64UrlEncode ( byte arg ) : string | ||
ConvertInt ( int number ) : byte[] | ||
CreateInfoChunk ( string type, byte recipientPublicKey, byte senderPublicKey ) : byte[] | ||
EncryptMessage ( byte userKey, byte userSecret, byte data, ushort padding, bool randomisePadding = false ) : EncryptionResult | ||
GenerateHKDF ( byte salt, byte ikm, byte info, int len ) : byte[] | ||
SendNotification ( |
||
SendNotification ( |
||
SendNotification ( string endpoint, byte userKey, byte userSecret, byte data = null, int ttl, ushort padding, bool randomisePadding = false ) : bool | ||
SendNotification ( string endpoint, string data, string userKey, string userSecret, int ttl, ushort padding, bool randomisePadding = false ) : bool |
public static Base64ForUrlDecode ( string str ) : string | ||
str | string | Base64 code |
return | string |
public static Base64ForUrlEncode ( string str ) : string | ||
str | string | The origianl string |
return | string |
public static Base64UrlDecode ( string arg ) : byte[] | ||
arg | string | |
return | byte[] |
public static Base64UrlEncode ( byte arg ) : string | ||
arg | byte | |
return | string |
public static ConvertInt ( int number ) : byte[] | ||
number | int | |
return | byte[] |
public static CreateInfoChunk ( string type, byte recipientPublicKey, byte senderPublicKey ) : byte[] | ||
type | string | |
recipientPublicKey | byte | |
senderPublicKey | byte | |
return | byte[] |
public static EncryptMessage ( byte userKey, byte userSecret, byte data, ushort padding, bool randomisePadding = false ) : EncryptionResult | ||
userKey | byte | |
userSecret | byte | |
data | byte | |
padding | ushort | |
randomisePadding | bool | |
return | EncryptionResult |
public static GenerateHKDF ( byte salt, byte ikm, byte info, int len ) : byte[] | ||
salt | byte | |
ikm | byte | |
info | byte | |
len | int | |
return | byte[] |
public static SendNotification ( |
||
sub | ||
data | byte | |
ttl | int | |
padding | ushort | |
randomisePadding | bool | |
return | bool |
public static SendNotification ( |
||
target | ||
obj | object | |
return | bool |
public static SendNotification ( string endpoint, byte userKey, byte userSecret, byte data = null, int ttl, ushort padding, bool randomisePadding = false ) : bool | ||
endpoint | string | |
userKey | byte | |
userSecret | byte | |
data | byte | |
ttl | int | |
padding | ushort | |
randomisePadding | bool | |
return | bool |
public static SendNotification ( string endpoint, string data, string userKey, string userSecret, int ttl, ushort padding, bool randomisePadding = false ) : bool | ||
endpoint | string | |
data | string | |
userKey | string | |
userSecret | string | |
ttl | int | |
padding | ushort | |
randomisePadding | bool | |
return | bool |