Here you can find the source of hashToLong(final byte[] hash)
public static long hashToLong(final byte[] hash)
//package com.java2s; //License from project: Open Source License public class Main { /**//from w w w . jav a 2s . c o m * @author sci4me */ public static long hashToLong(final byte[] hash) { long ret = 0; for (int i = 5; i >= 0; i--) ret += (hash[i] & 0xFF) * Math.pow(256, 5 - i); return ret; } }