recentpopularlog in

aggregat4 : java   437

« earlier  
cryptography - Reliable implementation of PBKDF2-HMAC-SHA256 for JAVA - Stack Overflow
public static byte[] getEncryptedPassword(String password, byte[] salt, int iterations, int derivedKeyLength) throws NoSuchAlgorithmException, InvalidKeySpecException {
KeySpec spec = new PBEKeySpec(password.toCharArray(), salt, iterations, derivedKeyLength * 8);

SecretKeyFactory f = SecretKeyFactory.getInstance("PBKDF2WithHmacSHA256");

return f.generateSecret(spec).getEncoded();
}
pbkdf2  java  8  howto  stackoverflow 
september 2015 by aggregat4
« earlier      
per page:    204080120160

Copy this bookmark:





to read