Sujet : Re: Generate random passwords with your mouse ... :-)
De : 333200007110-0201 (at) *nospam* ybtra.de (Marcel Logen)
Groupes : sci.cryptDate : 06. Mar 2025, 16:54:55
Autres entêtes
Organisation : Bureau Logen
Message-ID : <87o6yei2gg.fsf@pc-731.ybtra.de>
References : 1 2 3 4 5 6 7 8
User-Agent : Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux)
Richard Heathfield in sci.crypt:
[...]
I'm also having the same issues as Marcel after a COMPLETED run.
>
I see that you are using a 32-byte array, so I hashed G~, G~\0, and:
>
47 7e 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
>
and none of them came to
6249e6faa58831154f6df352c843a316a98c6b1eb57baa61a8bf4401e3726988
>
Sorry.
The problem is solvable. :-)
| $ echo 2050 | xxd -r -p | sha256sum
| 6249e6faa58831154f6df352c843a316a98c6b1eb57baa61a8bf4401e3726988 -
See this output ...
| $ ./mouse-entropy06.py
| abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!"$%^&*()_-+={}[]#~@;:/?.>,<|
| 0----+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9
| length: 91
| 91
| ---
| 32 0x20
| 123 0x7b
| 214 0xd6
|
| 80 0x50
| 171 0xab
... from this Python3 code:
| $ cat mouse-entropy06.py
| #!/usr/bin/python3
| a1 ="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"$%^&*()_-+={}[]#~@;:/?.>,<|"
| j10='0----+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9'
| print(a1)
| print(j10)
| print('length:',len(a1))
| # omitted: SPC, `, '
|
| b2=len(a1)
| print(b2)
| print('---')
|
| # Random Password: G~
| # SHA256: 6249e6faa58831154f6df352c843a316a98c6b1eb57baa61a8bf4401e3726988
|
| c3='G~'
| for d4 in range(len(c3)):
| e5=a1.index(c3[d4])
| f6=e5+91
| g7=f6+91
| h8=g7+91
| for i9 in [e5,f6,g7,h8]:
| if i9<=255:
| print(i9,hex(i9),end=' ')
| print()
Marcel
-- Thu Mar 6 16:54:55 2025 CET (1741276495)pc-73187 o6ye i2ggLines: 71