Patent ID: 7366917

Claim:
A method for accessing discrete data comprising: (a) transmitting a write command to a memory; (b) according to a data format of a file that is to be written into the memory, determining whether each data following a header of the file needs to be encrypted, and transmitting the file header and each data following the file header to a logic unit, wherein the data following the file header comprises one or a plurality of frames, in which each frame comprises a header, a data block and a residual block, wherein a remainder of a difference between the number of bytes of a frame and the number of bytes of the frame header divided by a predetermined integer is a first number, and the residual block is a set of the last first number bytes of the frame, wherein the frame header and the residual block of each frame are determined not to be encrypted, and the data block of each frame is determined to be encrypted; (c) turning on the logic unit for encrypting the data determined to be encrypted in step (b) and writing the encrypted data into the memory; (d) turning off the logic unit for writing the data determined not to be encrypted in step (b) into the memory directly; and (e) sending a first response signal from the memory when writing of the file is finished.