Hash Folding (how)?

Discussion in 'privacy general' started by DavidXanatos, Jun 20, 2010.

Thread Status:
Not open for further replies.
  1. DavidXanatos

    DavidXanatos Developer

    Joined:
    Sep 6, 2006
    Posts:
    2,334
    Location:
    Viena
    Hi,

    I need to fold a 256 bit SHA hash on 128 bits for use in a hashtabele, and thus should be done cryptographically safe.

    Are there some proper ways to do this?

    The simple approach would be
    1. to drop the 2nd half of teh hash or
    2. XOR the 1st half with the 2nd half
    bit its this safe?

    Sincerely
    David X.
     
Thread Status:
Not open for further replies.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.