passwordKeySpec.clearPassword();
return BinTools.bin2hex(passwordKey.getEncoded());
} else {
PBKDF2Parameters params = new PBKDF2Parameters("HmacSHA1", "ISO-8859-1", salt, iterations);
PBKDF2 pbkdf2 = new PBKDF2Engine(params);
return BinTools.bin2hex(pbkdf2.deriveKey(new String(password)));
}
}
public String getHashAlgorithm() {
return hashAlgorithm;