Groups | Search | Server Info | Keyboard shortcuts | Login | Register
Groups > comp.lang.java.security > #56
| From | "Robert Kochem" <robert.kochem@THRWHITE.remove-dii-this> |
|---|---|
| Subject | Re: MessageDigest Length |
| Message-ID | <f7k1llped7o1.13us8sed7f2um$.dlg@40tude.net> (permalink) |
| Newsgroups | comp.lang.java.security |
| References | <dcaa8c53-2b2d-4495-83f6-81e3442f4d8f@i29g2000prf.googlegroups.com> |
| Date | 2011-04-27 16:07 +0000 |
| Organization | TDS.net |
To: comp.lang.java.security sean@onset.com.au schrieb: > Does anyone know if there is a way of setting the length of the hashed > value returned from a message digest? Sorry, but this does not make sense to me. Each digest algorithm has a specified output length, e.g. MD5 128-Bit, SHA-1 160bit ... Truncating this output may result in collisions and extending the output is also not destined. If you want a deterministic variable length output generated by a given input you should look for a PRNG (Pseudo Random Number Generator) using it's seed as input value. Robert --- * Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet! --- Synchronet 3.15a-Win32 NewsLink 1.92 Time Warp of the Future BBS - telnet://time.synchro.net:24
Back to comp.lang.java.security | Previous | Next — Previous in thread | Next in thread | Find similar
MessageDigest Length "sean" <sean@THRWHITE.remove-dii-this> - 2011-04-27 16:07 +0000
Re: MessageDigest Length "Robert Kochem" <robert.kochem@THRWHITE.remove-dii-this> - 2011-04-27 16:07 +0000
Re: MessageDigest Length "Roedy Green" <roedy.green@THRWHITE.remove-dii-this> - 2011-04-27 16:07 +0000
Re: MessageDigest Length "Roedy Green" <roedy.green@THRWHITE.remove-dii-this> - 2011-04-27 16:07 +0000
Re: MessageDigest Length "Maarten Bodewes" <maarten.bodewes@THRWHITE.remove-dii-this> - 2011-04-27 16:08 +0000
Re: MessageDigest Length "Roedy Green" <roedy.green@THRWHITE.remove-dii-this> - 2011-04-27 16:08 +0000
Re: MessageDigest Length "Maarten Bodewes" <maarten.bodewes@THRWHITE.remove-dii-this> - 2011-04-27 16:08 +0000
Re: MessageDigest Length "Roedy Green" <roedy.green@THRWHITE.remove-dii-this> - 2011-04-27 16:08 +0000
Re: MessageDigest Length "Roedy Green" <roedy.green@THRWHITE.remove-dii-this> - 2011-04-27 16:08 +0000
Re: MessageDigest Length "rmoldskr+usenet" <rmoldskr+usenet@THRWHITE.remove-dii-this> - 2011-04-27 16:08 +0000
csiph-web