Sujet : Re: Generate random passwords with your mouse ... :-)
De : rjh (at) *nospam* cpax.org.uk (Richard Heathfield)
Groupes : sci.cryptDate : 06. Mar 2025, 20:26:47
Autres entêtes
Organisation : Fix this later
Message-ID : <vqcstn$33rjg$2@dont-email.me>
References : 1 2 3 4 5 6 7 8 9 10 11
User-Agent : Mozilla Thunderbird
On 06/03/2025 18:52, Marcel Logen wrote:
Stefan Claas in sci.crypt:
Sure, it only needs a slight change in the C code, but I do not want
to have the shasum of a password and prefer the shasum of the entropy,
so that the shasum can be used for a password as well! :-)
One question I ask myself:
Aren't you losing entropy when you use the modulo operation
in the "bytes_to_chars" function? I wonder.
Marcel
Yes.
He'd do better restricting his character set to 64 elements, and then using his entropy 6 bits at a time without any need for the mod. Practical upshot: slightly longer password at no extra cost other than slightly awkward programming as you dance around the bits.
-- Richard HeathfieldEmail: rjh at cpax dot org dot uk"Usenet is a strange place" - dmr 29 July 1999Sig line 4 vacant - apply within