java - How should I implement a string hashing function for these requirements? -
OK, I need a hashing function to meet the following requirements. I consider part of the same logical structure, But files in different physical areas of the file system have the ability to be linked together.
I need to implement it in Java, it should be consistent with execution sessions and this can return a long time.
I will be getting directory names / strings that should work so that "somefolder1"
and "somefolder2"
will return a different hash, as "Jjk"
and "jjl"
.
Any suggestions?
Thank you
For the skirmishes, just see how many large hash outputs have Java's own Hashod ()
returns a int
, so you expect that there is more conflict than this, for example For those who generate 128 and 160 bits respectively,
You should not try to create such a function from scratch, though.
However, I understand a lot Did not come whether there should never be a confrontation in your use or if it is acceptable if they are acceptable or not. To add folders, there may definitely be something more than once, instead of doing it, -to-unique-page He uses Chankrta.
Comments
Post a Comment