docs: public static String getCryptoAlgorithmTag(String password) {
          if (null == password) {
              return null;
          }
          String tag = null;
          String data = password.trim();
  
          if (data.length() >= 2) {
              if ('{' == data.charAt(0)) {
                  int end = data.indexOf('}', 1);
                  if (end > 0) {
                      end++; // we want to include the end marker
                      if (end == data.length()) {
                          tag = data;
                      } else {
                          tag = data.substring(0, end).trim();
                      }
                  }
              }
          }
  
          return tag;
      }