|
|
back to boardTo Admins. Weak hashing tests. Posted by d3m0n1c 19 Jun 2013 19:17 Words can be easily hashed like: int hash = 0; while(..){ hash = hash * 31 + 'readed byte' } So equals will looks like: @Override public boolean equals(Object o) { return this.hash == o.hashCode(); } |
|
|