Generates a new random key of the given size.
On This Page
The size of the key to generate. You can use one of the standard sizes, like bits256, or you can create a key of custom length by initializing a SymmetricKeySize instance with a non-standard value.
Creates a key from the given data.
The sizes that a symmetric cryptographic key can take.