Appearance
Decrypt Method
Definition
- Namespace:
JASE.Crypto - Assembly:
JASE.Crypto.dll
Overloads
| Name | Description |
|---|---|
byte[] Decrypt(byte[] data, byte[] key, SymmetricAlgorithms algorithm = null, EncryptionPaddingMode padding = null) | Decrypts an IV ‖ ciphertext payload produced with a raw key. |
string Decrypt(string data, byte[] key, SymmetricAlgorithms algorithm = null, EncryptionPaddingMode padding = null) | Decrypts a Base64 IV ‖ ciphertext string produced with a raw key. |
byte[] Decrypt(byte[] data, byte[] key, SymmetricAlgorithms algorithm = null, EncryptionPaddingMode padding = null)
csharp
byte[] Decrypt(byte[] data, byte[] key, SymmetricAlgorithms algorithm = null, EncryptionPaddingMode padding = null)Decrypts an IV ‖ ciphertext payload produced with a raw key.
Parameters
| Name | Description |
|---|---|
algorithm | Symmetric algorithm (default AES-256). |
data | Ciphertext as IV ‖ ciphertext. |
key | Raw key material used to encrypt. |
padding | Block padding mode (default PKCS7). |
Returns
The decrypted plaintext.
string Decrypt(string data, byte[] key, SymmetricAlgorithms algorithm = null, EncryptionPaddingMode padding = null)
csharp
string Decrypt(string data, byte[] key, SymmetricAlgorithms algorithm = null, EncryptionPaddingMode padding = null)Decrypts a Base64 IV ‖ ciphertext string produced with a raw key.
Parameters
| Name | Description |
|---|---|
algorithm | Symmetric algorithm (default AES-256). |
data | Base64-encoded ciphertext. |
key | Raw key material used to encrypt. |
padding | Block padding mode (default PKCS7). |
Returns
The decrypted string.