Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #38040
| Date | 2013-02-01 15:34 +0100 |
|---|---|
| From | Christian Heimes <christian@python.org> |
| Subject | Re: Need some help confirming transactions using sha256 |
| References | <21037ba0-57e5-4e44-8d50-6503a1187492@googlegroups.com> <amvpfoF7s8gU1@mid.individual.net> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.1278.1359729277.2939.python-list@python.org> (permalink) |
Am 31.01.2013 18:55, schrieb Peter Pearson: >>>> txid = 'r7A7clvs9waizF+6QEiI0tgAq1ar48JItK3kg9kaeAFXz2vsMsHmOd9r9fhkmtxTz3CQnGAPMaDeKLvgb1A2VA' >>>> secret = '10812806653842663997bf5971637f86f26c71a4716276d7fa8f323a83588d91:1' >>>> hashlib.sha256(txid+":"+secret).hexdigest() > 'dfa8769be81a543002865c88a5b52fa07f3b67fc7cd9b519c3f6a6452bcd48e4' >>>> 0x48e4 > 18660 >>>> > > .. . . which is the number you wanted, right? Kryptox, you have chosen the correct algorithm to calculate a MAC. Very good! But the designers of the game are using an improper algorithm. Apparently they don't know much about cryptography, especially length extension attacks ... Christian
Back to comp.lang.python | Previous | Next — Previous in thread | Find similar | Unroll thread
Need some help confirming transactions using sha256 kryptox.exchange@gmail.com - 2013-01-31 08:43 -0800
Re: Need some help confirming transactions using sha256 kryptox.exchange@gmail.com - 2013-01-31 09:30 -0800
Re: Need some help confirming transactions using sha256 Peter Pearson <ppearson@nowhere.invalid> - 2013-01-31 17:55 +0000
Re: Need some help confirming transactions using sha256 kryptox.exchange@gmail.com - 2013-01-31 10:44 -0800
Re: Need some help confirming transactions using sha256 Christian Heimes <christian@python.org> - 2013-02-01 15:34 +0100
csiph-web