CN107977166A - A kind of date storage method and system - Google Patents

A kind of date storage method and system Download PDF

Info

Publication number
CN107977166A
CN107977166A CN201711207813.8A CN201711207813A CN107977166A CN 107977166 A CN107977166 A CN 107977166A CN 201711207813 A CN201711207813 A CN 201711207813A CN 107977166 A CN107977166 A CN 107977166A
Authority
CN
China
Prior art keywords
data
information
format information
storage
mapping table
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201711207813.8A
Other languages
Chinese (zh)
Inventor
徐庆富
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangxi Tower Technology Co Ltd
Original Assignee
Guangxi Tower Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangxi Tower Technology Co Ltd filed Critical Guangxi Tower Technology Co Ltd
Priority to CN201711207813.8A priority Critical patent/CN107977166A/en
Publication of CN107977166A publication Critical patent/CN107977166A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/062Securing storage systems
    • G06F3/0623Securing storage systems in relation to content
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/602Providing cryptographic facilities or services
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/62Protecting access to data via a platform, e.g. using keys or access control rules
    • G06F21/6218Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/0608Saving storage space on storage systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0638Organizing or formatting or addressing of data

Abstract

The present embodiments relate to a kind of date storage method and system, belong to technical field of data processing.Wherein, this method includes:Dock received data to be stored to be disassembled, obtain format information and character string;Character string is encrypted according to null character, obtains encrypted characters string;Format information and encrypted characters string are recombinated, obtain recombination data;Recombination data is compressed, obtains compressed data;Compressed data is stored according to format information and default mapping table, and obtains storage information.The technical solution provided through this embodiment, on the one hand, avoid the technology drawback that cannot be safely and reliably stored to data in the prior art;On the other hand, the technique effect stored to data efficient and accurately is realized.

Description

A kind of date storage method and system
Technical field
The present embodiments relate to microcomputer data processing field, more particularly to a kind of date storage method and it is System.
Background technology
With the development of science and technology, personal computer has become work and daily life indispensable requisites. In the information-intensive society of modernization, the processing of data, such as:The acquisition of data, the storage of data, analysis of data etc. increasingly by Concern.
In the prior art, mainly by being directly compressed to data, mode that compressed data are stored Realize the storage of data.
However, inventor, has found to have at least the following problems in the implementation of the present invention:
It can not ensure safely and reliably to store data.
The content of the invention
In order to solve the above technical problems, an embodiment of the present invention provides a kind of date storage method and system.
It is according to embodiments of the present invention in a first aspect, an embodiment of the present invention provides a kind of date storage method, the side Method includes:
Dock received data to be stored to be disassembled, obtain format information and character string;
The character string is encrypted according to null character, obtains encrypted characters string;
The format information and the encrypted characters string are recombinated, obtain recombination data;
The recombination data is compressed, obtains compressed data;
The compressed data is stored according to the format information and default mapping table, and obtains storage information.
Further, it is described that the character string is encrypted according to null character, encrypted characters string is obtained, specific bag Include:
The null character is added into the stem and/or afterbody in the character string, obtains the encrypted characters string.
Further, it is described that the compressed data is stored according to the format information and default mapping table, tool Body includes:
The mapping table is traveled through according to the format information, to determine the storage region to match with the format information Information;
The compressed data is stored according to the storage region information.
Further, it is described that the mapping table is traveled through according to the format information, to determine and the format information phase Matched storage region information, specifically includes:
The format information is matched with the mapping format information in the mapping table, obtains matching degree;
Maximum matching degree is determined according to the matching degree, and is determined corresponding with the maximum matching degree in the mapping table Mapping area information;
The map section information field is determined as the storage region information.
Further, the method further includes:
Default storage daily record is updated according to the storage information.
Other side according to embodiments of the present invention, it is described an embodiment of the present invention provides a kind of data-storage system System includes:
Disassemble module:Disassembled for docking received data to be stored, obtain format information and character string;
Encrypting module:For the character string to be encrypted according to null character, encrypted characters string is obtained;
Recombination module:For the format information and the encrypted characters string to be recombinated, recombination data is obtained;
Compression module:For being compressed to the recombination data, compressed data is obtained;
Memory module:For being stored according to the format information and default mapping table to the compressed data, and Obtain storage information.
Further, the encrypting module is specifically used for:
The null character is added into the stem and/or afterbody in the character string, obtains the encrypted characters string.
Further, the memory module is specifically used for:
The mapping table is traveled through according to the format information, to determine the storage region to match with the format information Information;
The compressed data is stored according to the storage region information.
Further, the memory module also particularly useful for:
The format information is matched with the mapping format information in the mapping table, obtains matching degree;
Maximum matching degree is determined according to the matching degree, and is determined corresponding with the maximum matching degree in the mapping table Mapping area information;
The map section information field is determined as the storage region information.
Further, the system also includes:
Update module:For being updated according to the storage information to default storage daily record.
Brief description of the drawings
Fig. 1 is a kind of flow diagram of date storage method provided in an embodiment of the present invention;
Fig. 2 is a kind of structure diagram of data-storage system provided in an embodiment of the present invention.
Embodiment
In being described below, in order to illustrate rather than in order to limit, it is proposed that such as particular system structure, interface, technology it The detail of class, understands the present invention to cut thoroughly.However, it will be clear to one skilled in the art that these are specific The present invention can also be realized in the other embodiments of details.In other situations, omit to well-known system, circuit and The detailed description of method, in case unnecessary details hinders description of the invention.
An embodiment of the present invention provides a kind of date storage method and system.
One side according to embodiments of the present invention, an embodiment of the present invention provides a kind of date storage method.
Referring to Fig. 1, Fig. 1 is a kind of flow diagram of date storage method provided in an embodiment of the present invention.
As shown in Figure 1, this method includes:
S100:Dock received data to be stored to be disassembled, obtain format information and character string;
S200:Character string is encrypted according to null character, obtains encrypted characters string;
S300:Format information and encrypted characters string are recombinated, obtain recombination data;
S400:Recombination data is compressed, obtains compressed data;
S500:Compressed data is stored according to format information and default mapping table, and obtains storage information.
In the present embodiment, first data to be stored are disassembled, the character string disassembled is encrypted, and form is believed Breath and encrypted characters string are recombinated, to be compressed to recombination data, and according to format information and mapping table to compressing number According to being stored.
The technical solution provided through this embodiment, 1, character string is encrypted, it is ensured that the security of data is stored, The technology drawback for preventing storage data to be stolen or changed;2nd, store, reduce again after being compressed to recombination data Memory space, has saved resource;3rd, compressed data is stored by format information and mapping table, realized efficiently to compression Data are stored, the technique effect stored, and, realize the technique effect accurately stored to compressed data.
In a kind of technical solution in the cards, S200 is specifically included:
Null character is added into the stem and/or afterbody in character string, obtains encrypted characters string.
In the present embodiment, null character directly can be added before first character string, can also be in last character Null character is added after string, null character can also be not only added before first character string, but also sky is added after last character string Character.
The technical solution provided through this embodiment, is encrypted character string using null character, 1, encryption efficiency it is high;2、 When needing to be read out storage data, also improve and have read efficiency, and realize antitheft technique effect.
In a kind of technical solution in the cards, S500 is specifically included:
According to format information Ergodic Maps table, to determine the storage region information with form information match;
Compressed data is stored according to storage region information.
In the present embodiment, the multiple format information searched for and recorded comprising before in mapping table, and every kind of form is believed Breath has storage region corresponding thereto, to be distinguished to data to be stored, and quickly data to be stored is carried out Storage, and by making rational planning for and configuring, realization economizes on resources, and makes full use of the technique effect of resource.
In a kind of technical solution in the cards, the mapping table is traveled through according to format information, so as to definite and form The storage region information of information match, specifically includes:
Format information is matched with the mapping format information in mapping table, obtains matching degree;
Maximum matching degree is determined according to matching degree, and determines mapping area letter corresponding with maximum matching degree in the mapping table Breath;
The map section information field is determined as storage region information.
In the present embodiment, the technical solution being determined by matching degree to storage region information, furthermore achieved that The technique effect accurately stored efficiently and to data to be stored.
In a kind of technical solution in the cards, this method further includes:
Default storage daily record is updated according to storage information.
The technical solution provided through this embodiment, on the one hand, it is dynamic data storage can be read at any time according to storage daily record State, and the technique effect being adjusted according to specific data storage dynamic to mapping table;On the other hand, realize in real time to storage The technique effect that information is monitored.
Other side according to embodiments of the present invention, an embodiment of the present invention provides with the corresponding one kind of the above method Data-storage system.
Referring to Fig. 2, Fig. 2 is a kind of structure diagram of data-storage system provided in an embodiment of the present invention.
As shown in Fig. 2, the system includes:
Disassemble module:Disassembled for docking received data to be stored, obtain format information and character string;
Encrypting module:For character string to be encrypted according to null character, encrypted characters string is obtained;
Recombination module:For format information and encrypted characters string to be recombinated, recombination data is obtained;
Compression module:For being compressed to recombination data, compressed data is obtained;
Memory module:For being stored according to format information and default mapping table to compressed data, and stored Information.
In a kind of technical solution in the cards, encrypting module is specifically used for:
Null character is added into the stem and/or afterbody in character string, obtains encrypted characters string.
In a kind of technical solution in the cards, memory module is specifically used for:
According to format information Ergodic Maps table, to determine the storage region information with form information match;
Compressed data is stored according to storage region information.
In a kind of technical solution in the cards, memory module also particularly useful for:
Format information is matched with the mapping format information in mapping table, obtains matching degree;
Maximum matching degree is determined according to matching degree, and determines mapping area letter corresponding with maximum matching degree in the mapping table Breath;
Map section information field is determined as storage region information.
In a kind of technical solution in the cards, which further includes:
Update module:For being updated according to storage information to default storage daily record
The embodiment of the present invention is disassembled by docking received data to be stored, obtains format information and character string; Character string is encrypted according to null character, obtains encrypted characters string;Format information and encrypted characters string are recombinated, Obtain recombination data;Recombination data is compressed, obtains compressed data;According to format information and default mapping table to compression Data are stored, and obtain storage information technical solution, avoid in the prior art cannot to data carry out safety and can The technology drawback store leaned on, realizes the technique effect stored to data efficient and accurately.
Reader should be understood that in the description of this specification, reference term " one embodiment ", " some embodiments ", " show The description of example ", " specific example " or " some examples " etc. means to combine the specific features, structure of the embodiment or example description It is contained at least one embodiment of the present invention or example.In the present specification, schematic expression of the above terms need not It is directed to identical embodiment or example.Moreover, the specific features of description, structure can in any one or more embodiments or Combined in an appropriate manner in example.In addition, without conflicting with each other, those skilled in the art can illustrate this Different embodiments or example and different embodiments or exemplary feature described in book are combined and combine.
It should also be understood that in various embodiments of the present invention, the size of the sequence number of above-mentioned each process is not meant to execution sequence Priority, the execution sequence of each process should determine with its function and internal logic, the implementation without tackling the embodiment of the present invention Journey forms any restriction.
More than, it is only embodiment of the invention, but protection scope of the present invention is not limited thereto, and it is any to be familiar with Those skilled in the art the invention discloses technical scope in, various equivalent modifications or substitutions can be readily occurred in, These modifications or substitutions should be covered by the protection scope of the present invention.Therefore, protection scope of the present invention should be wanted with right Subject to the protection domain asked.

Claims (10)

  1. A kind of 1. date storage method, it is characterised in that the described method includes:
    Dock received data to be stored to be disassembled, obtain format information and character string;
    The character string is encrypted according to null character, obtains encrypted characters string;
    The format information and the encrypted characters string are recombinated, obtain recombination data;
    The recombination data is compressed, obtains compressed data;
    The compressed data is stored according to the format information and default mapping table, and obtains storage information.
  2. A kind of 2. date storage method according to claim 1, it is characterised in that it is described according to null character to the character String is encrypted, and obtains encrypted characters string, specifically includes:
    The null character is added into the stem and/or afterbody in the character string, obtains the encrypted characters string.
  3. 3. a kind of date storage method according to claim 1, it is characterised in that described according to the format information and pre- If mapping table the compressed data is stored, specifically include:
    The mapping table is traveled through according to the format information, to determine to believe with the storage region that the format information matches Breath;
    The compressed data is stored according to the storage region information.
  4. 4. a kind of date storage method according to claim 3, it is characterised in that described to be traveled through according to the format information The mapping table, to determine the storage region information to match with the format information, specifically includes:
    The format information is matched with the mapping format information in the mapping table, obtains matching degree;
    Maximum matching degree is determined according to the matching degree, and determine in the mapping table with described maximum matching degree is corresponding reflects Penetrate area information;
    The map section information field is determined as the storage region information.
  5. 5. a kind of date storage method according to any one of claim 1-4, it is characterised in that the method is also wrapped Include:
    Default storage daily record is updated according to the storage information.
  6. A kind of 6. data-storage system, it is characterised in that the system comprises:
    Disassemble module:Disassembled for docking received data to be stored, obtain format information and character string;
    Encrypting module:For the character string to be encrypted according to null character, encrypted characters string is obtained;
    Recombination module:For the format information and the encrypted characters string to be recombinated, recombination data is obtained;
    Compression module:For being compressed to the recombination data, compressed data is obtained;
    Memory module:For being stored according to the format information and default mapping table to the compressed data, and obtain Store information.
  7. 7. a kind of data-storage system according to claim 6, it is characterised in that the encrypting module is specifically used for:
    The null character is added into the stem and/or afterbody in the character string, obtains the encrypted characters string.
  8. 8. a kind of data-storage system according to claim 1, it is characterised in that the memory module is specifically used for:
    The mapping table is traveled through according to the format information, to determine to believe with the storage region that the format information matches Breath;
    The compressed data is stored according to the storage region information.
  9. A kind of 9. data-storage system according to claim 8, it is characterised in that the memory module also particularly useful for:
    The format information is matched with the mapping format information in the mapping table, obtains matching degree;
    Maximum matching degree is determined according to the matching degree, and determine in the mapping table with described maximum matching degree is corresponding reflects Penetrate area information;
    The map section information field is determined as the storage region information.
  10. 10. a kind of data-storage system according to any one of claim 6-9, it is characterised in that the system is also wrapped Include:
    Update module:For being updated according to the storage information to default storage daily record.
CN201711207813.8A 2017-11-27 2017-11-27 A kind of date storage method and system Pending CN107977166A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711207813.8A CN107977166A (en) 2017-11-27 2017-11-27 A kind of date storage method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711207813.8A CN107977166A (en) 2017-11-27 2017-11-27 A kind of date storage method and system

Publications (1)

Publication Number Publication Date
CN107977166A true CN107977166A (en) 2018-05-01

Family

ID=62011985

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711207813.8A Pending CN107977166A (en) 2017-11-27 2017-11-27 A kind of date storage method and system

Country Status (1)

Country Link
CN (1) CN107977166A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110188160A (en) * 2019-05-31 2019-08-30 联想(北京)有限公司 Date storage method and method for reading data
CN111382855A (en) * 2018-12-28 2020-07-07 上海寒武纪信息科技有限公司 Data processing device, method, chip and electronic equipment

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101355421A (en) * 2008-09-25 2009-01-28 中国电信股份有限公司 Method for adapting ciphering/deciphering data length of packet
CN101882995A (en) * 2009-05-06 2010-11-10 中兴通讯股份有限公司 Data sending, receiving and transmitting method and device thereof
CN102147711A (en) * 2010-12-31 2011-08-10 成都市华为赛门铁克科技有限公司 Storage method and device based on data content identification
CN103678339A (en) * 2012-09-06 2014-03-26 阿里巴巴集团控股有限公司 Data backflow method and system and data access method and system in relational database
CN103729470A (en) * 2014-01-20 2014-04-16 刘强 Secure storage method based on different cloud storage ends
CN104615551A (en) * 2015-02-09 2015-05-13 联想(北京)有限公司 Information processing method and electronic device
CN105574021A (en) * 2014-10-14 2016-05-11 北京神州泰岳软件股份有限公司 Data compression method and device of database
CN105809046A (en) * 2010-12-15 2016-07-27 成都科创知识产权研究所 Efficient encryption method and system of data
CN106452779A (en) * 2016-08-31 2017-02-22 福建联迪商用设备有限公司 Encryption method and apparatus of fingerprint image data
CN106933916A (en) * 2015-12-31 2017-07-07 北京国双科技有限公司 The processing method and processing device of JSON character strings

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101355421A (en) * 2008-09-25 2009-01-28 中国电信股份有限公司 Method for adapting ciphering/deciphering data length of packet
CN101882995A (en) * 2009-05-06 2010-11-10 中兴通讯股份有限公司 Data sending, receiving and transmitting method and device thereof
CN105809046A (en) * 2010-12-15 2016-07-27 成都科创知识产权研究所 Efficient encryption method and system of data
CN102147711A (en) * 2010-12-31 2011-08-10 成都市华为赛门铁克科技有限公司 Storage method and device based on data content identification
CN103678339A (en) * 2012-09-06 2014-03-26 阿里巴巴集团控股有限公司 Data backflow method and system and data access method and system in relational database
CN103729470A (en) * 2014-01-20 2014-04-16 刘强 Secure storage method based on different cloud storage ends
CN105574021A (en) * 2014-10-14 2016-05-11 北京神州泰岳软件股份有限公司 Data compression method and device of database
CN104615551A (en) * 2015-02-09 2015-05-13 联想(北京)有限公司 Information processing method and electronic device
CN106933916A (en) * 2015-12-31 2017-07-07 北京国双科技有限公司 The processing method and processing device of JSON character strings
CN106452779A (en) * 2016-08-31 2017-02-22 福建联迪商用设备有限公司 Encryption method and apparatus of fingerprint image data

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111382855A (en) * 2018-12-28 2020-07-07 上海寒武纪信息科技有限公司 Data processing device, method, chip and electronic equipment
CN111382855B (en) * 2018-12-28 2022-12-09 上海寒武纪信息科技有限公司 Data processing device, method, chip and electronic equipment
CN110188160A (en) * 2019-05-31 2019-08-30 联想(北京)有限公司 Date storage method and method for reading data
CN110188160B (en) * 2019-05-31 2021-10-22 联想(北京)有限公司 Data storage method and data reading method

Similar Documents

Publication Publication Date Title
TWI616762B (en) Dynamic data masking method and data library system
CN106570018A (en) Serialization method and apparatus, deserialization method and apparatus, serialization and deserialization system, and electronic device
CN101983376B (en) Access device, information recording device, information recording system, file management method, and program
CN107633088A (en) A kind of file management method and device
CN101103404A (en) Method and portable storage device for allocating secure area in insecure area
CN104298926B (en) A kind of method and apparatus for running encryption file
CN104050424B (en) The realization of smartcard file access safety rights management and file access method
CN107977166A (en) A kind of date storage method and system
CN105608142A (en) Storage method and device of Json data
CN104090913B (en) File operation method and device based on thin client
CN108304727A (en) The method and apparatus of data processing
CN106557571A (en) A kind of data duplicate removal method and device based on K V storage engines
CN106599115A (en) Data protection method and device and terminal
CN105825150B (en) Information processing unit and the method for saving data
WO2018066144A1 (en) Program for generation of indexed data, method for generation of indexed data, system for generation of indexed data, search program, search method, and search system
CN113139195B (en) Data encryption method and computing device
CN108628885A (en) A kind of method of data synchronization, device and storage device
CN110489992A (en) Desensitization method and system based on big data platform
CN108133026B (en) Multi-data processing method, system and storage medium
CN106780280B (en) Digital watermarking encryption method and device
CN104517060A (en) System and method for intercepting file access instruction based on Android platform
CN104272317A (en) Identification and execution of subsets of a plurality of instructions in a more secure execution environment
CN101894098B (en) Embedded font data processing method and device
CN106484691A (en) The date storage method of mobile terminal and device
CN109814923A (en) Data processing method, device, computer equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20180501

RJ01 Rejection of invention patent application after publication