Re: How is .net generating extra bits in MD5?

From: William Stacey [MVP] (staceywREMOVE_at_mvps.org)
Date: 01/26/05


Date: Tue, 25 Jan 2005 21:37:58 -0500

Can you use SHA1 at other side?

-- 
William Stacey, MVP
http://mvp.support.microsoft.com
"Pete" <jpeteb@hotmail.com> wrote in message
news:1106704766.258159.4510@f14g2000cwb.googlegroups.com...
> Hi Shawn,
>
> OK, I hope I am not being incredibly stupid here, but this is the
> disconnect I'm having in my head. I've looked at PDKDF1, which says
> that the length of the derived key is bounded by the length of the hash
> function output, which is 16 octets or 128 bits in MD5. That I can
> generate fine, but the code fragment is requesting 32 octets or 256
> bits.
>
> >From your blog, it says "PBKDF1 will only produce the number of bytes
> that the hash algorithm generates, but GetBytes will extend the result
> further, allowing you to get a large number of bytes out of your
> password."
>
> There's my question - how is GetBytes() actually producing 16 octets
> more than PDKDF1 says it should? I don't understand how GetBytes() is
> extending the result past what PBKDF1 says. It seems that it must be
> doing another hash to create the data, but how is that derived?
>
> I need to make this work exactly like the .net version as we are using
> this code to pass information between different OS'es, and if we can't
> decode and encode on the foreign systems, that is a big problem.
> Thanks for any more insight you can provide.
>
> --pete
>


Relevant Pages

  • Re: Extend an object with module stored
    ... > I would like extend dynamically an object with one or more Module that I ... > save into an Hash. ... > estensioni: # MY HASH ... subtype, subclass = YAML.read_type_class ...
    (comp.lang.ruby)
  • Re: Extend an object with module stored
    ... > I would like extend dynamically an object with one or more Module that I ... > save into an Hash. ... > Then I have store this information in a YAML file, ... > Do you know some tecnique to extend an Object with module stored in YAML ...
    (comp.lang.ruby)
  • Re: Question on M1917 American Enfield
    ... Hash: SHA1 ... When I extend it out a bit the discomfort lessens. ...
    (rec.guns)
  • Extend an object with module stored
    ... I would like extend dynamically an object with one or more Module that I ... save into an Hash. ... descrizione: Definizioni Testuali ... estensioni: # MY HASH ...
    (comp.lang.ruby)