Метод | Описание | |
---|---|---|
Decrypt ( string apiKey, string scopedKey ) : string |
Decrypt an existing scoped key.
|
|
Encrypt ( string apiKey, object secOptions, string IV = "" ) : string |
Encrypt an object containing security options to create a scoped key.
|
|
EncryptString ( string apiKey, string secOptions, string IV = "" ) : string |
Encrypt a string containing JSON formatted Security Options to create a scoped key.
|
Метод | Описание | |
---|---|---|
ByteToHex ( byte a ) : string | ||
ConvertKey ( string apiKey ) : byte[] |
Convert an apiKey string to a byte array.
|
|
GetAes ( byte Key, string IV ) : |
Set up an Aes instance with the correct mode, key and IV
|
|
HexToByte ( string hex ) : byte[] | ||
RemovePadding ( string text ) : string |
Remove PKCS5/7 padding
|
public static Decrypt ( string apiKey, string scopedKey ) : string | ||
apiKey | string | Master API key |
scopedKey | string | Scoped key to be decrypted |
Результат | string |
public static Encrypt ( string apiKey, object secOptions, string IV = "" ) : string | ||
apiKey | string | Master API key |
secOptions | object | An object that can be serialized to produce JSON formatted Security Options |
IV | string | Optional IV, normally not required |
Результат | string |
public static EncryptString ( string apiKey, string secOptions, string IV = "" ) : string | ||
apiKey | string | Master API key |
secOptions | string | Security Options in JSON format |
IV | string | Optional IV, normally not required |
Результат | string |