Hash Folding (how)?

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

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

    DavidXanatos Registered Member

    Joined:
    Sep 6, 2006
    Posts:
    112
    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.
     
Loading...
Thread Status:
Not open for further replies.