Searched defs:salt (Results 1 - 2 of 2) sorted by relevance

/glassfish-3.1.2/common/common-util/src/main/java/org/glassfish/security/common/
H A DSSHA.java55 * <br> result = {SSHA}BASE64(SHA(password,salt),salt)
58 * SHA( password , salt) without Base64 encoding.
77 * @param salt Salt bytes.
83 public static byte[] compute(byte[] salt, byte[] password, String algo) argument
87 byte[] buff = new byte[password.length + salt.length];
89 System.arraycopy(salt, 0, buff, password.length, salt.length);
131 * @param saltBytes Number of bytes of random salt value to generate.
142 byte[] salt
157 encode(byte[] salt, byte[] hash, String algo) argument
272 verify(byte[] salt, byte[] hash, byte[] password, String algo) argument
[all...]
H A DFileRealmHelper.java102 // Number of bytes of salt for SSHA
739 byte[] salt = SSHA.decode(pwdInfo, hash, algo);
742 ud.setSalt(salt);
795 * really stored so a salt is generated, hash computed, and these two
814 byte[] salt=new byte[SALT_SIZE];
815 rng.nextBytes(salt);
816 user.setSalt(salt);
822 byte[] hash = SSHA.compute(salt, pwdBytes, algo);
833 private byte[] salt; field in class:FileRealmHelper.User
852 * @param salt SSH
856 User(String name, String[] groups, String realm, byte[] salt, byte[] hash, String algo) argument
880 setSalt(byte[] salt) argument
[all...]

Completed in 22 milliseconds