The invention provides an encrypted file offline timing automatic decryption method and
system in the technical field of offline decryption, and the method comprises the steps: S10, a
client obtains an encrypted file, records the first
system time obtained by the encrypted file, and starts a counter for counting; step S20, the
client analyzes the encrypted file to obtain encrypted data, a counting threshold value, decryption time, an
equipment serial number and a first HMAC value, after
verification is carried out through the first HMAC value and the
equipment serial number, the encrypted data is stored to a hardware
encryption chip, and the counting threshold value and the decryption time are stored to a specified path; step S30, the
client automatically reads the counting threshold value and the decryption time from the specified path through the first script, and obtains the current second
system time and the counting result of the counter so as to perform time
verification; and S40, the client automatically decrypts the encrypted data through the second script to obtain the electronic file. The method has the advantages that the security and convenience of offline decryption of the encrypted file are greatly improved.