docs: public static boolean verify(String password, String hash) {
  
          boolean result = false;
  
          if (StringUtils.isNotBlank(hash) && password != null) {
              // Get the salt and hash from the input string:
              byte[] bytes = ByteArray.fromBase64(hash);
  
              // Check the size of the value to ensure it's at least as long as
              // the salt:
              if (bytes.length >= Generate.SALT_BYTES) {
  
                  // Extract the salt and password hash:
                  String salt = getSalt(bytes);
                  byte[] existingHash = getHash(bytes);
  
                  // Hash the password with the same salt in order to get the same
                  // result:
                  byte[] comparisonHash = hash(password, salt);
  
                  // See whether they match:
                  result = Arrays.equals(existingHash, comparisonHash);
              }
          }
  
          return result;
      }