RngKeyBytes(Int32, String) Method |
Generates a random key
Namespace: CryptoSysAPIAssembly: diCrSysAPINet (in diCrSysAPINet.dll) Version: 6.22.2.24248 (6.22.2.0)
Syntaxpublic static byte[] KeyBytes(
int numBytes,
string seedStr = ""
)
Public Shared Function KeyBytes (
numBytes As Integer,
Optional seedStr As String = ""
) As Byte()
Parameters
- numBytes Int32
- Required number of random bytes
- seedStr String (Optional)
- User-supplied entropy in string format.
Set as an empty string "" to ignore.
Return Value
ByteArray of random bytes
See Also