public static boolean comparePasswords(byte[] password1, byte[] password2) {
		if (password1.length != password2.length) {
			return false;
		}
		for (int i = 0; i < password1.length; i++) {
			if (password1[i] != password2[i]) {
				return false;
			}
		}
		return true;
	}