Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

I have been looking for the algorithm that generates random number and this algo

ID: 650858 • Letter: I

Question

I have been looking for the algorithm that generates random number and this algorithm has to be more secure.

I am going to use this algorithm to generate the salt that will be used in PBKDF2.

Through my reading, I found that ISAAC is fast algorithm and better than RC4 but it is not good in terms of the security. Also, I thought about Blum Blum Shub algorithm but some articles said it is not an efficient algorithm.

What I need is your opinions about which algorithm is better OR which algorithm you prefer to use?

Thanks

Explanation / Answer

The number one mistake people do when they need random numbers, is not that they use a half-decent prf such as RC4, but that they don't seed it with sufficient entropy. If you get to choose using RC4 with a 128 bit seed packed with fresh entropy, and a state of the art implementation of NIST SP 800-90 seeded with a few calls to a build in rand function, you are better of with a properly seeded RC4.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote