Podcast #128: We chat with Kent C Dodds about why he loves React and discuss what life was like in the dark days before Git. Listen now.

Questions tagged [hashcode]

Hashcode is a result of applying a hash function to data, usually an integer.

Filter by
Sorted by
Tagged with
10
votes
2answers
4k views

Override equals() and hashCode() using reflection

I wrote a utility method to override equals() using reflection. This works fine, but I wonder if this code will pass all the tests. ...
2
votes
2answers
283 views

Hashing a password

Does this look like a good method to hash a user password? I'm not very familiar with how this whole hashing process works and below is a bunch of stuff I've seen on many different posts. My main ...
4
votes
1answer
58 views

A PHP Toolkit of some functions

Any major security risks? And please don't get angry over my novice log system. ...
7
votes
1answer
5k views

Implementation of the FNV-1a hash algorithm for 32- and 64-bit

Are there any improvements to these two classes which implement FNV-1a for hashing? Particularly, I'm looking for any reuse opportunities (possibly via a common abstract superclass derived from ...
5
votes
4answers
923 views

Equals and hashCode implementation

This is the domain class called WordType which has Id as its unique DB generated value and Name and Description as other values. I was going through the Effective ...
2
votes
2answers
366 views

Computing hash of string

I want my code to be reviewed and I'd like to hear your opinions. Sun's code to compute hash of string: ...
2
votes
3answers
552 views

Retrieving current time and computing a hash value

Can someone critique this Java code? ...