DefaultSymmetricKeyGenerator

Creates a key for the SymmetricCryptographer that use an initializator vector of 16 bytes and a key of 32 bytes based on two provided keys.

Namespace:
KpokPatagon.Security.Cryptography
Type:
Class
Public:
Yes
Protected:
No
Sealed:
No
Abstract:
No
Implements:
KpokPatagon.Security.Cryptography.IKeyGenerator

Constructors

DefaultSymmetricKeyGenerator

Initializes a new instance DefaultSymmetricKeyGenerator.

Signature:
public Void DefaultSymmetricKeyGenerator(key1, key2)
Parameters
Name Type Summary
key1 String The first key.
key2 String The second key.
Exceptions
Type Summary
ArgumentException Thrown when key1 or key2 are null or empty.

Methods

GenerateKey

Generates an encription for the Aes algorithm.

Signature:
public Byte[] GenerateKey()
Returns

A computed key.

In this document