Package gnu.javax.crypto.sasl.srp

Examples of gnu.javax.crypto.sasl.srp.PasswordFile.lookup()


        tpasswd.add(user, password, testSalt, SRPRegistry.N_2048_BITS);
      }
    else
      tpasswd.changePasswd(user, password);

    final String[] entry = tpasswd.lookup(user, md);
    final BigInteger v = new BigInteger(1, Util.fromBase64(entry[0]));
    final byte[] salt = Util.fromBase64(entry[1]);

    final String[] mpi = tpasswd.lookupConfig(entry[2]);
    final BigInteger N = new BigInteger(1, Util.fromBase64(mpi[0]));
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.