code: def encrypt_file(self,
                       path,
                       output_path=None,
                       overwrite=False,
                       enable_verbose=True):
          
          path, output_path = files.process_dst_overwrite_args(
              src=path, dst=output_path, overwrite=overwrite,
              src_to_dst_func=files.get_encrpyted_path,
          )
  
          with open(path, "rb") as infile, open(output_path, "wb") as outfile:
              encrypt_bigfile(infile, outfile, self.his_pubkey)
docs: Encrypt a file using rsa.
  
          RSA for big file encryption is very slow. For big file, I recommend
          to use symmetric encryption and use RSA to encrypt the password.