Xeno-rat
Loading...
Searching...
No Matches
xeno_rat_server.Encryption Class Reference
Collaboration diagram for xeno_rat_server.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_server.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 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.

Here is the caller graph for this function:

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

Here is the caller graph for this function:

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