private static byte[] generateSalt() { return generateSalt(DEFAULT_SALT_LENGTH); }
/** * Create a new password object using the password provided. * * Callers should clear the bytes in the password array when they're done * with it. */ public PasswordDigest(char[] password) { Preconditions.checkNotNull(password, "Password is null"); salt = generateSalt(); digest = createPasswordDigest(password, salt); }