Patent ID: 9069978
Filing Date: 2015-06-30
Classification: G06F

Abstract:
1. A data storage device, comprising: a flash memory, comprising a plurality of blocks; and a memory controller, encrypting a first file to produce a first encrypted file and store the first encrypted file to the flash memory, wherein the controller further comprises: a key generation module, producing a first key according to a first write command of a host device, wherein the first key is arranged to be stored in a first block of the blocks; an encryption/decryption module, encrypting the first file according to the first key to produce a first encrypted file, wherein the first encrypted file is arranged to be stored in at least one second block of the blocks; and a key eliminating module, deleting the first key stored in the first block according to a first eliminating command in order to invalidate the first encrypted file stored in the second block, wherein the number of the at least one second block is determined by the first write command and a predetermined length.