A contract for any provider for symmetric cryptographic implementations.
Decrypts a cypher text using a specified symmetric cryptography provider.
public Byte[] Decrypt(ciphertext)
The resulting plain text.
Name | Type | Summary |
---|---|---|
ciphertext | Byte[] | The cipher text to decrypt. |
Decrypts a cypher stream using the specified symmetric cryptograpy provider.
public Void Decrypt(source, destination)
Name | Type | Summary |
---|---|---|
source | Stream | The source stream to decript. |
destination | Stream | The destination stream where the plain text result should be written. |
Encrypts a secret using a specified symmetric cryptography provider.
public Byte[] Encrypt(plaintext)
The resulting cipher text.
Name | Type | Summary |
---|---|---|
plaintext | Byte[] | The input to encrypt. |
Encrypts a secret into the source stream using the specified cryptography provider.
public Void Encrypt(source, destination)
Name | Type | Summary |
---|---|---|
source | Stream | The source stream to encrypt. |
destination | Stream | The destination stream where the cipher text should be written. |