CN109344641A - A kind of processing method of local data, device and storage medium - Google Patents

A kind of processing method of local data, device and storage medium Download PDF

Info

Publication number
CN109344641A
CN109344641A CN201810949630.1A CN201810949630A CN109344641A CN 109344641 A CN109344641 A CN 109344641A CN 201810949630 A CN201810949630 A CN 201810949630A CN 109344641 A CN109344641 A CN 109344641A
Authority
CN
China
Prior art keywords
local
data
cipher
processing method
local data
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
CN201810949630.1A
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.)
Guangzhou Feishuo Information Technology Co Ltd
Original Assignee
Guangzhou Feishuo Information 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 Guangzhou Feishuo Information Technology Co Ltd filed Critical Guangzhou Feishuo Information Technology Co Ltd
Priority to CN201810949630.1A priority Critical patent/CN109344641A/en
Publication of CN109344641A publication Critical patent/CN109344641A/en
Pending legal-status Critical Current

Links

Classifications

    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Bioethics (AREA)
  • General Health & Medical Sciences (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Storage Device Security (AREA)

Abstract

The invention discloses a kind of processing method of local data, includes the following steps: to encrypt local data by Encryption Algorithm, obtain local cipher data;Local cipher data are compressed, local cipher compressed file is obtained.A kind of processing method of local data disclosed by the invention can effectively solve that prior art enciphering rate is slow, and encrypted file accounts for the larger problem of local storage space.The embodiment of the invention also discloses a kind of processing unit of local data and storage mediums.

Description

A kind of processing method of local data, device and storage medium
Technical field
The present invention relates to field of computer technology more particularly to a kind of processing method of local data, device and storage to be situated between Matter.
Background technique
With the development of computer technology, after user downloads application program, the resource file that program uses is directly at this Ground saves.User can arbitrarily modify resource file at this time, change the original programmed logic of application program.Therefore, it is necessary to Local data is encrypted, prevents from being tampered.
In the prior art, there are one way to encrypting to data is from encryption method, comprising:, will by data obfuscation Data are divided into multiple pieces;By each piece of individually encryption, and for each piece, the Given information from another block is used as institute State encryption key;Use Encryption Algorithm encryption data.
The present inventor has found in the practice of the invention, and following technical problem exists in the prior art: will be from another The Given information of one block is used as the encryption key, causes enciphering rate slow;Encrypted file account for local storage space compared with Greatly.
Summary of the invention
The embodiment of the present invention provides processing method, device and the storage medium of a kind of local data, can effectively solve existing Technology secrecy speed is slow, and encrypted file accounts for the larger problem of local storage space.
The embodiment of the present invention one provides a kind of processing method of local data, includes the following steps:
Local data is encrypted by Encryption Algorithm, obtains local cipher data;
The local cipher data are compressed, local cipher compressed file is obtained.
As an improvement of the above scheme, local data is encrypted by AES encryption.
As an improvement of the above scheme, the local cipher compressed file is PAK file.
As an improvement of the above scheme, further include being read out to the local cipher compressed file, include the following steps:
The local cipher compressed file is decompressed, local cipher decompression data are obtained;
AES decryption is carried out to local cipher decompression data, local decrypt is obtained and decompresses data.
The correspondence of the embodiment of the present invention two provides a kind of processing unit of local data characterized by comprising
Encrypting module obtains local cipher data for encrypting by Encryption Algorithm to local data;
Compression module obtains local cipher compressed file for compressing to the local cipher data.
It as an improvement of the above scheme, further include decompression module, for being decompressed to the local cipher compressed file, Obtain local cipher decompression data;
Deciphering module obtains local decryption decompression data for carrying out AES decryption to local cipher decompression data.
The embodiment of the present invention three provides a kind of processing unit of local data, including memory, processor and is stored in On memory and the computer program that can run on a processor, the processor realize described one kind when executing described program The processing method of local data.
The embodiment of the present invention four provides a kind of computer readable storage medium, and the computer readable storage medium includes The computer program of storage, wherein control in computer program operation and set where the computer readable storage medium It is standby to execute a kind of processing method of local data described in foregoing invention embodiment.
Processing method, device and the storage medium of a kind of local data provided in an embodiment of the present invention, with prior art phase Than having the following beneficial effects:
Local data is encrypted by AES encryption, arithmetic speed is fast, and enciphering rate is fast, highly-safe, resource consumption It is few, prevent the modification of the loss and user of local data to local data;By being compressed to encrypted file, reduce Local storage space shared by local cipher file.
Detailed description of the invention
Fig. 1 is a kind of flow diagram of the processing method for local data that the embodiment of the present invention one provides.
Fig. 2 is a kind of structural schematic diagram of the processing unit of local data provided by Embodiment 2 of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall within the protection scope of the present invention.
It is a kind of flow diagram of the processing method for local data that the embodiment of the present invention one provides referring to Fig. 1, including Following steps:
S101, local data is encrypted by Encryption Algorithm, obtains local cipher data;
S102, the local cipher data are compressed, obtains local cipher compressed file.
Further, for step S101, local data is encrypted by AES encryption.
Further, for step S102, the local cipher compressed file is PAK file.
Further, further include being read out to the local cipher compressed file, include the following steps:
The local cipher compressed file is decompressed, local cipher decompression data are obtained;
AES decryption is carried out to local cipher decompression data, local decrypt is obtained and decompresses data.
Preferably, cryptographic calculation is carried out by the ECB algorithm of AES encryption, local data is grouped, obtain dividing in plain text Group P1、P2、…、Pn, by key K to clear packets P1、P2、…、PnIt is encrypted, obtains ciphertext block C1、C2、…、Cn, this Ground encryption data includes ciphertext block C1、C2、…、Cn
Operation is decrypted by the ECB algorithm of AES encryption, according to key K to the ciphertext block in local cipher data C1、C2、…、CnIt is decrypted, obtains clear packets P1、P2、…、Pn, local decryption decompression data include clear packets P1、 P2、…、Pn
Referring to fig. 2, be a kind of local data provided by Embodiment 2 of the present invention processing unit structural schematic diagram, packet It includes:
Encrypting module 201 obtains local cipher data for encrypting by Encryption Algorithm to local data;
Compression module 202 obtains local cipher compressed file for compressing to the local cipher data.
Further, further include decompression module, for decompressing to the local cipher compressed file, obtain local add Close decompression data;
Deciphering module obtains local decryption decompression data for carrying out AES decryption to local cipher decompression data.
The embodiment of the present invention three also provides a kind of processing unit of local data, including memory, processor and is stored in On memory and the computer program that can run on a processor, the processor realize that the communication information is protected when executing described program Maintaining method.
Communication information protective device/the terminal device can be desktop PC, notebook, palm PC and cloud Server etc. calculates equipment.Communication information protective device/the terminal device may include, but is not limited only to, processor, storage Device.It will be understood by those skilled in the art that the schematic diagram is only communication information protective device/terminal device example, and It does not constitute to the restriction of communication information protective device/terminal device, may include than illustrating more or fewer components or group Certain components or different components are closed, such as communication information protective device/terminal device can also include input and output Equipment, network access equipment, bus etc..
Alleged processor can be central processing unit (Central Processing Unit, CPU), can also be it His general processor, digital signal processor (Digital Signal Processor, DSP), specific integrated circuit (Application Specific Integrated Circuit, ASIC), field programmable gate array (Field- Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic, Discrete hardware components etc..General processor can be microprocessor or the processor is also possible to any conventional processor Deng the processor is the control centre of the communication information protective device/terminal device, utilizes various interfaces and connection The various pieces of entire communication information protective device/terminal device.
The memory can be used for storing the computer program and/or module, and the processor is by operation or executes Computer program in the memory and/or module are stored, and calls the data being stored in memory, described in realization The various functions of communication information protective device/terminal device.The memory can mainly include storing program area and storing data Area, wherein storing program area can application program needed for storage program area, at least one function (such as sound-playing function, Image player function etc.) etc.;Storage data area, which can be stored, uses created data (such as audio data, electricity according to mobile phone Script for story-telling etc.) etc..In addition, memory may include high-speed random access memory, it can also include nonvolatile memory, such as Hard disk, memory, plug-in type hard disk, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card, flash card (Flash Card), at least one disk memory, flush memory device or other volatibility are solid State memory device.
Wherein, if the integrated module/unit of communication information protective device/terminal device is with SFU software functional unit Form realize and when sold or used as an independent product, can store in a computer readable storage medium.Base In such understanding, the present invention realizes all or part of the process in above-described embodiment method, can also pass through computer program It is completed to instruct relevant hardware, the computer program can be stored in a computer readable storage medium, the calculating Machine program is when being executed by processor, it can be achieved that the step of above-mentioned each embodiment of the method.Wherein, the computer program includes Computer program code, the computer program code can for source code form, object identification code form, executable file or certain A little intermediate forms etc..The computer-readable medium may include: any entity that can carry the computer program code Or device, recording medium, USB flash disk, mobile hard disk, magnetic disk, CD, computer storage, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software Distribution medium etc..
The embodiment of the present invention four also provides a kind of computer readable storage medium, is stored thereon with computer program, the journey Communication information guard method is realized when sequence is executed by processor.
Illustratively, the computer program can be divided into one or more module/units, one or more A module/unit is stored in the memory, and is executed by the processor, to complete the present invention.It is one or more A module/unit can be the series of computation machine program instruction section that can complete specific function, and the instruction segment is for describing institute State implementation procedure of the computer program in the communication information protective device/terminal device.
Above-described embodiment is similar with corresponding embodiment in a kind of processing method of local data of the invention, herein not It repeats again.
Processing method, device and the storage medium of a kind of local data provided in an embodiment of the present invention, with prior art phase Than having the following beneficial effects:
Local data is encrypted by AES encryption, arithmetic speed is fast, and enciphering rate is fast, highly-safe, resource consumption It is few, prevent the modification of the loss and user of local data to local data;By being compressed to encrypted file, reduce Local storage space shared by local cipher file.
It should be noted that the apparatus embodiments described above are merely exemplary, wherein described be used as separation unit The unit of explanation may or may not be physically separated, and component shown as a unit can be or can also be with It is not physical unit, it can it is in one place, or may be distributed over multiple network units.It can be according to actual It needs that some or all of the modules therein is selected to achieve the purpose of the solution of this embodiment.In addition, device provided by the invention In embodiment attached drawing, the connection relationship between module indicate between them have communication connection, specifically can be implemented as one or A plurality of communication bus or signal wire.Those of ordinary skill in the art are without creative efforts, it can understand And implement.
The above is a preferred embodiment of the present invention, it is noted that for those skilled in the art For, various improvements and modifications may be made without departing from the principle of the present invention, these improvements and modifications are also considered as Protection scope of the present invention.

Claims (8)

1. a kind of processing method of local data, which comprises the steps of:
Local data is encrypted by Encryption Algorithm, obtains local cipher data;
The local cipher data are compressed, local cipher compressed file is obtained.
2. a kind of processing method of local data as described in claim 1, which is characterized in that by AES encryption to local number According to being encrypted.
3. a kind of processing method of local data as claimed in claim 2, which is characterized in that the local cipher compressed file For PAK file.
4. a kind of processing method of local data as claimed in claim 3, which is characterized in that further include to the local cipher Compressed file is read out, and is included the following steps:
The local cipher compressed file is decompressed, local cipher decompression data are obtained;
AES decryption is carried out to local cipher decompression data, local decrypt is obtained and decompresses data.
5. a kind of processing unit of local data characterized by comprising
Encrypting module obtains local cipher data for encrypting by Encryption Algorithm to local data;
Compression module obtains local cipher compressed file for compressing to the local cipher data.
6. a kind of processing unit of local data as claimed in claim 5, which is characterized in that further include decompression module, be used for The local cipher compressed file is decompressed, local cipher decompression data are obtained;
Deciphering module obtains local decryption decompression data for carrying out AES decryption to local cipher decompression data.
7. a kind of processing unit of local data, which is characterized in that including processor, memory and be stored in the memory In and be configured as the computer program executed by the processor, the processor is realized such as when executing the computer program A kind of processing method of local data described in any one of Claims 1-4.
8. a kind of computer readable storage medium, which is characterized in that the computer readable storage medium includes the calculating of storage Machine program, wherein equipment where controlling the computer readable storage medium in computer program operation is executed as weighed Benefit require any one of 1 to 4 described in a kind of processing method of local data.
CN201810949630.1A 2018-08-20 2018-08-20 A kind of processing method of local data, device and storage medium Pending CN109344641A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810949630.1A CN109344641A (en) 2018-08-20 2018-08-20 A kind of processing method of local data, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810949630.1A CN109344641A (en) 2018-08-20 2018-08-20 A kind of processing method of local data, device and storage medium

Publications (1)

Publication Number Publication Date
CN109344641A true CN109344641A (en) 2019-02-15

Family

ID=65294113

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810949630.1A Pending CN109344641A (en) 2018-08-20 2018-08-20 A kind of processing method of local data, device and storage medium

Country Status (1)

Country Link
CN (1) CN109344641A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070263876A1 (en) * 2006-05-11 2007-11-15 Global Iqx, Inc. In-memory compression and encryption
CN102254127A (en) * 2011-08-11 2011-11-23 华为技术有限公司 Method, device and system for encrypting and decrypting files
CN102377560A (en) * 2010-08-19 2012-03-14 北京韩美智恒科技有限公司 Data encryption method and device for mobile communication terminal
CN105205369A (en) * 2015-08-20 2015-12-30 青岛三链锁业有限公司 Palm vein image data processing method
CN106506518A (en) * 2016-11-25 2017-03-15 天津津航计算技术研究所 The encryption/decryption module of big data safe transmission

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070263876A1 (en) * 2006-05-11 2007-11-15 Global Iqx, Inc. In-memory compression and encryption
CN102377560A (en) * 2010-08-19 2012-03-14 北京韩美智恒科技有限公司 Data encryption method and device for mobile communication terminal
CN102254127A (en) * 2011-08-11 2011-11-23 华为技术有限公司 Method, device and system for encrypting and decrypting files
CN105205369A (en) * 2015-08-20 2015-12-30 青岛三链锁业有限公司 Palm vein image data processing method
CN106506518A (en) * 2016-11-25 2017-03-15 天津津航计算技术研究所 The encryption/decryption module of big data safe transmission

Similar Documents

Publication Publication Date Title
CN109040090B (en) A kind of data ciphering method and device
US9037870B1 (en) Method and system for providing a rotating key encrypted file system
CN110417726B (en) Key management method and related equipment
Nohl Attacking phone privacy
CN107707347B (en) User key backup method and device and user key importing method and device
US20160117518A1 (en) File Encryption/Decryption Device And File Encryption/Decryption Method
US10255450B2 (en) Customer load of field programmable gate arrays
CN109214201B (en) Data sharing method, terminal equipment and computer readable storage medium
CN110235409A (en) Use the protected RSA signature of homomorphic cryptography or the method for decryption
CN107196907B (en) A kind of guard method of Android SO files and device
CN105324956A (en) Method and apparatus to encrypt plaintext data
KR20190010251A (en) A method and apparatus of lpes for security enhancement in cloud storage transport phase
CN110062014A (en) The encryption and decryption method and system of network model
WO2014007296A1 (en) Order-preserving encryption system, encryption device, decryption device, encryption method, decryption method, and programs thereof
US11930099B2 (en) Implementing resilient deterministic encryption
US11632246B2 (en) Hybrid key derivation to secure data
CN108197439A (en) A kind of file encrypting method, device and server
CN109687966A (en) Encryption method and its system
CN102833077A (en) Encryption and decryption methods of remote card-issuing data transmission of financial IC (Integrated Circuit) card and financial social security IC card
CN112000978B (en) Private data output method, data processing system and storage medium
CN108229192A (en) A kind of file decryption method, apparatus and client
EP2950229B1 (en) Method for facilitating transactions, computer program product and mobile device
CN103605927A (en) Encryption and decryption method based on embedded Linux system
CN109344641A (en) A kind of processing method of local data, device and storage medium
CN108985109A (en) A kind of date storage method and device

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: 20190215

RJ01 Rejection of invention patent application after publication