code: public static String encrypt(String input, String key, String algorithm, byte[] ivOrSalt, int iterations, String encoding, String charset) throws PageException {
  
  	try {
  
  	    if (charset == null) charset = DEFAULT_CHARSET;
  	    if (encoding == null) encoding = DEFAULT_ENCODING;
  
  	    byte[] baInput = input.getBytes(charset);
  	    byte[] encrypted = encrypt(baInput, key, algorithm, ivOrSalt, iterations);
  
  	    return Coder.encode(encoding, encrypted);
  	}
  	catch (Throwable t) {
  	    ExceptionUtil.rethrowIfNecessary(t);
  	    throw Caster.toPageException(t);
  	}
      }
docs: an encrypt method that takes a clear-text String for input and returns an encrypted, encoded,
  String