Méthode | Description | |
---|---|---|
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.
|
Méthode | Description | |
---|---|---|
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 |
Résultat | 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 |
Résultat | 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 |
Résultat | string |