I am doing:
SecretKeyFactory factory = SecretKeyFactory.getInstance("PBKDF2WithHmacSHA512") );
SecretKey key = factory.generateSecret( new PBEKeySpec(password.toCharArray(), salt, iterations, keyLength) );
and am wondering particuraliy about:
new PBEKeySpec(password.toCharArray(), salt, iterations, keyLength)
how many iterations are "enough"?
I have seen examples using 65000, which seems to be alot. Is that neccessary? What are the consequences of having such a high iteration?