code: public static boolean isValidCryptoAlgorithm(String crypto_algorithm) {
          if (crypto_algorithm != null) {
              String algorithm = crypto_algorithm.trim();
  
              if (algorithm.length() == 0) {
                  return true;
              }
              String[] SUPPORTED_CRYPTO_ALGORITHMS = PasswordCipherUtil.getSupportedCryptoAlgorithms();
              for (int i = 0; i < SUPPORTED_CRYPTO_ALGORITHMS.length; i++) {
                  if (algorithm.startsWith(SUPPORTED_CRYPTO_ALGORITHMS[i])) {
                      return true;
                  }
              }
          }
  
          return false;
      }
docs: Determine if the provided algorithm string is valid.
  The valid values are xor, aes, or hash.
  Use securityUtility encode --listCustom command line utility to see if any additional custom encryptions are supported.
  
  @param crypto_algorithm the string of algorithm.
  @return true if the algorithm is supported. false otherwise.