Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > VB Script

Vista - keys for a hash

Reply
 
Old 03-05-2009   #1 (permalink)
zim


x64
 
 

keys for a hash

If I have a hash but don't know the keys, is there a method that will return the keys?
Thanks,
Joe

My System SpecsSystem Spec
Old 03-05-2009   #2 (permalink)
Richard Mueller [MVP]


 
 

Re: keys for a hash

zim wrote:
Quote:

> If I have a hash but don't know the keys, is there a method that will
> return the keys?
> Thanks,
> Joe
This is not a VBScript question, but the answer is no. Given a hash there
should be no way to determine anything about it.

--
Richard Mueller
MVP Directory Services
Hilltop Lab - http://www.rlmueller.net
--


My System SpecsSystem Spec
Old 03-07-2009   #3 (permalink)
Benny Pedersen


 
 

Re: keys for a hash

On Mar 6, 4:34*am, "Richard Mueller [MVP]" <rlmueller-
nos...@xxxxxx> wrote:
Quote:

> zim wrote:
Quote:

> > If I have a hash but don't know the keys, is there a method that will
> > return the keys?
> > Thanks,
> > Joe
>
> This is not a VBScript question, but the answer is no. Given a hash there
> should be no way to determine anything about it.
>
> --
> Richard Mueller
> MVP Directory Services
> Hilltop Lab -http://www.rlmueller.net
> --
Richard, I followed the link I got from Bishop. On the website was a
VBS named: "Calculate_MD5_Hash.vbs"
When I tested it, I got 4544835ce29dd5465ee84151106e7cd8
using a simple test file as source. BUT when I compared the returned
value with the result from
another make-hash-file (an EXE named: "mstMD5.exe",) then I got
another value: 30da2c385a8e2600c929b59cbf62b909
Since the two values are different, only one, or both programs seems
less useful.
Should not the result be the same value when the same source file was
used on both the make-hash-programs ?

Benny,
www.fineraw.com
My System SpecsSystem Spec
Old 03-07-2009   #4 (permalink)
Richard Mueller [MVP]


 
 

Re: keys for a hash


"Benny Pedersen" <b.pedersen@xxxxxx> wrote in message
news:844a9711-e37d-4784-a64e-3f6e31de1a4b@xxxxxx
On Mar 6, 4:34 am, "Richard Mueller [MVP]" <rlmueller-
nos...@xxxxxx> wrote:
Quote:

> zim wrote:
Quote:

> > If I have a hash but don't know the keys, is there a method that will
> > return the keys?
> > Thanks,
> > Joe
>
> This is not a VBScript question, but the answer is no. Given a hash there
> should be no way to determine anything about it.
>
> --
> Richard Mueller
> MVP Directory Services
> Hilltop Lab -http://www.rlmueller.net
> --
Richard, I followed the link I got from Bishop. On the website was a
VBS named: "Calculate_MD5_Hash.vbs"
When I tested it, I got 4544835ce29dd5465ee84151106e7cd8
using a simple test file as source. BUT when I compared the returned
value with the result from
another make-hash-file (an EXE named: "mstMD5.exe",) then I got
another value: 30da2c385a8e2600c929b59cbf62b909
Since the two values are different, only one, or both programs seems
less useful.
Should not the result be the same value when the same source file was
used on both the make-hash-programs ?

Benny,
www.fineraw.com

-------------
The resulting hash value will be the same if:

1. The same input is hashed.
2. The same algorithm is used.
3. The same key or salt value is used (if there is one).

Assuming you supplied the same input, then the algorithms used by the two
programs are not the same. However, I don't know of any variations in the
implentation if MD5. Perhaps one of the programs introduces a secret "salt"
value. MD5 is not a keyed hash algorithm. If a "salt" value is used, either
the salt must be appended to the hash (so it can be used to duplicate the
result) or the program always uses the same secret salt value. That's just a
guess, because if MD5 is used in both cases, a given input should always
hash to the same value.

My source (Handbook of Applied Cryptography, by Menezes, Oorschot, and
Vanstone) say that MD5 should hash the string "a" to the following 128-bit
value:

0cc175b9c0f1b6a831c399e269772661

Maybe you can use this information to tell which program is really MD5. My
best guess is that the other program adds a secret "salt" value to the
input.

--
Richard Mueller
MVP Directory Services
Hilltop Lab - http://www.rlmueller.net
--


My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
keys & SHIFT keys not working properly in Vista Home Premium Vista General
How do you fix hash mismatches? Vista performance & maintenance
MD5 Hash Mishmatch Vista installation & setup
how to verify a hash? Vista General
MD5 hash Vista General


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46