Random data on Windows : Use CNG #1166
antonio-fr
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
For now, randombytes_random uses RtlGenRandom from the Advapi32 library in Windows.
It would be better and safer to use from the Windows Cryptography Next Generation API the BCryptGenRandom method from the Bcrypt library.
The drawback is that it requires at least Vista and not older XP, so compatibility is less.
Since XP is deprecated, this loss of compatibility is not an issue.
Beta Was this translation helpful? Give feedback.
All reactions