@Test public void testToLongs() { String hashMe = "hello world"; long[] longs = HashUtil.hashM5ToLongs(hashMe); System.out.println(longs[0]); System.out.println(longs[1]); }
public static long[] hashM5ToLongs(String s) { byte[] bytes = hashMD5(s); long first = ByteUtil.toLong(bytes, 0); long second = ByteUtil.toLong(bytes, 8); return new long[] {first, second}; }
HashUtil { public static long[] hashM5ToLongs(String s) { byte[] bytes = hashMD5(s); long first = ByteUtil.toLong(bytes, 0); long second = ByteUtil.toLong(bytes, 8); return new long[] {first, second}; } }
HashUtil { public static long[] hashM5ToLongs(String s) { byte[] bytes = hashMD5(s); long first = ByteUtil.toLong(bytes, 0); long second = ByteUtil.toLong(bytes, 8); return new long[] {first, second}; } private  HashUtil(); }
HashUtil { public static long[] hashM5ToLongs(String s) { byte[] bytes = hashMD5(s); long first = ByteUtil.toLong(bytes, 0); long second = ByteUtil.toLong(bytes, 8); return new long[] {first, second}; } private  HashUtil(); static byte[] hashMD5(String s); static long[] hashM5ToLongs(String s); static String hashM5toString(String s); }
HashUtil { public static long[] hashM5ToLongs(String s) { byte[] bytes = hashMD5(s); long first = ByteUtil.toLong(bytes, 0); long second = ByteUtil.toLong(bytes, 8); return new long[] {first, second}; } private  HashUtil(); static byte[] hashMD5(String s); static long[] hashM5ToLongs(String s); static String hashM5toString(String s);  }