There only one intval needed.

Add support for other hash algorithms. Use when server support it.