Patent ID: 9686310
Date: 2017-06-20
CPC Classifications: G06F,H04L

Claim:
1. A method for repairing a file, comprising: searching a user device for a defect file corrupted by a virus file; obtaining, by the user device, a virus file name of the virus file and transmitting the virus file name to a server; receiving, by the user device, information of positions of the defect file that will not be modified by the virus file transmitted by the server in response to the virus file name; wherein the positions comprises at least one of copyright information, file name, compiling time, file icon, digital signature information, and a position of a predetermined number of bytes in the defect file; generating, by the user device, first characteristic information of the defect file according to the information of the positions and transmitting the first characteristic information to the server, the first characteristic information comprises first hash values of information on the positions of the defect file: wherein the server determines whether the first characteristic information of the defect file is same as second characteristic information of a repairing file, wherein the second characteristic information comprises second hash values of information on the positions of the repairing file: and the server obtains the repairing file when the first characteristic information is same as the second characteristic information; and receiving, by the user device, the repairing file and replacing the defect file with the repairing file.