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. |
Gets or sets the first key.
public String Key1 { get; set; }
Gets or sets the second key.
public String Key2 { get; set; }
Generates an encription key from the two keys for the specified symmetric algorithm. If algorithmType is null, RijndaelManaged is used.
public Byte[] GenerateKey(algorithmType)
A computed key.
Name | Type | Summary |
---|---|---|
algorithmType | Type | Algorithm Type. |
Type | Summary |
---|---|
ArgumentException | Thown the algorithmType is not a SymmetricAlgorithm. |
In this document