in reply to Re: Re: Alternative Perl encryption module
in thread Alternative Perl encryption module

Without looking at the subject, I would assume that the author needs a hashing algorithm, but not for cryptographic purposes. In which case, a smaller hash is just fine as long as you know how to take care of collisions (the book "Intro to Algorithms" handles this by putting colliding data into a linked list which is walked through to find the specific entry you need).

But since the subject specifies encryption, I would say the author needs to research more about cryptography.

----
Reinvent a rounder wheel.

Note: All code is untested, unless otherwise stated

  • Comment on Re: Re: Re: Alternative Perl encryption module

Replies are listed 'Best First'.
Re: Re: Re: Re: Alternative Perl encryption module
by mowgli (Friar) on Mar 10, 2003 at 17:35 UTC

    *nods* In case cryptographic strength is not needed, one might just use an SHA-1 mac and cut it in half, so to speak; I have no idea what conditions would still hold with regard to the absence of collisions if one did that, but depending on the problem at hand, it might be worth looking into.

    --
    mowgli