code: public static Properties toCryptoConf(String prefix, Iterable<Map.Entry<String, String>> conf) {
      Properties props = new Properties();
      for (Map.Entry<String, String> e : conf) {
        String key = e.getKey();
        if (key.startsWith(prefix)) {
          props.setProperty(COMMONS_CRYPTO_CONFIG_PREFIX + key.substring(prefix.length()),
            e.getValue());
        }
      }
      return props;
    }
docs: Extract the commons-crypto configuration embedded in a list of config values.
  
  @param prefix Prefix in the given configuration that identifies the commons-crypto configs.
  @param conf List of configuration values.