docs: @Override
  	public File encrypt(final File toEncrypt) throws Exception
  	{
  		if (encryptedFile == null)
  		{
  			final String filename = FilenameUtils.getBaseName(toEncrypt.getName());
  			encryptedFile = newEncryptedFile(toEncrypt.getParent(), filename + ".enc");
  		}
  
  		final InputStream fis = new FileInputStream(toEncrypt);
  		final CryptoCipherInputStream cis = new CryptoCipherInputStream(fis,
  			getModel().getCipher());
  
  		final OutputStream out = new FileOutputStream(encryptedFile);
  
  		int c;
  
  		while ((c = cis.read()) != -1)
  		{
  			out.write(c);
  		}
  
  		cis.close();
  		out.close();
  		return encryptedFile;
  	}