csprng.system

A Cryptographically-Secure Pseudo-Random Number Generator that uses system APIs as its source of secure random bytes. In the case of Windows, it uses the $(MONO BCryptGenRandom), $(MONO CryptGenRandom), and $(MONO RtlGenRandom) libraries in that order of fallback. On POSIX-ish systems, it uses the pseudo-device, $(MONO /dev/random), as its source of secure random bytes.

"ARC4" is a trademark of https://www.rsa.com/, RSA Laboratories.

Members

Aliases

CSPRNG
alias CSPRNG = CryptographicallySecurePseudoRandomNumberGenerator
CSPRNGException
alias CSPRNGException = CryptographicallySecurePseudoRandomNumberGeneratorException

Classes

CryptographicallySecurePseudoRandomNumberGenerator
class CryptographicallySecurePseudoRandomNumberGenerator

The class that wraps the system's CSPRNG APIs, making it easy to retrieve cryptographically-secure pseudo-random bytes.

CryptographicallySecurePseudoRandomNumberGeneratorException
class CryptographicallySecurePseudoRandomNumberGeneratorException

A generic CSPRNG exception

Meta

Authors

  • $(PERSON Jonathan M. Wilbur, jonathan@wilbur.space, http://jonathan.wilbur.space)