CN110826083A - Browser data encryption method, device, system and storage medium - Google Patents
Browser data encryption method, device, system and storage medium Download PDFInfo
- Publication number
- CN110826083A CN110826083A CN201910949937.6A CN201910949937A CN110826083A CN 110826083 A CN110826083 A CN 110826083A CN 201910949937 A CN201910949937 A CN 201910949937A CN 110826083 A CN110826083 A CN 110826083A
- Authority
- CN
- China
- Prior art keywords
- browser
- data
- pin code
- preset
- user
- 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
Images
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/602—Providing cryptographic facilities or services
-
- 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
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)
- Databases & Information Systems (AREA)
- Medical Informatics (AREA)
- Storage Device Security (AREA)
Abstract
The embodiment of the invention discloses a method, a device, a system and a storage medium for encrypting browser data, wherein the method comprises the following steps: carrying out hash calculation on a preset browser PIN code to generate a hash value; using the hash value as an encryption key, and encrypting browser data generated in the process of accessing a browser by a user by adopting a preset encryption algorithm; and writing the encrypted browser data into a local disk or a memory for storage. Through the mode, the data can be decrypted only at the user terminal, the data is stolen and copied to other terminals and cannot be unlocked, even on the user terminal, the data cannot be unlocked without a PIN code set by a user, the PIN code does not store a remote server, the safety problem caused by network data transmission is avoided, the safety of the browser data is higher, and the confidentiality is stronger.
Description
Technical Field
The embodiment of the invention relates to the technical field of Internet, in particular to a browser data encryption method, device and system and a storage medium.
Background
When a user logs in a certain website system, network data is acquired through a browser, some user information which can be acquired only after the user logs in currently is stored in the browser, the information mainly comprises data information such as cache, cookie and passwords, the data information is sensitive information for the user, and the security of the data is very important.
In order to guarantee the security of browser data, windows own encryption algorithm is generally used for encrypting and storing cache data in the prior art, but in this way, an attacker can easily decrypt the data by using a corresponding decryption algorithm, so that data information is leaked, and the storage security of the browser data is poor.
Disclosure of Invention
Therefore, embodiments of the present invention provide a method, an apparatus, a system, and a storage medium for encrypting browser data, so as to solve the problem of poor security of the existing browser data storage.
In order to achieve the above object, the embodiments of the present invention provide the following technical solutions:
according to a first aspect of the embodiments of the present invention, there is provided a browser data encryption method, including:
carrying out hash calculation on a preset browser PIN code to generate a hash value;
using the hash value as an encryption key, and encrypting browser data generated in the process of accessing a browser by a user by adopting a preset encryption algorithm;
and writing the encrypted browser data into a local disk or a memory for storage.
Further, before performing hash calculation on a preset browser PIN code to generate a hash value, the method further includes:
and setting a PIN code of the browser.
Further, the method further comprises:
and the user enters a browser home page by inputting a preset browser PIN code on a browser screen locking interface.
Further, the browser data includes a cache, a cookie, and a user password.
According to a second aspect of the embodiments of the present invention, there is provided a browser data encryption apparatus, including:
the encryption unit is used for carrying out hash calculation on a preset browser PIN code to generate a hash value;
using the hash value as an encryption key, and encrypting browser data generated in the process of accessing a browser by a user by adopting a preset encryption algorithm;
and the storage unit is used for writing the encrypted browser data into a local disk or a memory for storage.
Further, the apparatus further comprises:
and the PIN code setting unit is used for setting a browser PIN code.
Further, the apparatus further comprises:
and the unlocking unit is used for enabling a user to enter a browser home page by inputting a preset browser PIN code on a browser screen locking interface.
According to a third aspect of the embodiments of the present invention, there is provided a browser data encryption system, including: a processor and a memory;
the memory is to store one or more program instructions;
the processor is configured to execute one or more program instructions to perform any one of the above browser data encryption methods.
According to a fourth aspect of embodiments of the present invention, there is provided a computer storage medium having one or more program instructions embodied therein for use by a browser data encryption system to perform any one of the method steps of the above browser data encryption method.
The embodiment of the invention has the following advantages: carrying out hash calculation on a preset browser PIN code to generate a hash value; using the hash value as an encryption key, and encrypting browser data generated in the process of accessing a browser by a user by adopting a preset encryption algorithm; and writing the encrypted browser data into a local disk or a memory for storage. Through the mode, the data can be decrypted only at the user terminal, the data is stolen and copied to other terminals and cannot be unlocked, even on the user terminal, the data cannot be unlocked without a PIN code set by a user, the PIN code does not store a remote server, the safety problem caused by network data transmission is avoided, the safety of the browser data is higher, and the confidentiality is stronger.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below. It should be apparent that the drawings in the following description are merely exemplary, and that other embodiments can be derived from the drawings provided by those of ordinary skill in the art without inventive effort.
Fig. 1 is a schematic flowchart of a browser data encryption method according to embodiment 1 of the present invention;
fig. 2 is a schematic structural diagram of a browser data encryption apparatus according to embodiment 2 of the present invention;
fig. 3 is a schematic structural diagram of a browser data encryption system according to embodiment 3 of the present invention.
Detailed Description
The present invention is described in terms of particular embodiments, other advantages and features of the invention will become apparent to those skilled in the art from the following disclosure, and it is to be understood that the described embodiments are merely exemplary of the invention and that it is not intended to limit the invention to the particular embodiments disclosed. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Embodiment 1 of the present invention provides a browser data encryption method, which is specifically shown in fig. 1 and includes the following steps:
and step 110, performing hash calculation on the preset browser PIN code to generate a hash value. The hash calculation may transform an input of arbitrary length into an output of fixed length by a hash algorithm.
Optionally, before performing the step, the method further includes: and setting a PIN code of the browser. When a user uses a browser for the first time, a Personal Identification Number (PIN) of the browser needs to be set on user terminal equipment, namely a Personal digital screen locking password of the browser, the PIN of the browser is only known by the user and is only stored locally and cannot be stored in a remote server, and the PIN of the browser is associated with the user terminal, so that the cached data adopting the encryption method can be decrypted only at the user terminal, and the data can not be decrypted when being stolen and copied to other terminals.
After the browser PIN code is preset, the method further comprises the following steps: and the user enters a browser home page by inputting a preset browser PIN code on a browser screen locking interface. When the user uses the browser next time, the user can use the browser only by inputting a preset PIN code into a screen locking interface of the browser for unlocking, otherwise, the user cannot enter a main page of the browser. The browser data includes information such as cache, cookie, and user password that is automatically saved.
In step 110, specifically, the browser PIN code is calculated by using the SHA256HASH algorithm to obtain a HASH value of 32 bytes, and the HASH value is stored in the HASH list. The user may generate a plurality of PIN codes, each time a new PIN code is generated, it is stored in the HASH list. Corresponding to the HASH value, an integer type variable I records the position index of the PIN code in the HASH list.
And step 120, encrypting the browser data generated in the process of accessing the browser by the user by using the hash value as an encryption key and adopting a preset encryption algorithm.
Specifically, a user accesses browser data such as a cache, a cookie and a user password generated by a browser, uses a hash value of a latest PIN code of the user as an encryption key, calls a windows own encryption algorithm tool CrytProtectData to encrypt the browser data, and stores the encrypted browser data in a local disk or a memory.
And step 130, writing the encrypted browser data into a local disk or a memory for storage.
When the browser data is used, the encrypted browser data and a corresponding encryption key are obtained, and the encryption key is used for calling a windows own decryption algorithm tool CryptUnProtectData to decrypt the encrypted browser data to obtain the browser data.
The browser data are encrypted and stored after being encrypted through the process, the hash value of the PIN code of the browser is used as the encryption key, the data cannot be decrypted even on a user terminal without the PIN code set by a user, the PIN code does not store a remote server, the safety problem caused by network data transmission is avoided, the data are higher in safety and stronger in confidentiality, all encryption levels are associated with the experience and tolerance of the user, if the user loses the PIN code, the stored data before can not be decrypted, and the program can discard the data.
The browser data encryption method provided by the embodiment of the invention comprises the steps of carrying out hash calculation on a preset browser PIN code to generate a hash value; using the hash value as an encryption key, and encrypting browser data generated in the process of accessing a browser by a user by adopting a preset encryption algorithm; and writing the encrypted browser data into a local disk or a memory for storage. Through the mode, the data can be decrypted only at the user terminal, the data is stolen and copied to other terminals and cannot be unlocked, even on the user terminal, the data cannot be unlocked without a PIN code set by a user, the PIN code does not store a remote server, the safety problem caused by network data transmission is avoided, the safety of the browser data is higher, and the confidentiality is stronger.
Corresponding to the above embodiment 1, embodiment 2 of the present invention proposes a browser data encryption apparatus, specifically as shown in fig. 2, the apparatus includes an encryption unit 210 and a storage unit 220.
The encryption unit 210 is configured to perform a hash calculation on a preset browser PIN code to generate a hash value.
And using the hash value as an encryption key, and encrypting the browser data by adopting a preset encryption algorithm.
The storage unit 220 is configured to write the encrypted browser data into a local disk or a memory for storage.
Further, the apparatus further comprises:
and a PIN code setting unit 230 for setting a browser PIN code.
Further, the apparatus further comprises:
and the unlocking unit 240 is used for the user to enter the browser home page by inputting a preset browser PIN code on the browser screen locking interface.
The functions executed by each component in the browser data encryption device provided by the embodiment of the present invention have been described in detail in the above embodiment 1, and therefore, redundant description is not repeated here.
The browser data encryption device provided by the embodiment of the invention carries out hash calculation on a preset browser PIN code to generate a hash value; using the hash value as an encryption key, and encrypting browser data generated in the process of accessing a browser by a user by adopting a preset encryption algorithm; and writing the encrypted browser data into a local disk or a memory for storage. Through the mode, the data can be decrypted only at the user terminal, the data is stolen and copied to other terminals and cannot be unlocked, even on the user terminal, the data cannot be unlocked without a PIN code set by a user, the PIN code does not store a remote server, the safety problem caused by network data transmission is avoided, the safety of the browser data is higher, and the confidentiality is stronger.
Corresponding to the foregoing embodiment, embodiment 3 of the present invention further provides a browser data encryption system, specifically as shown in fig. 3, where the system includes: a processor 310 and a memory 320;
the processor 310 is configured to execute one or more program instructions to perform any method steps of a browser data encryption method as described in the above embodiments.
The browser data encryption system provided by the embodiment of the invention carries out hash calculation on a preset browser PIN code to generate a hash value; using the hash value as an encryption key, and encrypting browser data generated in the process of accessing a browser by a user by adopting a preset encryption algorithm; and writing the encrypted browser data into a local disk or a memory for storage. Through the mode, the data can be decrypted only at the user terminal, the data is stolen and copied to other terminals and cannot be unlocked, even on the user terminal, the data cannot be unlocked without a PIN code set by a user, the PIN code does not store a remote server, the safety problem caused by network data transmission is avoided, the safety of the browser data is higher, and the confidentiality is stronger.
In correspondence with the above embodiments, embodiment 4 of the present invention provides a computer storage medium containing one or more program instructions for executing, by a browser data encryption system, any one of the method steps in a browser data encryption method as described in the above embodiments.
In an embodiment of the invention, the processor may be an integrated circuit chip having signal processing capability. The Processor may be a general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware component.
The various methods, steps and logic blocks disclosed in the embodiments of the present invention may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present invention may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The processor reads the information in the storage medium and completes the steps of the method in combination with the hardware.
The storage medium may be a memory, for example, which may be volatile memory or nonvolatile memory, or which may include both volatile and nonvolatile memory.
The nonvolatile Memory may be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically Erasable PROM (EEPROM), or a flash Memory.
The volatile Memory may be a Random Access Memory (RAM) which serves as an external cache. By way of example, and not limitation, many forms of RAM are available, such as Static Random Access Memory (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), SLDRAM (SLDRAM), and Direct Rambus RAM (DRRAM).
The storage media described in connection with the embodiments of the invention are intended to comprise, without being limited to, these and any other suitable types of memory.
Those skilled in the art will appreciate that the functionality described in the present invention may be implemented in a combination of hardware and software in one or more of the examples described above. When software is applied, the corresponding functionality may be stored on or transmitted over as one or more instructions or code on a computer-readable medium. Computer-readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one place to another. A storage media may be any available media that can be accessed by a general purpose or special purpose computer.
Although the invention has been described in detail above with reference to a general description and specific examples, it will be apparent to one skilled in the art that modifications or improvements may be made thereto based on the invention. Accordingly, such modifications and improvements are intended to be within the scope of the invention as claimed.
Claims (9)
1. A browser data encryption method, the method comprising:
carrying out hash calculation on a preset browser PIN code to generate a hash value;
using the hash value as an encryption key, and encrypting browser data generated in the process of accessing a browser by a user by adopting a preset encryption algorithm;
and writing the encrypted browser data into a local disk or a memory for storage.
2. The browser data encryption method according to claim 1, wherein before performing hash calculation on a preset browser PIN to generate a hash value, the method further comprises:
and setting a PIN code of the browser.
3. The method for encrypting the browser data according to claim 2, further comprising:
and the user enters a browser home page by inputting a preset browser PIN code on a browser screen locking interface.
4. The method of claim 1, wherein the browser data comprises a cache, a cookie, and a user password.
5. A browser data encryption apparatus, characterized in that the apparatus comprises:
the encryption unit is used for carrying out hash calculation on a preset browser PIN code to generate a hash value;
using the hash value as an encryption key, and encrypting browser data generated in the process of accessing a browser by a user by adopting a preset encryption algorithm;
and the storage unit is used for writing the encrypted browser data into a local disk or a memory for storage.
6. The device for encrypting browser data according to claim 5, further comprising:
and the PIN code setting unit is used for setting a browser PIN code.
7. The device for encrypting browser data according to claim 6, further comprising:
and the unlocking unit is used for enabling a user to enter a browser home page by inputting a preset browser PIN code on a browser screen locking interface.
8. A browser data encryption system, the system comprising: a processor and a memory;
the memory is to store one or more program instructions;
the processor, configured to execute one or more program instructions to perform the method of any of claims 1-4.
9. A computer storage medium comprising one or more program instructions for executing the method of any one of claims 1-4 by a browser data encryption system.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910949937.6A CN110826083A (en) | 2019-10-08 | 2019-10-08 | Browser data encryption method, device, system and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910949937.6A CN110826083A (en) | 2019-10-08 | 2019-10-08 | Browser data encryption method, device, system and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110826083A true CN110826083A (en) | 2020-02-21 |
Family
ID=69548673
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910949937.6A Pending CN110826083A (en) | 2019-10-08 | 2019-10-08 | Browser data encryption method, device, system and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110826083A (en) |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20110276627A1 (en) * | 2010-05-07 | 2011-11-10 | Valerie Blechar | Managing Multiple Logins from a Single Browser |
CN102324008A (en) * | 2011-09-23 | 2012-01-18 | 郑州信大捷安信息技术股份有限公司 | Web bank's FTP client FTP and method of application based on USB safety storing encrypted card |
CN102916970A (en) * | 2012-10-30 | 2013-02-06 | 飞天诚信科技股份有限公司 | Network-based PIN cache method |
CN103324671A (en) * | 2013-05-22 | 2013-09-25 | 福建联迪商用设备有限公司 | Information memorization and management method and device based on Webkit browser |
CN107453880A (en) * | 2017-08-28 | 2017-12-08 | 国家康复辅具研究中心 | A kind of cloud secure storage method of data and system |
CN109409045A (en) * | 2018-09-21 | 2019-03-01 | 天津海泰方圆科技有限公司 | Browser automated log on account number safety guard method and device |
CN109672675A (en) * | 2018-12-20 | 2019-04-23 | 成都三零瑞通移动通信有限公司 | A kind of WEB authentication method of the cryptographic service middleware based on OAuth2.0 |
-
2019
- 2019-10-08 CN CN201910949937.6A patent/CN110826083A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20110276627A1 (en) * | 2010-05-07 | 2011-11-10 | Valerie Blechar | Managing Multiple Logins from a Single Browser |
CN102324008A (en) * | 2011-09-23 | 2012-01-18 | 郑州信大捷安信息技术股份有限公司 | Web bank's FTP client FTP and method of application based on USB safety storing encrypted card |
CN102916970A (en) * | 2012-10-30 | 2013-02-06 | 飞天诚信科技股份有限公司 | Network-based PIN cache method |
CN103324671A (en) * | 2013-05-22 | 2013-09-25 | 福建联迪商用设备有限公司 | Information memorization and management method and device based on Webkit browser |
CN107453880A (en) * | 2017-08-28 | 2017-12-08 | 国家康复辅具研究中心 | A kind of cloud secure storage method of data and system |
CN109409045A (en) * | 2018-09-21 | 2019-03-01 | 天津海泰方圆科技有限公司 | Browser automated log on account number safety guard method and device |
CN109672675A (en) * | 2018-12-20 | 2019-04-23 | 成都三零瑞通移动通信有限公司 | A kind of WEB authentication method of the cryptographic service middleware based on OAuth2.0 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109600377B (en) | Method and device for preventing unauthorized use computer device and storage medium | |
US12032493B2 (en) | Obfuscating cryptographic material in memory | |
CN111294203B (en) | Information transmission method | |
CN112528268B (en) | Cross-channel applet login management method and device and related equipment | |
US20180053018A1 (en) | Methods and systems for facilitating secured access to storage devices | |
US20100011221A1 (en) | Secured storage device with two-stage symmetric-key algorithm | |
WO2020243245A1 (en) | Protection of online applications and webpages using a blockchain | |
CN109510702B (en) | Key storage and use method based on computer feature codes | |
CN112527835A (en) | Authentication request processing method and device based on cache and related equipment | |
CN114268447B (en) | File transmission method and device, electronic equipment and computer readable medium | |
CN111104693A (en) | Android platform software data cracking method, terminal device and storage medium | |
CN110826083A (en) | Browser data encryption method, device, system and storage medium | |
CN115828290A (en) | Encryption and decryption method and device based on distributed object storage | |
CN115374424A (en) | Database access method and device, electronic equipment and storage medium | |
CN111542050B (en) | TEE-based method for guaranteeing remote initialization safety of virtual SIM card | |
CN112291058A (en) | Communication method of management system and management system | |
CN106209381A (en) | A kind of photo encipher-decipher method and system thereof | |
CN111262702A (en) | Double-factor authentication method, device and system based on cryptographic algorithm and biological characteristics | |
CN116318899B (en) | Data encryption and decryption processing method, system, equipment and medium | |
US11568070B2 (en) | Secure access control processes | |
CN114785529B (en) | Method and system for establishing trusted communication link based on block chain | |
CN107733658A (en) | A kind of PIN code method to set up, authentication method and storage device | |
CN118400103A (en) | Database encryption method, device, server and storage medium | |
CN114726516A (en) | Encryption method, system, terminal equipment and storage medium for fusing card number and password | |
CN111224949A (en) | Method and device for controlling overall flow of entity port |
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: 20200221 |
|
RJ01 | Rejection of invention patent application after publication |