File encryption/decryption method and system

The invention discloses a file encryption/decryption method and a file encryption/decryption system. The file encryption method comprises the steps as follows: receiving a file encryption instruction sent by a user; judging whether pre-stored face characteristic information corresponding to the user exists in a face characteristic database, and obtaining a first judgment result; adopting the pre-stored face characteristic information to encrypt files when the first judgment result is yes; acquiring the instant face characteristic information of the user when the first judgment result is no; encrypting the files by adopting the instant face characteristic information. Due to the adoption of the method or the system, the files can be encrypted or decrypted according to the user's face characteristic, so that a risk of code leakage is avoided, and the safety of the encrypted files is improved.