![]() |
ProtonNet Server 1.0
An Open Solution for all your socket or web api needs.
|
Provides AES-based cryptographic operations including encryption and decryption. More...
Public Member Functions | |
CryptoProvider () | |
Initializes a new instance of the CryptoProvider class. | |
byte[] | Encrypt (byte[] data, object salt) |
Encrypts the specified data using the provided salt (encryption key). | |
byte[] | Decrypt (byte[] encryptedData, object salt) |
Decrypts the specified encrypted data using the provided salt (encryption key). | |
bool | TryDecrypt (byte[] encryptedData, object salt, out byte[] data) |
Tries to decrypt the specified encrypted data using the provided salt (encryption key). | |
![]() |
Provides AES-based cryptographic operations including encryption and decryption.
byte[] XmobiTea.Crypto.Aes.CryptoProvider.Decrypt | ( | byte[] | encryptedData, |
object | salt ) |
Decrypts the specified encrypted data using the provided salt (encryption key).
encryptedData | The encrypted data to be decrypted. |
salt | The salt (encryption key) to be used for decryption. |
Implements XmobiTea.Crypto.ICryptoProvider.
byte[] XmobiTea.Crypto.Aes.CryptoProvider.Encrypt | ( | byte[] | data, |
object | salt ) |
Encrypts the specified data using the provided salt (encryption key).
data | The data to be encrypted. |
salt | The salt (encryption key) to be used for encryption. |
Implements XmobiTea.Crypto.ICryptoProvider.
bool XmobiTea.Crypto.Aes.CryptoProvider.TryDecrypt | ( | byte[] | encryptedData, |
object | salt, | ||
out byte[] | data ) |
Tries to decrypt the specified encrypted data using the provided salt (encryption key).
encryptedData | The encrypted data to be decrypted. |
salt | The salt (encryption key) to be used for decryption. |
data | The decrypted data if decryption is successful, or null if it fails. |
Implements XmobiTea.Crypto.ICryptoProvider.