This commit is contained in:
DmitryRendov 2015-09-06 20:32:58 +00:00
parent 495dd35b48
commit 7c2649abf5

View File

@ -14,7 +14,7 @@ public class CryptPBKDF2 implements EncryptionMethod {
String result = "pbkdf2_sha256$15000$" + salt + "$";
PBKDF2Parameters params = new PBKDF2Parameters("HmacSHA256", "ASCII", salt.getBytes(), 15000);
PBKDF2Engine engine = new PBKDF2Engine(params);
return result + String.valueOf(DatatypeConverter.printBase64Binary(engine.deriveKey(password, 32)));
}