Sujet : Re: lun - Lucky Number
De : rich (at) *nospam* example.invalid (Rich)
Groupes : sci.cryptDate : 08. Mar 2025, 22:32:12
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vqid0s$arf3$1@dont-email.me>
References : 1 2 3 4
User-Agent : tin/2.6.1-20211226 ("Convalmore") (Linux/5.15.139 (x86_64))
Stefan Claas <
fgrsna.pynnf@vagrearg.eh> wrote:
Not to mention that you can do lun with a pencil and paper to get
good entropy (where humans fail) for a password, because it is simple
and easy to understand.
How?
There is zero explanation of lun here.
Looking at the github of lun, there is also zero explanation (in fact,
it is exactly what is shown here, one sample run with no explanation).
The source might show how it is done, but that's the source code, an
actual narriative explanation, with reasons for why various choices
were made, is better than trying to retreive the method by reading the
source.
Looking at the source, how does someone with pencil and paper perform
this magic?:
n, _ := rand.Int(rand.Reader, max)
As well, with just pencil and paper, obtaining a Unix epoch is quite an
interesting 'by hand' calculation in order to perform this:
epochTime := time.Now().Unix()
I'll submit that once one has obtained a "rand.Int()" somehow, and
computes a unix epoch time value somehow, that multipling and adding
those large numbers is possible via pencil and paper (tedious, yes, but
possible).