Click or drag to resize

AesCipherGenerateKey Method

Generates a random encryption key with the specified size in bits.

Namespace:  Neon.Cryptography
Assembly:  Neon.Cryptography (in Neon.Cryptography.dll) Version: 2.14.0
public static string GenerateKey(
	int keySize = 256


keySize (Optional)
Type: SystemInt32
The key size in bits (default 256).

Return Value

Type: String
The key encoded as base-64.
Note that only these key sizes are currently supported: 128, 192, and 256 bits. Only 256 bits is currently considered to be secure.
See Also