Package de.rtner.security.auth.spi

Examples of de.rtner.security.auth.spi.PBKDF2Engine


    st.nextToken("=");
    st.nextToken();
    String iterationCount = st.nextToken(",");

    // SaltedPassword  := Hi(Normalize(password), salt, i)
    PBKDF2Engine engine = new PBKDF2Engine(new PBKDF2Parameters("HMacSHA1", null, serverSalt, Integer.parseInt(iterationCount)));
    byte[] saltedPassword = engine.deriveKey(password, 20);

      // ClientKey       := HMAC(SaltedPassword, "Client Key")
    hmac.init(saltedPassword);
    byte[] clientKey = hmac.doFinal("Client Key".getBytes());
View Full Code Here

TOP

Related Classes of de.rtner.security.auth.spi.PBKDF2Engine

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.