code: public static String encode(String str)
      {
          String ret = str;
  
          try
          {
              // Obfuscate the string
              if(ret != null)
                  ret = new String(Base64.encodeBase64(ret.getBytes()));
          }
          catch(NoClassDefFoundError e)
          {
              System.out.println("WARNING: unable to encode: "
                  +e.getClass().getName()+": "+e.getMessage());
          }
  
          return ret;
      }
docs: Returns the given string after if it has been encoded.
  @param str The string to be encoded
  @return The encoded string