1. A method for locking a file, comprising: acquiring biological feature recognition information of a user, the biological feature recognition information including at least one of fingerprint information, voiceprint information, iris information, or face information; and locking a designated file using the biological feature recognition information.