Re: Q: How to test new hash algorithm?



Martin Hvidberg wrote:

> I just made a Hash algorithm, because I needed one.
> It makes a N digit hex number from a text string.

You'd better describe it as ASCII-Text -> {0,1}* -> {0,1}^n -> Hex digit
string.

> How do I test the quality of the algorithm?

Simple.
1. Is it an existenting etablished one?
Yes -> OK, just take it
No -> goto 2
2. Are you a professional cryptographer?
Yes -> you should already know how to test it
No -> we don't need another "I believe it' secure"-design from an
amateur

> Is there a 'standard' set of tekst strings that I can feed it?

You shouldn't get beyond #2.

> I guess the output should be close to a normal destribution, is that
> correct?

And that's why you've failed with #2. If your output significantly
differs from a uniform distribution, then your hash is worthless.
.



Relevant Pages

  • Q: How to test new hash algorithm?
    ... I just made a Hash algorithm, ... It makes a N digit hex number from a text string. ... How do I test the quality of the algorithm? ...
    (sci.crypt)
  • Re: what is MD5
    ... No -- it's a hash algorithm. ... Hashing is a bit like encryption, ... When you hash a really long string, ...
    (comp.lang.php)
  • Re: Problems with hex to decimal
    ... > I have searched the message boards and have tried the suggested method by ... What do I need to do to convert a 10 digit hex number to ... Function Hex2Dec(HexString As String) As Variant ... Dim BinStr As String ...
    (microsoft.public.vb.general.discussion)