简体   繁体   English

如何使用C++生成超大独立均匀分布随机数供密码学使用

[英]How to use C++ to generate super large independent and uniform distribution random numbers for cryptographic uses

For example, linear congruence might not be secure enough when generating random numbers when it is used in cryptography even though it is much easier to implement.例如,线性同余在密码学中使用时生成随机数时可能不够安全,尽管它更容易实现。 Are there existing methods to help us generate super large (eg, 1024-bit) random numbers or are there possible ways to generate that large numbers uniformly and independently?是否有现成的方法可以帮助我们生成超大(例如 1024 位)随机数,或者是否有可能统一且独立地生成如此大的数字?

If you are talking about cryptographiy then pseduorandom number gnerators just don't cut it.如果您在谈论密码学,那么伪随机数生成器就不要削减它。 Read 1024 bit from /dev/random on unix or whatever is equivalent on windows.从 unix 上的 /dev/random 或 windows 上的任何等效内容读取 1024 位。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 C ++ TR1:在const方法中使用均匀分布生成随机数的正确方法是什么? - C++ TR1: What is the proper way to use a uniform distribution to generate a random number in a const method? 如何使用uniform_real_distribution生成不同的数字? - How to use uniform_real_distribution to generate different numbers? 在 C/C++ 中生成服从正态分布的随机数 - Generate random numbers following a normal distribution in C/C++ 如何在没有浮点数/双数的情况下生成均匀和高斯分布的伪随机数? - How generate pseudo-random numbers in uniform and gaussian distribution without float/double numbers? C ++ - 在范围内正态分布后生成随机数 - C++ - generate random numbers following normal distribution within range 生成具有均匀分布的随机数(循环获得相同的数) - Generate random numbers with uniform distribution (getting same number in loop) 在C ++中使用统一实分布生成的随机数并不是真正均匀分布的 - Random numbers generated using uniform real distribution in C++ are not really uniformly distributed 在失去随机性之前,std :: uniform_real_distribution可以生成多少个随机数? - How many random numbers can std::uniform_real_distribution generate before losing randomness? 应该C ++ std :: uniform_real_distribution <double> 只产生正数? - Should C++ std::uniform_real_distribution<double> only generate positive numbers? std :: uniform_real_distribution使用多少个随机数? - How many random numbers does std::uniform_real_distribution use?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM