Xeno-rat
Loading...
Searching...
No Matches
xeno_rat_client.Encryption Class Reference
Collaboration diagram for xeno_rat_client.Encryption:

Static Public Member Functions

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.
 

Member Function Documentation

◆ 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
dataThe data to be decrypted.
KeyThe 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.

Here is the caller graph for this function:

◆ 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
dataThe data to be encrypted.
KeyThe 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.

Here is the caller graph for this function:

The documentation for this class was generated from the following file: