Lines Matching refs:hash
495 // Compute the hash
496 final byte[] hash = LockPatternUtils.patternToHash(pattern);
498 getLockSettings().setLockPattern(hash, getCurrentOrCallingUserId());
611 // Compute the hash
612 final byte[] hash = passwordToHash(password);
614 getLockSettings().setLockPassword(hash, userHandle);
683 passwordHistory = new String(hash) + "," + passwordHistory;
686 passwordHistory = passwordHistory.substring(0, Math.min(hash.length
771 * Generate an SHA-1 hash for the pattern. Not the most secure, but it is
775 * @return the hash of the pattern in a byte array.
790 byte[] hash = md.digest(res);
791 return hash;
813 * Generate a hash for the given password. To avoid brute force attacks, we use a salted hash.
817 * @return the hash of the pattern in a byte array.