Rnd Module
Properties Methods Events Configuration Settings Errors
The Rnd component class is a basic provider of random number generation functionality.
Syntax
nsoftware.SecureBlackbox.Rnd
Remarks
Use Rnd control to generate pseudo-random numbers or sequences. Methods like NextBytes and NextInt return the next PRNG output, whereas SeedBytes or SeedInt seed the generator with outside entropy.
It is a good idea to use one shared (singleton) Rnd object per process, as it helps spread the entropy across many part of the project, resulting in better and more secure randomization.
Property List
The following is the full list of the properties of the module with short descriptions. Click on the links for further details.
Alphabet | Alphabet to use for random string generation. |
Method List
The following is the full list of the methods of the module with short descriptions. Click on the links for further details.
Config | Sets or retrieves a configuration setting. |
NextBytes | Generates an array of random bytes. |
NextInt | Generates a random integer. |
NextPass | Generates a random password. |
NextString | Generates a random string of characters. |
Randomize | Seeds the random generator with a system-originating input. |
SeedBytes | Seeds the generator with a data in a byte array. |
SeedInt | Seeds the generator with an integer value. |
SeedString | Seeds the generator with a string value. |
SeedTime | Seeds the generator with current time. |
Event List
The following is the full list of the events fired by the module with short descriptions. Click on the links for further details.
Error | Informs about errors during cryptographic operations. |
Notification | This event notifies the application about an underlying control flow event. |
Configuration Settings
The following is a list of configuration settings for the module with short descriptions. Click on the links for further details.
CheckKeyIntegrityBeforeUse | Enables or disable private key integrity check before use. |
CookieCaching | Specifies whether a cookie cache should be used for HTTP(S) transports. |
Cookies | Gets or sets local cookies for the component (supported for HTTPClient, RESTClient and SOAPClient only). |
DefDeriveKeyIterations | Specifies the default key derivation algorithm iteration count. |
EnableClientSideSSLFFDHE | Enables or disables finite field DHE key exchange support in TLS clients. |
GlobalCookies | Gets or sets global cookies for all the HTTP transports. |
HttpUserAgent | Specifies the user agent name to be used by all HTTP clients. |
LogDestination | Specifies the debug log destination. |
LogDetails | Specifies the debug log details to dump. |
LogFile | Specifies the debug log filename. |
LogFilters | Specifies the debug log filters. |
LogFlushMode | Specifies the log flush mode. |
LogLevel | Specifies the debug log level. |
LogMaxEventCount | Specifies the maximum number of events to cache before further action is taken. |
LogRotationMode | Specifies the log rotation mode. |
MaxASN1BufferLength | Specifies the maximal allowed length for ASN.1 primitive tag data. |
MaxASN1TreeDepth | Specifies the maximal depth for processed ASN.1 trees. |
OCSPHashAlgorithm | Specifies the hash algorithm to be used to identify certificates in OCSP requests. |
UseOwnDNSResolver | Specifies whether the client components should use own DNS resolver. |
UseSharedSystemStorages | Specifies whether the validation engine should use a global per-process copy of the system certificate stores. |
UseSystemOAEPAndPSS | Enforces or disables the use of system-driven RSA OAEP and PSS computations. |
UseSystemRandom | Enables or disables the use of the OS PRNG. |