Go Back   Velocity Reviews > Newsgroups > Computer Security
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

Computer Security - Re: Reverse Hash Function

 
Thread Tools Search this Thread
Old 12-17-2004, 07:48 PM   #1
Default Re: Reverse Hash Function


Dear experts,

I met a problem, and I don't have experience to solve it. Thus, please give
me a help.



My question is:



I have a hash function: h().

I have a plain text: A



So I can get a hash value B = h(A)



Suppose that I have a reverse hash function: h'()



Then I can get a fade plain text A'= h'(B), probably A' is not equal to A,
but it doesn't matter!



I want to ask: Is it possible to build a reverse hash function h'() so that
h(h'(B)) is equal to B?



I do appreciate if you could answer me or send me a hint.



Merry Christmas!



P. L.




Linda Pan
  Reply With Quote
Old 12-18-2004, 04:24 AM   #2
IPGrunt
 
Posts: n/a
Default Re: Reverse Hash Function
"Linda Pan" <> confessed in news:2KGwd.52$Y72.11
@edtnps91:

> Dear experts,
>
> I met a problem, and I don't have experience to solve it. Thus, please

give
> me a help.
>
>
>
> My question is:
>
>
>
> I have a hash function: h().
>
> I have a plain text: A
>
>
>
> So I can get a hash value B = h(A)
>
>
>
> Suppose that I have a reverse hash function: h'()
>
>
>
> Then I can get a fade plain text A'= h'(B), probably A' is not equal to

A,
> but it doesn't matter!
>
>
>
> I want to ask: Is it possible to build a reverse hash function h'() so

that
> h(h'(B)) is equal to B?
>
>
>
> I do appreciate if you could answer me or send me a hint.
>
>
>
> Merry Christmas!
>
>
>
> P. L.
>
>


Cryptography 101:

A hash function (also called a Digest function) does not have a reverse by
definition. A hash function is defined by the following properties:

1. Fixed length: A hash function takes a variable length string and
provides a fixed length binary value.

2. One-way: h(A) = B is easy to compute, but h'(B) = A is impossible to
discover.

3. Collision-free: if h(A) = B, then there is no h(X) = B, unless A = X.

Hashes are used to maintain data integrity. Computer OS like Unix and
Windows hash user passwords before storage in the etc/passwd file or the
LSA.

Most modern systems salt a password string before applying a hash, to
prevent a dictionary attack. Unless the cracker knows the salt being used,
dictionary attack is impossible.

Other protocols use hashing to ensure data integrity during transmission.
For instance, some server protocols send hash computations of a message
along with a message packet. The client then computes the hash on the
message packet and compares that hash with what was sent by the server. Any
difference, and the client NAKs the packet.

The best hashes are built such that a small change in A creates a large
variance in B (again where h(A) = B).

Sorry. Hashes don't reverse. For encrypting / decrypting using the same
key, use a symmetric algorithm, like DES or Rijndael. For encrypting /
decrypting with matched keys or public/private keys, use an Assymetric
algorithm like RSA or DSA.

-- ipgrunt



IPGrunt
  Reply With Quote
Old 12-18-2004, 01:40 PM   #3
bowgus
 
Posts: n/a
Default Re: Reverse Hash Function
By definition, a hash function is not reversible ... or ... if it is
reversible, it is flawed.




bowgus
  Reply With Quote
Old 12-30-2004, 12:37 AM   #4
Linda Pan
 
Posts: n/a
Default Re: Reverse Hash Function
Thanks A LOT!!! Clearly understood.


"Linda Pan" <> wrote in message
news:2KGwd.52$Y72.11@edtnps91...
> Dear experts,
>
> I met a problem, and I don't have experience to solve it. Thus, please
> give
> me a help.
>
>
>
> My question is:
>
>
>
> I have a hash function: h().
>
> I have a plain text: A
>
>
>
> So I can get a hash value B = h(A)
>
>
>
> Suppose that I have a reverse hash function: h'()
>
>
>
> Then I can get a fade plain text A'= h'(B), probably A' is not equal to A,
> but it doesn't matter!
>
>
>
> I want to ask: Is it possible to build a reverse hash function h'() so
> that
> h(h'(B)) is equal to B?
>
>
>
> I do appreciate if you could answer me or send me a hint.
>
>
>
> Merry Christmas!
>
>
>
> P. L.
>
>





Linda Pan
  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
equivalent function for itoa in Linux gcc compiler suse Software 0 03-06-2009 05:30 AM
SHA1 hash MohammedNgum Software 0 01-29-2008 03:36 PM
How to assign a returns value of a javascript function to a hiddenfield in a webpart Chander Software 0 12-20-2007 09:14 AM
How to call C# function in javascript visj4u Software 2 04-23-2007 03:24 PM
MS Access not recognising Date() function tessythampan Software 0 08-28-2006 11:51 AM




SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.

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