I ve been looking at ways to generate a strong 256 bit/32 byte symmetric key for the HMAC_SHA256 algorithm. I stumbled upon the /proc/sys/kernel/random/uuid file.
According to man random(4): "The read-only files uuid and boot_id contain random strings like 6fd5a44b-35f4-4ad4-a9b9-6b9be13e1fe9. The former is generated afresh for each read, the latter was generated once."
The string from cat /proc/sys/kernel/random/uuid
期望实现这一目标。 我可以去除这些果园,最后用32个随机.。
这种做法是否是一种有效的方法,能够产生关键材料的加密有力来源?