[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: rng, anyone?



Eric et al write:
> >> There is a problem with generating random numbers by repeated
> >> iterations of a hash function when these numbers will be used to
> >> simulate an encrypted message body.  
> >Try xoring the output with a secret value between MD5 hashes.
> That'll work.  Take the seed as the secret value, and take the first
> hash as the first block.

Or you can delete some bits from the MD5, or, since MD5 takes more input
than it gives output, append a secret value to the MD5 before rehashing.