Patent ID: 8275960

Claim:
A method for protecting data in the hard disk, suitable for a computer device, the method for protecting data in the hard disk comprising: reading a plurality of specification parameters conforming to and originally stored in the computer device; encoding a part of the specification parameters for obtaining a first recognition byte in the computer device; when an unprotected byte is written to the hard disk by the computer device, performing a specific operation to the unprotected byte and the first recognition byte so as to generate a protected byte, and storing the protected byte to the hard disk; when the protected byte is read from the hard disk by the computer device, performing the specific operation to the protected byte and the first recognition byte, wherein the protected byte is decoded to the unprotected byte and a second recognition byte; determining whether the second recognition byte is the same as the first recognition byte; when the second recognition byte is the same as the first recognition, obtaining the unprotected byte and transmitting the unprotected byte; and when the second recognition byte is not the same as the first recognition, stopping reading.