docs: private String hash(String token) {
          // perform the hashing of the token key
          String hashedToken = null;
  
          if (hash_type.equalsIgnoreCase("SHA")) {
              hashedToken = Util.sha(token);
          } else {
              hashedToken = Util.md5(token);
          }
  
          if (hashedToken == null) {
              // failed to hash - sending the token in clear text
              // Note that this may be considered a security vulnerabiltiy if clear text passwords are forbidden.
  
              log.warn("Failed to hash token - sending in clear text");
              return token;
          }
          return hashedToken;
      }