ISymmetricProvider

A contract for any provider for symmetric cryptographic implementations.

Namespace:
Inetdev.Security.Cryptography
Type:
Interface
Public:
Yes
Protected:
No
Sealed:
No
Abstract:
Yes
Implements:
System.IDisposable

Methods

Decrypt

Decrypts a cypher text using a specified symmetric cryptography provider.

Signature:
public Byte[] Decrypt(ciphertext)
Returns

The resulting plain text.

Parameters
Name Type Summary
ciphertext Byte[] The cipher text to decrypt.

Decrypt

Decrypts a cypher stream using the specified symmetric cryptograpy provider.

Signature:
public Void Decrypt(source, destination)
Parameters
Name Type Summary
source Stream The source stream to decript.
destination Stream The destination stream where the plain text result should be written.

Encrypt

Encrypts a secret using a specified symmetric cryptography provider.

Signature:
public Byte[] Encrypt(plaintext)
Returns

The resulting cipher text.

Parameters
Name Type Summary
plaintext Byte[] The input to encrypt.

Encrypt

Encrypts a secret into the source stream using the specified cryptography provider.

Signature:
public Void Encrypt(source, destination)
Parameters
Name Type Summary
source Stream The source stream to encrypt.
destination Stream The destination stream where the cipher text should be written.