AbstractChecksum whirlpool2 = JacksumAPI.getChecksumInstance("whirlpool2");
whirlpool2.update(password.getBytes("UTF-8"));
byte[] stdHash = whirlpool2.getByteArray();
whirlpool2 = JacksumAPI.getChecksumInstance("whirlpool2");
whirlpool2.setEncoding("BASE64");
whirlpool2.update(Config.DOUBLE_WHIRPOOL_SALT.getBytes("UTF-8"));
whirlpool2.update(stdHash);
String pt1 = whirlpool2.format("#CHECKSUM");
whirlpool2 = JacksumAPI.getChecksumInstance("whirlpool2");
whirlpool2.setEncoding("BASE64");
whirlpool2.update(stdHash);