def encrypt_file(self,<EOL>path,<EOL>output_path=None,<EOL>overwrite=False,<EOL>enable_verbose=True):
path, output_path = files.process_dst_overwrite_args(<EOL>src=path, dst=output_path, overwrite=overwrite,<EOL>src_to_dst_func=files.get_encrpyted_path,<EOL>)<EOL>with open(path, "<STR_LIT:rb>") as infile, open(output_path, "<STR_LIT:wb>") as outfile:<EOL><INDENT>encrypt_bigfile(infile, outfile, self.his_pubkey)<EOL><DEDENT>
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.