private String hashHost(String host) throws IOException { sha1.init(getSaltyBytes()); return "|1|" + salt + "|" + Base64.encodeBytes(sha1.doFinal(host.getBytes(IOUtils.UTF8))); }
private String hashHost(String host) throws IOException { sha1.init(getSaltyBytes()); return "|1|" + salt + "|" + Base64.encodeBytes(sha1.doFinal(host.getBytes(IOUtils.UTF8))); }
private String hashHost(String host) throws IOException { sha1.init(getSaltyBytes()); return "|1|" + salt + "|" + Base64.encodeBytes(sha1.doFinal(host.getBytes(IOUtils.UTF8))); }