@Override
  public String mask(String value) throws MaskException {
    try {
      return Base64.encodeBase64String(value.getBytes("UTF-8"));
    } catch (UnsupportedEncodingException e) {
      throw new MaskException("UTF-8 is not supported", e);
    }
  }
Provides simple masking of view parameters.
ambari-server/src/main/java/org/apache/ambari/server/view/DefaultMasker.java