CN105893862A - Browser cache data protection method and device - Google Patents
Browser cache data protection method and device Download PDFInfo
- Publication number
- CN105893862A CN105893862A CN201510583361.8A CN201510583361A CN105893862A CN 105893862 A CN105893862 A CN 105893862A CN 201510583361 A CN201510583361 A CN 201510583361A CN 105893862 A CN105893862 A CN 105893862A
- Authority
- CN
- China
- Prior art keywords
- browser
- file
- kernel
- data
- caching 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/60—Protecting data
- G06F21/62—Protecting access to data via a platform, e.g. using keys or access control rules
- G06F21/6218—Protecting 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
- G06F21/6245—Protecting personal data, e.g. for financial or medical purposes
- G06F21/6263—Protecting personal data, e.g. for financial or medical purposes during internet communication, e.g. revealing personal data from cookies
Abstract
Embodiments of the invention provide a browser cache data protection method and device. According to the method, a terminal encrypts browser cache data before writing the browser cache data into a disk, and even malicious software or plugins steal cache files in the disk, the correct contents cannot be read from the cache file, so that the data safety is improved. Moreover, the terminal decrypts the encrypted browser cache data stored in the disk by adopting a preset decryption algorithm, so as to obtain network resource data. By adopting the technical scheme, the terminal decrypts the browser cache data written in the disk through the corresponding decryption algorithm in the process of reading the browser cache data written in the disk, so that the terminal can reliably read the browser cache data written in the disk.
Description
Technical field
The present embodiments relate to computer network security field, particularly relate to a kind of browser caching data
Guard method and device.
Background technology
Along with the development of the Internet, various mobile terminals (such as mobile phone, pad etc.) are convenient with its communication, behaviour
Make convenient characteristic to be widely used.At present, terminal can have independent operating system, user
The application software that the third party service provider provides can be installed the most voluntarily, by this type of application software, can
Function with terminal extension.
At present, in Android system, if terminal needs to obtain network data by browser, then need to pass through
Browser generates network resource request instruction;And the instruction of this network resource request is sent to corresponding service
Device;Server responds the instruction of this network resource request, generates corresponding network resource data and sends to terminal;
The network resource data that server is sent by terminal caches to internal memory, and writes formation caching literary composition in disk
Part.
Understand based on above-mentioned network resource data process, when terminal is subjected to malicious attack, assailant
From the cache file of terminal, obtain the network resource data preserved in terminal disk, thus cause network to provide
The leakage of source data.
As can be seen here, the problem that browser caching data exists poor stability.
Summary of the invention
The embodiment of the present invention provides guard method and the device of a kind of browser caching data, in order to solve at present
The problem of the browser caching data poor stability existed.
The concrete technical scheme that the embodiment of the present invention provides is as follows:
The embodiment of the present invention provides the guard method of a kind of browser caching data, is applied to Android operation system
In, described method includes:
Browser caching data is obtained by browser kernel;
Use predetermined encryption algorithm, by described browser kernel, described browser caching data is added
Close;And
By described browser kernel by the browser caching data write local disk after encryption.
The embodiment of the present invention provides the protection device of a kind of browser caching data, is applied to Android operation system
In, described device includes:
Acquiring unit, for obtaining browser caching data by browser kernel;
Ciphering unit, is used for using predetermined encryption algorithm, is delayed described browser by described browser kernel
Deposit data is encrypted;
Writing unit, for writing this locality by described browser kernel by the browser caching data after encryption
Disk.
In the embodiment of the present invention, terminal obtains, by browser kernel, the browser rs cache number that server sends
According to;By this browser kernel, this browser caching data is encrypted, and the browser after encryption is delayed
Deposit data write local disk.Using embodiment of the present invention technical scheme, terminal is by browser caching data
Before write disk, browser caching data is encrypted, even if assailant obtains in disk the slow of write
Deposit file, also cannot read correct content, thus improve the safety of browser caching data.
Accompanying drawing explanation
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to enforcement
In example or description of the prior art, the required accompanying drawing used is briefly described, it should be apparent that, retouch below
Accompanying drawing in stating is some embodiments of the present invention, for those of ordinary skill in the art, is not paying
On the premise of creative work, it is also possible to obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is communication system architecture schematic diagram in the embodiment of the present invention;
Fig. 2 is the flow chart in the embodiment of the present invention one protected browser caching data;
Fig. 3 is the generation realizing in the embodiment of the present invention one being encrypted browser caching data in cache file
Code;
Fig. 4 a is to realize the generation of the browser caching data partial write disk of cache file in prior art
Code;
Fig. 4 b is to realize the browser caching data partial write disk of cache file in the embodiment of the present invention
Code;
Fig. 5 is the flow chart reading browser caching data in the embodiment of the present invention two;
Fig. 6 a is the code realizing reading browser caching data in prior art;
Fig. 6 b is the code realizing reading browser caching data in the embodiment of the present invention two;
Fig. 7 is the apparatus structure schematic diagram of browser caching data protection in the embodiment of the present invention.
Detailed description of the invention
For making the purpose of the embodiment of the present invention, technical scheme and advantage clearer, below in conjunction with the present invention
Accompanying drawing in embodiment, is clearly and completely described the technical scheme in the embodiment of the present invention, it is clear that
Described embodiment is a part of embodiment of the present invention rather than whole embodiments.Based in the present invention
Embodiment, those of ordinary skill in the art obtained under not making creative work premise all its
His embodiment, broadly falls into the scope of protection of the invention.
Refering to shown in Fig. 1, for communication system architecture schematic diagram in the embodiment of the present invention, this communication system includes
Server and terminal.Specifically, terminal obtains request for sending network resource data to server, to ask
Seek the corresponding network resource data of acquisition, and receive the network resource data that server sends, and as clear
Device of looking at is data cached, before browser caching data is write disk buffering file, to browser rs cache number
According to being encrypted, this terminal is the terminal (such as mobile phone, portable computer etc.) possessing User Interface,
And the network resource data of terminal request determines according to concrete application scenarios, such as, when user passes through client
When carrying out web page browsing, the network resource data of terminal request is page data;Server is used for obtaining end
The network resource data of end request, and this network resource data is sent to terminal, this server is according to function
Difference, sends the most different to the network resource data of terminal, such as, when this server is Web server,
The transmission of this Web server is web data to the network resource data of terminal.
In above-mentioned communication system, multiple server and multiple terminal can be comprised, in the embodiment of the present invention,
Only only comprise as a example by a server and a terminal by communication system, describe network resource data write in detail
Local disk and the process of reading.
Below in conjunction with Figure of description, the embodiment of the present invention is described in further detail.
Embodiment one
Refering to shown in Fig. 2, in the embodiment of the present invention, terminal protects browser rs cache number by browser kernel
According to process, including:
Step 200: terminal obtains browser caching data by browser kernel.
In the embodiment of the present invention, terminal receives the instruction of user's input, and the instruction inputted according to this user,
Generate network resource data and obtain request;This network resource data is obtained request and sends to corresponding clothes by terminal
Business device.Wherein, the operating system installed in above-mentioned terminal is Android operation system.
Optionally, terminal can run locally-installed client application, and after logging in this client,
Send network resource data by browser kernel to server and obtain request;Terminal can also directly run this
The browser that ground is installed, and detect the keyword that user inputs on this browser interface or the link chosen
Information, generates the network resource data comprising this keyword or link information and obtains request;Terminal receives service
The network resource data that device sends, this network resource data is considered as browser rs cache by the browser kernel of terminal
Data, browser kernel presents corresponding information according to this browser caching data in browser interface.
Wherein, when terminal obtains network resource data by browser kernel, this browser kernel is
Chromium kernel, or the browser kernel of secondary development is carried out based on chromium kernel.Below with
Terminal directly by as a example by browse request network resource data, is discussed in detail terminal and obtains network resource data
And protect the process of this network resource data.
Optionally, if the browser kernel of terminal is chromium kernel, then server is received when terminal
Send network resource data time, the chromium kernel of terminal using this network resource data as browser
Data cached, and this browser caching data is stored to internal memory;Meanwhile, terminal passes through chromium
Backend object in kernel is that each Internet resources obtained creates Entry object, such as, terminal
The network resource data of request is two pictures, then Backend object is that each pictures all creates correspondence
Entry object;Terminal creates cache file (File) by Entry object in disk.
Step 210: use predetermined encryption algorithm, by described browser kernel to described browser rs cache number
According to being encrypted.
In the embodiment of the present invention, before terminal is encrypted by browser kernel, in addition it is also necessary to generate described clear
The cache file of the data cached correspondence of device of looking at, this cache file comprises three parts, and this three part is respectively file
Head (head), browser caching data (data), and tail of file (eof).Wherein, file header
Portion is in one section of data undertaking certain task of file beginning;Tail of file comprises for characterizing file knot
The mark of bundle.
Structure based on above-mentioned cache file, optionally, browser is at least delayed by terminal by browser kernel
Deposit data is encrypted;Concrete, described browser caching data is only carried out by terminal by browser kernel
Encryption, uses this technical scheme, is only encrypted the browser caching data in cache file, effectively
While ensureing browser caching data safety, decrease the data processing amount of system when being encrypted.
Optionally, terminal by browser kernel to the top of file of described cache file and browser rs cache number
According to being encrypted;Or, terminal by browser kernel to described browser caching data and cache file
Tail of file is encrypted;Or, terminal passes through the browser kernel top of file to described cache file,
Browser caching data, and the tail of file of cache file is all encrypted.Use this technical scheme, eventually
Some in cache file is encrypted by end by browser kernel, when assailant gets caching literary composition
During part, the difficulty that increase assailant is cracked cache file, improve the safety of browser caching data.
Terminal uses multiple encryption algorithms by browser kernel, adds described browser caching data
Close, optionally, terminal negates mode by browser kernel employing character and enters described browser caching data
Row encryption;Or, terminal uses character stream back to front mode to delay described browser by browser kernel
Deposit data is encrypted;Or, terminal uses MD5 algorithm to delay described browser by browser kernel
Deposit data is encrypted.Additionally, terminal can also use other AESs to browsing by browser kernel
Device is data cached to be encrypted, and does not repeats them here.
Optionally, terminal can also use above-mentioned AES to carry out the various piece in described cache file
Encryption.
Further, terminal can also use the combination of multiple encryption algorithms to caching literary composition by browser kernel
Part is encrypted;Such as, terminal uses the first AES literary composition to cache file by browser kernel
Part head is encrypted, and uses the second AES to add the browser caching data of cache file
Close;For another example, terminal uses the first AES to enter the top of file of cache file by browser kernel
Row encryption, uses the second AES to be encrypted the browser caching data of cache file, uses the
The tail of file of cache file is encrypted by three kinds of AESs;And for example, terminal is adopted by browser kernel
With the first AES, the tail of file of cache file is encrypted, uses the second AES to slow
The browser caching data depositing file is encrypted.Using this technical scheme, terminal is adopted by browser kernel
Some in cache file is encrypted, when assailant gets slow with the combination of multiple cipher mode
When depositing file, the difficulty that increase assailant is cracked cache file, improve the safety of browser caching data
Property.
Terminal is during being encrypted browser caching data by browser kernel, in needing to take
Depositing resource, therefore, optionally, terminal is being encrypted it by browser kernel to browser caching data
After, the memory source taken is discharged.
Further, when the some in cache file is encrypted by terminal by browser kernel,
Terminal need in by browser kernel to cache file encryption Partial encryption complete after, by take
Memory source discharges.
Use this technical scheme, after browser caching data is encrypted, i.e. ciphering process is taken
Memory source discharge, thus avoid memory source occupancy bigger time, cause terminal response speed
Degree is slow, the even problem of RAM leakage, it is ensured that the data processing performance of terminal.
Concrete, refering to shown in Fig. 3, in the embodiment of the present invention, it is achieved to the browser in cache file
The data cached code being encrypted;Wherein, ProtectCacheData function is for for browser rs cache
The function that data are encrypted;Predetermined encryption algorithm is that character negates mode;ClearTmpDataMem function
Function for the memory source for discharging provisional application.
Using technique scheme, terminal is after getting browser caching data, by this browser rs cache
Before data write local disk, i.e. browser caching data is encrypted, it is to avoid assailant steals clear
The problem that device of looking at is data cached, improves security of system.
Step 220: by browser kernel by the browser caching data write local disk after encryption.
In the embodiment of the present invention, the browser caching data after above-mentioned encryption is deposited by terminal by browser kernel
Store up to cache file, and cache file is write local disk.
Optionally, after cache file is write local disk by browser kernel by terminal, release browser delays
The memory source that deposit data takies.Use this technical scheme, after browser caching data is encrypted,
The memory source taken time i.e. to browser caching data discharges, thus avoids memory source occupancy
Time bigger, the slow-footed problem of terminal response caused, it is ensured that the data processing performance of terminal.
Optionally, terminal will can also be added in confidential information write disk by browser kernel, and this adds confidential information
For characterizing the encrypted location of cache file, as only the browser caching data in cache file added
Close, in order to the when of subsequent read browser caching data, it is possible to rapidly to the encryption part in cache file
It is decrypted.Wherein, the above-mentioned confidential information that adds can be represented by preset characters, as 1 represents only to browser
Data cached being encrypted, 2 represent that the top of file to described browser caching data and cache file is carried out
Encryption;3 represent that the tail of file to described browser caching data and cache file is encrypted;4 represent
The tail of file of the top of file to described cache file, browser caching data, and cache file all enters
Row encryption.
Optionally, if the browser kernel of terminal is chromium kernel, then terminal passes through browser kernel
The function performing write operation is respectively SimpleSynchronousEntry::InitializeCreatedFile,
SimpleSynchronousEntry::WriteData and SimpleSynchronousEntry::Close;Wherein,
SimpleSynchronousEntry::InitializeCreatedFile is for writing the top of file of cache file
In disk;SimpleSynchronousEntry::WriteData is for providing the network of browser caching data
In source data (browser caching data) partial write disk;SimpleSynchronousEntry::Close
For the tail of file of cache file is write in disk.Such as, refering to shown in Fig. 4 a, for prior art
In, the code in the browser caching data partial write disk of cache file is realized process;Refering to figure
Shown in 4b, in the embodiment of the present invention, by the browser caching data partial write disk of cache file
Code realize process;Wherein, ProtectCacheData function is for for carrying out browser caching data
The function of encryption;ClearTmpDataMem function is the letter of the memory source for discharging provisional application
Number.
Further, if the browser caching data that terminal need not get writes disk, then this terminal
Still by browser kernel, above-mentioned browser caching data can be encrypted, thus avoid assailant
Malice steal, it is ensured that the safety of browser caching data that terminal obtains.
In the embodiment of the present invention, only as a example by terminal is by browse request network resource data, it is situated between in detail
The process of the terminal that continues write data, terminal passes through client call browser application requests Internet resources
The process of data is similar to aforesaid way, does not repeats them here.
Embodiment two
Refering to shown in Fig. 5, in the embodiment of the present invention, terminal reads browser rs cache number by browser kernel
According to process, including:
Step 500: receive browser caching data and read instruction;Wherein, described browser caching data is read
Instruction fetch comprises data cached place to be read cache file mark, and described data cached place to be read
The browser caching data comprised in the cache file that cache file mark is corresponding for write local disk it
Before, through the data of encryption.
In the embodiment of the present invention, terminal receives browser caching data and reads instruction, this browser caching data
Reading instruction can be user's directly instruction of input on this terminal interaction interface, it is also possible to be that terminal receives
The instruction that other equipment sends, it is also possible to be that terminal is calling application program, and the operation of this application program need to
During respective network resource data to be read, the instruction that system automatically generates;Terminal obtains this browser rs cache number
According to reading the to be read data cached mark comprised in instruction.
Wherein, the operating system installed in above-mentioned terminal is Android operation system;Above-mentioned terminal request obtains
Browser caching data is before write local disk, through the data of encryption;It is slow that terminal obtains
Deposit file identification and can comprise the positional information of this data cached storage to be read, as to be read in this data cached
The cache file title of storage, this data cached mark to be read can also is that system is this caching number to be read
Unique mark according to configuration.
Step 510: obtain described data cached institute to be read from local disk by described browser kernel
At the cache file that cache file mark is corresponding.
In the embodiment of the present invention, it is right that terminal obtains cache file mark by browser kernel from local disk
Cache file after the encryption answered.If the browser kernel of terminal is chromium kernel, then terminal is passed through
Cache file after the encryption that in chromium kernel, Entry object acquisition cache file mark is corresponding.
Owing to cache file comprises three parts, this three part is respectively top of file (head), and browser delays
Deposit data (data), and tail of file (eof).Therefore, optionally, the caching literary composition after each encryption
All comprising in part and add confidential information, this adds confidential information for characterizing the encrypted location of cache file, as when add secret letter
When breath is for a, represents and only browser caching data is encrypted;Terminal reads this by browser kernel and adds
Confidential information, and the encryption part adding confidential information instruction is decrypted.
Wherein, the above-mentioned confidential information that adds can be represented by preset characters, as 1 represents only to browser rs cache number
According to being encrypted, 2 represent that the top of file to described browser caching data and cache file is encrypted;3
Represent that the tail of file to described browser caching data and cache file is encrypted;4 represent described slow
The tail of file depositing the top of file of file, browser caching data, and cache file is all encrypted.
Using technique scheme, the browser kernel of terminal can determine rapidly caching literary composition according to adding confidential information
Encryption part in part, and this encryption part is decrypted, accelerate data deciphering speed, improve number
According to treatment effeciency.
Further, terminal can also be by browser kernel respectively in the browser caching data after encryption
The various piece comprised resolves, and to determine encryption part, and is decrypted encryption part.
Optionally, if the browser kernel of terminal is chromium kernel, then terminal passes through browser kernel
The function performing read operation is respectively SimpleSynchronousEntry::InitializeForOpen,
SimpleSynchronousEntry::ReadData and
SimpleSynchronousEntry::GetEOFRecordData;Wherein,
SimpleSynchronousEntry::InitializeForOpen is for reading the top of file of cache file;
SimpleSynchronousEntry::ReadData is for reading the browser caching data part of cache file;
SimpleSynchronousEntry::GetEOFRecordData is for reading the tail of file of cache file.
Step 520: use and preset decipherment algorithm, is wrapped in described cache file by described browser kernel
Browser caching data after the encryption contained is decrypted.
In the embodiment of the present invention, terminal uses the deciphering corresponding with AES to calculate by browser kernel
Method, is decrypted described cache file, to obtain the browser caching data in cache file.
Optionally, when AES be character negate mode time, terminal by browser kernel use character take
Described cache file is decrypted by antimode;Or, when AES is character stream back to front mode,
Terminal uses character stream back to front mode to be decrypted described cache file by browser kernel;Or
Person, when AES is MD5 algorithm, terminal uses MD5 algorithm to described slow by browser kernel
Deposit file to be decrypted.
Use this technical scheme, during the browser caching data that terminal writes in reading disk, logical
Cross corresponding decipherment algorithm the browser caching data of write in disk is decrypted, enable the terminals to reliable
The browser caching data of write in reading disk.
Terminal, during being decrypted cache file by browser kernel, needs committed memory to provide
Source, therefore, optionally, terminal, after being decrypted cache file by browser kernel, will be taken
Memory source discharge.Use this technical scheme, after cache file is decrypted, i.e. to solution
The memory source that close process takies discharges, thus avoid memory source occupancy bigger time, cause
The slow-footed problem of terminal response, it is ensured that the data processing performance of terminal.
Concrete, refering to shown in Fig. 6 a, in prior art, by the browser rs cache number in cache file
The code read according to part realizes process;Refering to shown in Fig. 6 b, in the embodiment of the present invention, literary composition will be cached
The code that browser caching data part in part reads and deciphers realizes process;Wherein,
DecodeCacheData function is the function for being decrypted cache file;ClearTmpDataMem
Function is the function of the memory source for discharging provisional application.
Step 530: obtain the browser caching data after deciphering by described browser kernel.
In the embodiment of the present invention, only as a example by terminal is by browse request network resource data, it is discussed in detail
Terminal reads the process of data, and terminal passes through client call browser application requests network resource data
Process similar to aforesaid way, do not repeat them here.
Based on technique scheme, refering to shown in Fig. 7, the embodiment of the present invention also provides for a kind of data and retransmits dress
Put, including acquiring unit 70, ciphering unit 71, and writing unit 72, wherein:
Acquiring unit 70, for obtaining browser caching data by browser kernel;
Ciphering unit 71, is used for using predetermined encryption algorithm, by described browser kernel to described browser
Data cached it is encrypted;
Writing unit 72, for by described browser kernel by the browser caching data write after encryption originally
Local disk.
Optionally, described browser kernel is chromium kernel, or on the basis of chromium kernel
The browser kernel of secondary development.
Further, described device also includes cache file signal generating unit 73, is used for: delay described browser
Before deposit data is encrypted, generate the cache file corresponding with described browser caching data;Described caching
File includes top of file, browser caching data, and tail of file;
Described ciphering unit 71, is additionally operable to: be encrypted described top of file by described browser kernel;
Or, by described browser kernel, described tail of file is encrypted;Or, by described browser
The described top of file of interior verification, and tail of file is all encrypted.
Further, described device also includes processing unit 74, is used for: will be added by described browser kernel
After browser caching data write local disk after close, receive browser caching data and read instruction;Its
In, described browser caching data reads and comprises data cached place to be read cache file mark in instruction,
And the browser comprised in the cache file of described data cached place to be read cache file mark correspondence delays
Deposit data is before write local disk, through the data of encryption;By described browser kernel from
Local disk obtains the cache file that described data cached place to be read cache file mark is corresponding;Pass through
Browser caching data after the encryption to comprising in described cache file of the described browser kernel is decrypted;
And obtain the browser caching data after deciphering by described browser kernel.
In sum, browser caching data, before browser caching data is write disk, is entered by terminal
Row encryption, even if the cache file in disk stolen by Malware or plug-in unit, also cannot be from cache file
Read correct content, thus improve the safety of data.Additionally, terminal uses presets decipherment algorithm,
Browser caching data after the encryption preserved on terminal disk is decrypted, to obtain Internet resources number
According to.Use embodiment of the present invention technical scheme, the browser caching data that terminal writes in reading disk
During, by corresponding decipherment algorithm, the browser caching data of write in disk is decrypted, makes end
End can the reliable browser caching data of write in reading disk.
Device embodiment described above is only schematically, wherein said illustrates as separating component
Unit can be or may not be physically separate, the parts shown as unit can be or
Person may not be physical location, i.e. may be located at a place, or can also be distributed to multiple network
On unit.Some or all of module therein can be selected according to the actual needs to realize the present embodiment
The purpose of scheme.Those of ordinary skill in the art are not in the case of paying performing creative labour, the most permissible
Understand and implement.
Through the above description of the embodiments, those skilled in the art is it can be understood that arrive each reality
The mode of executing can add the mode of required general hardware platform by software and realize, naturally it is also possible to by firmly
Part.Based on such understanding, the portion that prior art is contributed by technique scheme the most in other words
Dividing and can embody with the form of software product, this computer software product can be stored in computer can
Read in storage medium, such as ROM/RAM, magnetic disc, CD etc., including some instructions with so that one
Computer equipment (can be personal computer, server, or the network equipment etc.) performs each embodiment
Or the method described in some part of embodiment.
Last it is noted that above example is only in order to illustrate the technical scheme of the embodiment of the present invention, rather than
It is limited;Although the embodiment of the present invention being described in detail with reference to previous embodiment, this area
Those of ordinary skill is it is understood that the technical scheme described in foregoing embodiments still can be repaiied by it
Change, or wherein portion of techniques feature is carried out equivalent;And these amendments or replacement, do not make phase
The essence answering technical scheme departs from the spirit and scope of the embodiment of the present invention each embodiment technical scheme.
Claims (8)
1. a guard method for browser caching data, is applied in Android operation system, and its feature exists
In, described method includes:
Browser caching data is obtained by browser kernel;
Use predetermined encryption algorithm, by described browser kernel, described browser caching data is added
Close;And
By described browser kernel by the browser caching data write local disk after encryption.
Method the most according to claim 1, it is characterised in that described browser kernel is chromium
Kernel, or the browser kernel of secondary development on the basis of chromium kernel.
Method the most according to claim 1 and 2, it is characterised in that to described browser rs cache number
Before being encrypted, described method also includes:
Generate the cache file corresponding with described browser caching data;
Described cache file includes top of file, browser caching data, and tail of file;
By described browser kernel, described browser caching data is encrypted, also includes:
By described browser kernel, described top of file is encrypted;Or,
By described browser kernel, described tail of file is encrypted;Or,
By described browser kernel to described top of file, and described tail of file is all encrypted.
Method the most according to claim 3, it is characterised in that will be added by described browser kernel
After browser caching data write local disk after close, also include:
Receive browser caching data and read instruction;Wherein, wrap during described browser caching data reads instruction
Identify containing data cached place to be read cache file, and described data cached place to be read cache file mark
Knowing the browser caching data comprised in corresponding cache file is before write local disk, through encryption
The data processed;
From local disk, described data cached place to be read caching literary composition is obtained by described browser kernel
The cache file that part mark is corresponding;
By the browser caching data after the encryption to comprising in described cache file of the described browser kernel
It is decrypted;And
The browser caching data after deciphering is obtained by described browser kernel.
5. a protection device for browser caching data, is applied in Android operation system, and its feature exists
In, described device includes:
Acquiring unit, for obtaining browser caching data by browser kernel;
Ciphering unit, is used for using predetermined encryption algorithm, is delayed described browser by described browser kernel
Deposit data is encrypted;
Writing unit, for writing this locality by described browser kernel by the browser caching data after encryption
Disk.
Device the most according to claim 5, it is characterised in that described browser kernel is chromium
Kernel, or the browser kernel of secondary development on the basis of chromium kernel.
7. according to the device described in claim 5 or 6, it is characterised in that described device also includes caching
File generating unit, is used for:
Before described browser caching data is encrypted, generate corresponding with described browser caching data
Cache file;
Described cache file includes top of file, browser caching data, and tail of file;
Described ciphering unit, is additionally operable to:
By described browser kernel, described top of file is encrypted;Or,
By described browser kernel, described tail of file is encrypted;Or,
By described browser kernel to described top of file, and described tail of file is all encrypted.
Device the most according to claim 7, it is characterised in that also include processing unit, be used for:
By described browser kernel by after the browser caching data write local disk after encryption, receive
Browser caching data reads instruction;Wherein, described browser caching data comprises to be read in reading instruction
Data cached place cache file mark, and described data cached place to be read cache file mark correspondence
The browser caching data comprised in cache file is before write local disk, through the number of encryption
According to;
From local disk, described data cached place to be read caching literary composition is obtained by described browser kernel
The cache file that part mark is corresponding;
By the browser caching data after the encryption to comprising in described cache file of the described browser kernel
It is decrypted;And
The browser caching data after deciphering is obtained by described browser kernel.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510583361.8A CN105893862A (en) | 2015-09-14 | 2015-09-14 | Browser cache data protection method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510583361.8A CN105893862A (en) | 2015-09-14 | 2015-09-14 | Browser cache data protection method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105893862A true CN105893862A (en) | 2016-08-24 |
Family
ID=57002198
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510583361.8A Pending CN105893862A (en) | 2015-09-14 | 2015-09-14 | Browser cache data protection method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105893862A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106372157A (en) * | 2016-08-30 | 2017-02-01 | 维沃移动通信有限公司 | Classification method of cached data and terminal |
CN110659431A (en) * | 2019-09-20 | 2020-01-07 | 四川长虹电器股份有限公司 | Disk cache optimization method for Android television browser |
CN114422259A (en) * | 2022-01-26 | 2022-04-29 | 宋舒涵 | Internet resource monitoring and distributing method facing high concurrent data request |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103188077A (en) * | 2011-12-27 | 2013-07-03 | 方正国际软件(北京)有限公司 | Encryption method and decryption method of digital file read by mobile terminal |
CN103226596A (en) * | 2013-04-19 | 2013-07-31 | 广东百泰科技有限公司 | Mobile phone 3D (3-dimensional) browser system based on three-dimensional panoramic hyperlink browse and application method |
CN103294700A (en) * | 2012-02-24 | 2013-09-11 | 腾讯科技(北京)有限公司 | Cross-browser data local storage method and device |
CN103390026A (en) * | 2013-06-20 | 2013-11-13 | 中国软件与技术服务股份有限公司 | Mobile intelligent terminal security browser and working method thereof |
-
2015
- 2015-09-14 CN CN201510583361.8A patent/CN105893862A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103188077A (en) * | 2011-12-27 | 2013-07-03 | 方正国际软件(北京)有限公司 | Encryption method and decryption method of digital file read by mobile terminal |
CN103294700A (en) * | 2012-02-24 | 2013-09-11 | 腾讯科技(北京)有限公司 | Cross-browser data local storage method and device |
CN103226596A (en) * | 2013-04-19 | 2013-07-31 | 广东百泰科技有限公司 | Mobile phone 3D (3-dimensional) browser system based on three-dimensional panoramic hyperlink browse and application method |
CN103390026A (en) * | 2013-06-20 | 2013-11-13 | 中国软件与技术服务股份有限公司 | Mobile intelligent terminal security browser and working method thereof |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106372157A (en) * | 2016-08-30 | 2017-02-01 | 维沃移动通信有限公司 | Classification method of cached data and terminal |
CN110659431A (en) * | 2019-09-20 | 2020-01-07 | 四川长虹电器股份有限公司 | Disk cache optimization method for Android television browser |
CN110659431B (en) * | 2019-09-20 | 2022-03-01 | 四川长虹电器股份有限公司 | Disk cache optimization method for Android television browser |
CN114422259A (en) * | 2022-01-26 | 2022-04-29 | 宋舒涵 | Internet resource monitoring and distributing method facing high concurrent data request |
CN114422259B (en) * | 2022-01-26 | 2022-10-28 | 宋舒涵 | Internet resource monitoring and distributing method facing high concurrent data request |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20200242218A1 (en) | Systems and methods for providing identity assurance for decentralized applications | |
US9735962B1 (en) | Three layer key wrapping for securing encryption keys in a data storage system | |
US10069809B2 (en) | System and method for secure transmission of web pages using encryption of their content | |
CN103259762B (en) | A kind of file encryption based on cloud storage, decryption method and system | |
US20160117518A1 (en) | File Encryption/Decryption Device And File Encryption/Decryption Method | |
US9769654B2 (en) | Method of implementing a right over a content | |
CN106411823B (en) | A kind of access control method and relevant device based on CDN | |
US20110185179A1 (en) | System And Method For Digital Rights Management With A Lightweight Digital Watermarking Component | |
CN111917540B (en) | Data encryption and decryption method and device, mobile terminal and storage medium | |
US20120278611A1 (en) | Vpn-based method and system for mobile communication terminal to access data securely | |
CN109040134B (en) | Information encryption design method and related device | |
CN101977190A (en) | Digital content encryption transmission method and server side | |
JP2004171207A (en) | Data protection/storage method and server | |
Kotov et al. | Understanding crypto-ransomware | |
Singh et al. | Practical end-to-end web content integrity | |
CN112784302A (en) | File processing method and device, electronic equipment and readable storage medium | |
CN103237010A (en) | Server side for providing digital content in encryption mode | |
WO2019134276A1 (en) | Method and system for protecting web page code, storage medium, and electronic device | |
CN105893862A (en) | Browser cache data protection method and device | |
CN105743906A (en) | Picture file encryption and decryption method and system based on content-associated secret key | |
KR101834808B1 (en) | Apparatus and method for protecting file from encryption | |
CN106548351A (en) | A kind of optimization method and terminal of fingerprint payment flow | |
CN109299611A (en) | File encrypting method, device, equipment/terminal/server and computer readable storage medium | |
CN106912044A (en) | A kind of WiFi information processing methods and device | |
CN110008654B (en) | Electronic file processing method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20160824 |