|
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_server.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 Advanced Encryption Standard (AES) algorithm with the provided key and initialization vector (IV). It creates an instance of AES algorithm, sets the key and IV, and then creates a decryptor using the key and IV. The input data is decrypted using the decryptor and the decrypted result is returned.
◆ Encrypt()
static byte[] xeno_rat_server.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 byte array of the input data .
This method encrypts the input data using the Advanced Encryption Standard (AES) algorithm with the provided Key . It initializes a new instance of the AES algorithm, sets the key and initialization vector (IV), creates an encryptor, and then encrypts the data using a memory stream and a crypto stream. The encrypted result is returned as a byte array.
The documentation for this class was generated from the following file:
- /Users/sumansaurabh/Documents/my-startup/xeno-rat/xeno rat server/Encryption.cs