Skip to content

Random password generation method on Windows 10 #7014

Answered by droidmonkey
Mindean asked this question in Q&A
Discussion options

You must be logged in to vote

The current released version uses libgcrypt which pulls entropy from rndw32: https://www.gnupg.org/documentation/manuals/gcrypt/Random_002dNumber-Subsystem-Architecture.html#Random_002dNumber-Subsystem-Architecture

https://git.gnupg.org/cgi-bin/gitweb.cgi?p=libgcrypt.git;a=blob_plain;f=random/rndw32.c;hb=refs/heads/master

Version 2.7.0 and onward uses the Botan Cryptographic library which pulls entropy from RtlGenRandom (equivalent to CryptGenRandom): https://botan.randombit.net/handbook/api_ref/rng.html#entropy-sources

Read more on CryptGenRandom
https://docs.microsoft.com/en-us/windows/win32/api/wincrypt/nf-wincrypt-cryptgenrandom

At the end of the day, both libgcrypt and botan end up u…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by droidmonkey
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants