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.
Initializes a new instance DefaultSymmetricKeyGenerator.
public Void DefaultSymmetricKeyGenerator(key1, key2)
Name | Type | Summary |
---|---|---|
key1 | String | The first key. |
key2 | String | The second key. |
Type | Summary |
---|---|
ArgumentException | Thrown when key1 or key2 are null or empty. |
Generates an encription for the Aes algorithm.
public Byte[] GenerateKey()
A computed key.
In this document