![]() |
ProtonNet Server 1.0
An Open Solution for all your socket or web api needs.
|
Defines the interface for a cryptographic provider that supports encryption and decryption of data. More...
Public Member Functions | |
byte[] | Encrypt (byte[] data, object salt) |
Encrypts the specified data using the provided salt. | |
byte[] | Decrypt (byte[] encryptedData, object salt) |
Decrypts the specified encrypted data using the provided salt. | |
bool | TryDecrypt (byte[] encryptedData, object salt, out byte[] data) |
Attempts to decrypt the specified encrypted data using the provided salt. | |
Defines the interface for a cryptographic provider that supports encryption and decryption of data.
byte[] XmobiTea.Crypto.ICryptoProvider.Decrypt | ( | byte[] | encryptedData, |
object | salt ) |
Decrypts the specified encrypted data using the provided salt.
encryptedData | The encrypted data to decrypt. |
salt | The salt to use during decryption. |
Implemented in XmobiTea.Crypto.Aes.CryptoProvider.
byte[] XmobiTea.Crypto.ICryptoProvider.Encrypt | ( | byte[] | data, |
object | salt ) |
Encrypts the specified data using the provided salt.
data | The data to encrypt. |
salt | The salt to use during encryption. |
Implemented in XmobiTea.Crypto.Aes.CryptoProvider.
bool XmobiTea.Crypto.ICryptoProvider.TryDecrypt | ( | byte[] | encryptedData, |
object | salt, | ||
out byte[] | data ) |
Attempts to decrypt the specified encrypted data using the provided salt.
encryptedData | The encrypted data to decrypt. |
salt | The salt to use during decryption. |
data | When this method returns, contains the decrypted data if the decryption succeeded, or an empty byte array if it failed. |
Implemented in XmobiTea.Crypto.Aes.CryptoProvider.