AesKeyOptions Constructor
Definition
- Namespace
- Cuemon.Security.Cryptography
- Assemblies
- Cuemon.Security.Cryptography.dll
AesKeyOptions()
Initializes a new instance of the AesKeyOptions class.
public AesKeyOptions()
Remarks
The following table shows the initial property values for an instance of AesKeyOptions.
| Property | Initial Value |
|---|---|
| RandomStringProvider |
{ if (size > AesSize.Aes256 || size < AesSize.Aes128) { throw new InvalidEnumArgumentException(nameof(size), (int)size, typeof(AesSize)); } var characters = Alphanumeric.Letters + Alphanumeric.PunctuationMarks; switch (size) { case AesSize.Aes128: return Generate.RandomString(128 / ByteUnit.BitsPerByte, characters); case AesSize.Aes192: return Generate.RandomString(192 / ByteUnit.BitsPerByte, characters); default: return Generate.RandomString(256 / ByteUnit.BitsPerByte, characters); } };
|