Multi partition memory storage and access method thereof
[affiliated technical field]
The present invention relates to a kind of memory storage, a kind of multi partition memory storage is provided especially.
[background technology]
Along with development of electronic technology, the widespread use of computing machine also more and more is subjected to people's attention for the electronic file stored information security issue.In storing process and the security of file in communication process, various secrecy technologies are also in continuous appearance in order to ensure file.For example, present the most frequently used fingerprint identification technology, publication number is that the Chinese patent of CN1314655 has just disclosed a kind of finger print hard disc, it discloses Fingerprint Identification Unit has been applied in technical scheme on the hard disk, to utilize fingerprint to carry out the identification of identity, have only this talent of user can enter the storage space viewing files like this, perhaps to the access and the editing of file.
Yet, have only a user can protect the file of oneself for same memory storage like this, if the multi-user needs the file of protection respectively oneself, so just need a plurality of memory devices to come respectively the file of oneself to be protected.For example, on same computer, have only user oneself can protect the file of oneself by fingerprint recognition, other users can't protect the file of oneself on this computer, be unfavorable for the efficient utilization of equipment like this.
[summary of the invention]
Technical matters to be solved by this invention provides a kind of multi partition memory storage; each subregion has independent user password and key; file by a user password and a subregion of cryptographic key protection; can realize setting up be equipped with, the multi-user protects respectively multifile, reached the efficient utilization of memory device.
For solving above technical matters, the present invention realizes by the following technical solutions: a kind of multi partition memory storage, it comprises: control chip, and data transmission interface that is connected with control chip respectively and storage medium, this multi partition memory storage also comprises the password judging unit that is connected with control chip; Described storage medium comprises two or more memory block.
This multi partition memory storage also comprises password key storage element, and this password key storage element internal memory contains two or more passwords, key.
A password in the described password key storage element, key are corresponding to a memory block.
This multi partition storage unit also comprises password, the cipher key management unit that is connected with control chip.
Described password cipher key management unit one end is connected with control chip, and the other end is connected with password key storage element.
This multi partition memory storage is machine stored or mobile storage.
This multi partition memory storage is hard disk in the computer or USB flash disk, portable hard drive.
Described storage medium is flash memory or hard disk core.
Described storage medium is CF card, SD card or SSD storage medium.
The present invention can also realize in the following manner:
A kind of method of access to storage device is characterized in that, this method may further comprise the steps:
Step 1, data transmission interface and computer connect, and show the password inputting interface on the computer;
Step 2, according to the password of user input, obtain this password;
Step 3, the password that obtains and the password of having stored are compared, judge whether to be effective memory block password,, then be back to and wait in the step 2 and obtain the password that the user re-enters if not effective memory block password; If next step then proceeded in effective memory block password;
Step 4, be defined as effective password after, the password of further analyzing this user input belongs to the password of which memory block;
Step 5, be defined as the password of a certain memory block after, key is loaded in the corresponding memory block, the file in this memory block is decrypted;
Step 6, loading corresponding stored district are to computer.
Described password can for the user from the password established or be the password authentication form of fingerprint recognition.
In the described step 2, obtain this password and send it to the password judging unit of this multi partition memory storage by the control chip of multi partition memory storage.
In the described step 3, the password judging unit is compared with the password in the password key storage element of this multi partition memory storage after obtaining this user password.
In the described step 5, after the password judging unit is defined as a certain memory block password, the password judging unit feeds back to control chip with analysis result, obtain corresponding key in the password key storage element and this key is loaded in the corresponding memory block by control chip, the file in this memory block is decrypted.
Multi partition memory storage of the present invention has following advantage:
A plurality of usefulness can enter the memory block of oneself by the password of oneself per family, and the memory block information of oneself is carried out access, realize setting up be equipped with, the purpose of multi-user, multi partition.Especially, if a user has the password of several memory blocks, the user can carry out access and demonstration respectively at each subregion according to the importance information of file so, like this when other people show inessential information, can't reveal out the important information of other memory blocks, have better confidentiality.
[description of drawings]
Fig. 1 is the structured flowchart of multi partition memory storage of the present invention.
Fig. 2 is the process flow diagram of file in the visit multi partition memory storage of the present invention.
[embodiment]
Reach technological means and the effect that predetermined purpose is taked for further setting forth the present invention, below in conjunction with accompanying drawing and preferred embodiment, embodiment, structure, feature and the effect thereof of a kind of multi partition memory storage that foundation the present invention is proposed, describe in detail as after.
Multi partition memory storage of the present invention can realize that the multi-user stores data respectively on multi partition on setting up fully, and is independently between each subregion.For one of them subregion open and the access of file can not influence the confidentiality of other partitioned files.
Particularly, as shown in Figure 1, structured flowchart for multi partition memory storage of the present invention, this multi partition memory storage comprises control chip 10, and the password/Password Management unit 11 that is connected with this control chip 10, data transmission interface 14, storage medium 15, password/password storage unit 12, password judging unit 13.Described password/password storage unit 12 is connected with control chip 10 by password/Password Management unit 11.
Described data transmission interface 14 can be USB type data transmission interface or other data transmission interfaces, data transmission interface such as SATA, ESATA for example, and the user can carry out the accessing operation of data by this data transmission interface.
Described control chip 10 is used for harmony messages to be transmitted according to predetermined protocol, guarantees the tasks such as normal operation of information.
Described storage medium 15 is according to the subregion principle, and for example fixed partitioning, dynamic partition method etc. are carried out subregion with this storage medium 15 by production firm when dispatching from the factory or when program is installed, and comprises a plurality of memory blocks such as first memory block, second memory block.The space size of what and each memory block of set memory block is preestablished by production firm, the size of each memory block can be identical also can be inequality.This storage medium can be flash memory or hard disk core, also can be other media, CF card for example, SD card, SSD or the like storage medium.
Described password key storage element 12 internal memories contain one or more password, key, comprise first memory block password, the key corresponding with first memory block, and a plurality of memory blocks password, key such as second memory block password corresponding with second memory block, key.Memory block password, key are corresponding to a memory block.
Described password cipher key management unit 11 is used to guarantee that each memory block password is inequality, is convenient to management and differentiation.If find that one of them memory block password of user's input is identical with the password of other memory blocks, then notify user's modification present password, and to be shown as this password be invalid password.
As shown in Figure 2, for obtain the process flow diagram of file by multi partition memory storage of the present invention, concrete accessing step is as follows:
Step 1, data transmission interface and computer connect, and drive this multi partition memory storage by computer, show the password inputting interface on the computer, this password can for the user from the password of establishing or be multiple password authentication forms such as fingerprint recognition;
Step 2, according to the password of user input, control chip 10 obtains this password and sends to password judging unit 13;
Step 3, password judging unit 13 are compared with the password in the password key storage element 12 after obtaining this user password, judge whether to be effective memory block password.If not effective memory block password, then be back in the step 2 and wait for and obtain the password that the user re-enters; If next step then proceeded in effective memory block password;
Step 4, by after the decision-making of password judging unit 13, the passwords that password judging unit 13 is further analyzed this users' input belong to the password of which memory block;
Step 5, be defined as a certain memory block password after, the password judging unit feeds back to control chip 10 with analysis result, obtain corresponding key in the password key storage element and this key is loaded in the corresponding memory block by control chip 10, file in this memory block is decrypted, for example the password of user's input is the first memory block password, then load the first memory block key to first memory block, the file of first memory block is decrypted, and load first memory block to computer.
Step 5, loading corresponding stored district are to computer.
Memory block by checking can be loaded on the computer, and can show the attribute of this memory block and the fileinfo of this memory block, and other each memory blocks are not because by checking, can not be loaded on the computer, therefore can't show the information of other memory block and other memory blocks on computers.For example, the user of first memory block enters first memory block after importing the first memory block password, only show this memory block so on the computer, the user can only obtain the information of this memory block and the attribute information of this memory block, for example the space size, with information such as spaces.
For on same multi partition memory storage of the present invention, a plurality of usefulness can enter the memory block of oneself by the password of oneself per family, and the memory block information of oneself is carried out access, realize setting up be equipped with, the purpose of multi-user, multi partition.And, if a user has the password of several memory blocks, the user can carry out access and demonstration respectively at each subregion according to the importance information of file so, and the user can be selectively to other people display message like this, and can't be revealed to have better confidentiality for important file.
Multi partition memory storage of the present invention can be machine stored or mobile storage, for example the hard disk in the computer or be various memory storages such as USB flash disk, portable hard drive.
Below only embodiments of the invention are described, but be not that various variations or the modification made according to spirit of the present invention are all within the protection category of claim of the present invention in order to restriction the present invention.