TopGit theo dõi gentilkiwi/kirandomtpm trên GitHub, đã đạt 19 sao. Get random bytes from the TPM (tool + BCrypt RNG provider)
Tóm tắt dựng từ metadata GitHub của chính dự án — chưa có bài review TopGit. Trang sẽ tự động cập nhật khi bài review đầy đủ được xuất bản.
VÌ SAO CHƯA CÓ REVIEW
TopGit viết bài đầy đủ cho repo có nhiều sao nhất và được yêu cầu nhiều nhất. Trang này là snapshot trong thời gian chờ — xem README gốc ở tab READ ME.
Get random bytes from the TPM (tool + BCrypt RNG provider)
Description
In some cases, you need to get random bytes from your computer in another way than software (because you don't trust it).
Microsoft introduced with Windows 8 a RNG provider available for BCrypt, but removed it in Windows 10, and you can't force RNG to use TPM by an API (afyk).
I created a BCrypt RNG provider just for fun (and because it's only 3 kB).
It supports Windows 7, 8, 8.1, 10 and Server 2008R2, 2012, 2012R2, 2016, 2019, and TPM 1.2 and 2.0.
Its internal name is: Kiwi Random TPM Provider, and is defined in code as KIRANDOMTPM_PROV_NAME.
Of course, you need to have a supported TPM 1.2 or 2.0 installed (and recognized) on your system.
Note: you can also move files to system directories instead of copying them.
Generate random bytes
Test program
After the installation of the provider, you can use tpm_getrandom to get random bytes from the TPM:
C:\security\kirandomtpm\x64>tpm_getrandom 20
Retrieving 20 random bytes from `Kiwi Random TPM Provider` provider:
aa8df125e44cdc90c3460fa0a7882631f20557db
Note: if you did not register the provider, you can see the section 'Generate random bytes without registering the provider' below.
C:\security\kirandomtpm\x64>tpm_getrandom remove
Removing RNG provider `Kiwi Random TPM Provider`: OK
C:\security\kirandomtpm\x64>del %systemroot%\system32\kirandomtpmprov.dll
C:\security\kirandomtpm\x64>del %systemroot%\syswow64\kirandomtpmprov.dll
Generate random bytes without registering the provider
In some cases, you don't want (or can't) install the provider. No admin rights/only want to test the function. You can use the argument noreg just after the amount of bytes you want to generate on the command line.
C:\security\kirandomtpm\x64>tpm_getrandom 20 noreg
Retrieving 20 random bytes from `kirandomtpmprov.dll` library:
6a5071bf2523ec24b828133b31694e626756297b
List registered RNG provider(s)
C:\security\kirandomtpm\x64>tpm_getrandom list
User mode RNG algorithm(s):
| Microsoft Primitive Provider
| Kiwi Random TPM Provider
C:\security\kirandomtpm\x64>tpm_getrandom remove
Removing RNG provider `Kiwi Random TPM Provider`: OK
C:\security\kirandomtpm\x64>tpm_getrandom list
User mode RNG algorithm(s):
| Microsoft Primitive Provider
Build
kirandomtpm is composed of two projects, one is the provider itself: kirandomtpmprov, the other one is a tool to test it: tpm_getrandom.
kirandomtpmprov is a library (DLL) and does not need to be linked against the C/C++ runtime. It only links ntdll, kernel32 and tbs.
tpm_getrandom is a console application (EXE) linked against the C/C++ runtime (msvcrt.dll or statically for other versions), kernel32, bcrypt and kirandomtpmprov (to use the application even when the provider is not registered).
Licence
CC BY 4.0 licence - https://creativecommons.org/licenses/by/4.0/
kirandomtpm needs coffee to be developed:
PayPal: https://www.paypal.me/delpy/
Author
Benjamin DELPY gentilkiwi, you can contact me on Twitter ( @gentilkiwi ) or by mail ( benjamin [at] gentilkiwi.com )
Trang TopGit này là một snapshot — tab "Readme" hiển thị nguyên văn README của repo (đã bỏ link, giữ ảnh). Repo GitHub ở github.com/gentilkiwi/kirandomtpm là nguồn chính thức.
gentilkiwi/kirandomtpm có bao nhiêu sao?
gentilkiwi/kirandomtpm có 19 sao GitHub — tải lại trang để xem số mới nhất, hoặc xem trực tiếp github.com/gentilkiwi/kirandomtpm. TopGit phản chiếu số sao của GitHub nhưng không cam kết đến từng phút.
gentilkiwi/kirandomtpm có phải mã nguồn mở không?
TopGit chưa ghi nhận license cho gentilkiwi/kirandomtpm. Phần lớn repo public trên GitHub là mã nguồn mở, nhưng điều khoản khác nhau từng repo — mở file LICENSE để xác nhận.
gentilkiwi/kirandomtpm còn đang phát triển không?
Commit gần nhất trên gentilkiwi/kirandomtpm là 6.1 năm trước (theo timestamp GitHub). Repo có 5 fork — một chỉ báo về mức độ quan tâm của cộng đồng.
gentilkiwi/kirandomtpm là gì?
gentilkiwi/kirandomtpm (gentilkiwi/kirandomtpm) là dự án C trên GitHub. Theo mô tả gốc: Get random bytes from the TPM (tool + BCrypt RNG provider)
Đọc đầy đủ README ở tab phía trên.
Vẫn đang phân vân về kirandomtpm?
Một cú bấm sẽ gửi câu hỏi kèm trang này cho AI — xem AI nói gì về kirandomtpm.