|
static byte[] | Encrypt (byte[] data, byte[] Key) |
| Encrypts the input data using the provided key and returns the encrypted result.
|
|
static byte[] | Decrypt (byte[] data, byte[] Key) |
| Decrypts the input data using the provided key and returns the decrypted result.
|
|
◆ Decrypt()
static byte[] xeno_rat_client.Encryption.Decrypt |
( |
byte[] | data, |
|
|
byte[] | Key ) |
|
inlinestatic |
Decrypts the input data using the provided key and returns the decrypted result.
- Parameters
-
data | The data to be decrypted. |
Key | The key used for decryption. |
- Returns
- The decrypted data.
This method decrypts the input data using the provided key and returns the decrypted result. It uses the AES algorithm with a 16-byte initialization vector (IV) and creates a decryptor using the specified key and IV. The decrypted data is returned as a byte array.
◆ Encrypt()
static byte[] xeno_rat_client.Encryption.Encrypt |
( |
byte[] | data, |
|
|
byte[] | Key ) |
|
inlinestatic |
Encrypts the input data using the provided key and returns the encrypted result.
- Parameters
-
data | The data to be encrypted. |
Key | The key used for encryption. |
- Returns
- The encrypted data using the specified key.
This method encrypts the input data using the Advanced Encryption Standard (AES) algorithm with a specified key and initialization vector (IV). It creates an instance of AES algorithm, sets the key and IV, and then creates an encryptor using the specified key and IV. The input data is then encrypted using the encryptor and the resulting encrypted data is returned.
The documentation for this class was generated from the following file:
- /Users/sumansaurabh/Documents/my-startup/xeno-rat/xeno rat client/Encryption.cs