CN111062041A - Data processing method and system implemented based on font library - Google Patents

Data processing method and system implemented based on font library Download PDF

Info

Publication number
CN111062041A
CN111062041A CN201911156031.5A CN201911156031A CN111062041A CN 111062041 A CN111062041 A CN 111062041A CN 201911156031 A CN201911156031 A CN 201911156031A CN 111062041 A CN111062041 A CN 111062041A
Authority
CN
China
Prior art keywords
font
library
font library
interface
cookie
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
CN201911156031.5A
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.)
Chengdu Yinchao Technology Co ltd
Original Assignee
Chengdu Yinchao 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 Chengdu Yinchao Technology Co ltd filed Critical Chengdu Yinchao Technology Co ltd
Priority to CN201911156031.5A priority Critical patent/CN111062041A/en
Publication of CN111062041A publication Critical patent/CN111062041A/en
Pending legal-status Critical Current

Links

Images

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/602Providing cryptographic facilities or services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/04Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
    • H04L63/0428Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Software Systems (AREA)
  • Health & Medical Sciences (AREA)
  • Physics & Mathematics (AREA)
  • General Health & Medical Sciences (AREA)
  • General Physics & Mathematics (AREA)
  • Bioethics (AREA)
  • Computing Systems (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Document Processing Apparatus (AREA)

Abstract

The invention discloses a data processing method and a system implemented based on a font library, wherein the method is used for encrypting numbers and English and comprises the following steps: the rear end is provided with a font library, the font library comprises 0-9 numbers and a-Z English, A-Z English, and each value in the font library corresponds to a ciphertext key; calling: the back end is provided with an interface, and the interface adds the font library ciphertext address to the cookie when the front end is called; and cookie loading step: the front end dynamically loads a font library file hidden in the cookie through an @ font-face font icon of the css in the browser; an encryption step: the back end encrypts the characters containing numbers and/or English in the contents returned by all the interface data through a corresponding font library; a display step: and the front-end browser directly analyzes the corresponding font library value of the ciphertext rendering through the font library. The invention replaces the mode of direct rendering of numbers and/or letters by the font library, can well solve the safety of numbers and English without influencing the normal use of users.

Description

Data processing method and system implemented based on font library
Technical Field
The invention belongs to the field of digital encryption, and particularly relates to a data processing method and a data processing system implemented based on a font library.
Background
The concept of the "big data" era was proposed since a long time ago, and data has been incorporated into the lives of people today, particularly in the internet environment, and is an essential component element. Under the existing internet mode, the following problems exist when the industrial data requirements of e-commerce, big data and the like are expanded:
1. under the environment that the volume of data is larger and the value of the data is higher and higher, the safety of the data cannot be well guaranteed.
2. The browser cannot protect the safety of the nodes when the browser directly renders data, and can directly crawl the data.
3. Under the condition that user experience is not influenced, and data can be prevented from being easily acquired by a crawler, a good solution scheme does not exist in the current market.
Disclosure of Invention
The invention aims to overcome the defects of the prior art and provide a data processing method and a data processing system implemented based on a font library, which can well solve the safety of numeric characters and English characters, do not influence the user experience under the normal use of a user and are a solution for replacing pure text rendering by using the font library.
The purpose of the invention is realized by the following technical scheme:
a data processing method implemented based on a font library, the method for encrypting numbers and english, comprising:
the rear end is provided with a font library, the font library comprises 0-9 numbers and a-Z, A-Z English, each value in the font library corresponds to a ciphertext key, and the format of the ciphertext is as follows: "& # xf 162; "
Calling: the back end has an interface, the interface adds the font library ciphertext address (2b3sdfs779zhhska3s) to the cookie when the front end makes a call;
and cookie loading step: the front end dynamically loads a hidden font library file (http:// www.xxx.com/cache/font/2b3sdfs779zhhska3s.ttf) in a cookie (2b3sdfs779zhhska3s) through an @ font icon of css in the browser;
an encryption step: the back end encrypts the characters containing numbers and/or English in the contents returned by all the interface data through a corresponding font library;
a display step: the front-end browser can directly analyze the font library value corresponding to ciphertext rendering through the font library, and the effect consistent with direct output number can be achieved.
The font library is preferably randomly and dynamically generated by node.
Js randomly and dynamically generates an 18-bit name hash font library, and the 18-bit name is used as a hash font library ciphertext address.
Preferably, the ciphertext in the font library is changed each time a cookie is loaded. The font library is generated by a back end or a server, and needs to be updated when the cookie is loaded each time, so that the problem that the mapping relation is single and the cracking is easy to happen is avoided. The security of the whole data processing is enhanced by updating the font library.
Preferably, in the calling step, the backend provides a home interface.
Preferably, when the interface is invoked, the interface automatically rejects generation if the invocation is not a browser.
Preferably, the interface automatically denies generation if an exception occurs when the interface is called, or the interface is not added to the cookie if it has already been generated.
Preferably, each ciphertext consists of 7 characters, of which the first three characters are "& # x" and the last four characters are randomly generated each time a cookie is loaded.
Preferably, each ciphertext consists of 8 characters, wherein the first three characters are "& # x", the middle four characters are randomly generated each time a cookie is loaded, and the last character is "; ".
A data processing system implemented based on a font library, comprising:
font library unit: storing the number of 0-9 and English of a-Z and A-Z, wherein the value in the font library corresponds to a ciphertext key;
a calling unit: providing an interface through the back end, and adding the font library ciphertext address into the cookie when the front end is called;
a cookie loading unit: dynamically loading a font library file hidden in the cookie through an @ font-face font icon of the css in the front-end browser;
an encryption unit: encrypting the content returned by all the interface data, which contains the digital and/or English characters, by a corresponding font library at the back end;
a display unit: and directly analyzing the corresponding font library value of the ciphertext rendering through the font library through the front-end browser.
The invention has the beneficial effects that: the invention replaces the mode of direct rendering of numbers and/or letters by the font library, can well solve the safety of numbers and English without influencing the normal use of users. The 1 seen by the user is actually an encrypted value, such as: and # xf 162; the user can only browse the data and cannot copy the data, and the viewed source code is also the ciphertext, so that the security of the data is enhanced.
Drawings
FIG. 1 is a schematic flow chart of the present invention.
Detailed Description
The technical solutions of the present invention are further described in detail below with reference to the accompanying drawings, but the scope of the present invention is not limited to the following.
Example one
As shown in fig. 1, a data processing method implemented based on a font library, the method for encrypting numbers and english, includes:
the rear end is provided with a font library, the font library comprises 0-9 numbers and a-Z English, A-Z English, and each value in the font library corresponds to a ciphertext key; the specific implementation process can adopt the following modes:
the method comprises the following steps: and the back end randomly generates 10000 font file libraries, each file library corresponds to a secret key, and each file contains 0-9 numbers and a-Z, A-Z English. The font library is dynamically generated randomly by node.
Step two: each number or letter is randomly generated, the first 3 fixed & # x, then the first bits of 4 are randomly generated, the last 3 bits are e.g. 162, and finally; and (5) ending. The ciphertext format is as follows: and # xf 162.
Step three: the resulting file produces an 18-bit hash name. Js randomly and dynamically generates a hash font library with 18-bit names, and the 18-bit names are used as cipher text addresses of the hash font library. The advantages are that: in consideration of practicability and storage efficiency, the file can be acquired more quickly, and the follow-up process is carried out. The key point is the acquisition of characters in the font library.
Step four: and storing the name in a database, randomly taking a hash by calling the front end each time, and returning a corresponding ciphertext to replace the number and the letter by the back end according to the encryption mode.
Step five: and the front end loads and renders the font library.
Further, the font library is a dynamic font library, which is not fixed.
Calling: the back end has an interface which covertly adds the font library ciphertext address (2b3sdfs779zhhska3s) to the cookie when the front end makes a call;
and cookie loading step: the front end dynamically loads a hidden font library file (http:// www.xxx.com/cache/font/2 b3sdfs779zhshka3s.ttf) in a cookie (2b3sdfs779zhhska3s) through an @ font icon of css in a browser, and ciphertext or a font library can be changed each time loading is carried out; the back end can carry out verification and verification, the problem of inconsistency can not occur according to the flow, and the loaded file needs to be refreshed again. Otherwise, a display abnormality occurs.
An encryption step: the back end encrypts the characters containing numbers and/or English in the contents returned by all the interface data through a corresponding font library secret key and returns the ciphertext to the front end; the specific contents are as follows:
1. the front end calls an interface to obtain a font library ciphertext key;
2. requesting to load a font file below the ciphertext;
3. transferring the ciphertext into the header when calling the interface to acquire time;
4. the back end analyzes according to the ciphertext, filters the value needing to be encrypted, and returns the value to the front end after encryption processing.
A display step: the front-end browser can directly analyze the font library value corresponding to ciphertext rendering through the font library, and the effect consistent with direct output number can be achieved. The front end directly renders the ciphertext to the node, the browser automatically analyzes the key in the font library to analyze the text, and the front end does not need to know what the encryption rule is. After the font library is loaded, the browser automatically renders the font name corresponding to the font library and then displays the number or letter.
The method applies the @ font-face font icon technology of the css in the browser, and is a solution scheme based on that the browser can directly render characters in a font library to a page through rules and keep the same display effect as common characters. The invention dynamically introduces a font library through the @ font-face of the css in the browser. The browser identifies the font library and caches the font library in the memory, so that characters in the font library can be identified conveniently. The rear end generates a font library and encrypts corresponding content through a font library secret key appointed by the front end. And the back end returns the ciphertext of the corresponding content in the corresponding font library for the front-end browser to use. The front-end browser can directly analyze the ciphertext to render corresponding characters through the font library, and the effect consistent with the direct output of numbers can be achieved.
Example two
The embodiment is implemented on the basis of the first embodiment, and mainly optimizes calls.
In the calling step, the back-end provides a home interface.
When the interface is called, if the call is not a browser, the interface automatically rejects generation.
If an exception occurs when the interface is called, the interface automatically rejects generation, or if the interface has already been generated, it is not added to the cookie.
For interface calling, the invention provides a processing mechanism of special conditions, such as non-browser calling or abnormal calling, thereby further enhancing the data security and avoiding the interface from being used maliciously.
EXAMPLE III
The form of the ciphertext may be various, but one principle is that each value in the font library has a unique ciphertext. In addition, the format of the ciphertext can be limited, and normalized management is facilitated. Each ciphertext is composed of 7 characters, wherein the first three characters are & # x, and the last four characters are randomly generated each time the cookie is loaded, so that the dynamic font library function described above is realized.
Alternatively, each ciphertext consists of 8 characters, where the first three characters are "& # x", the middle four characters are randomly generated each time a cookie is loaded, and the last character is "; ".
Each time a cookie is loaded, the ciphertext in the font library is changed. The font library is generated by a back end or a server, and needs to be updated when the cookie is loaded each time, so that the problem that the mapping relation is single and the cracking is easy to happen is avoided. The security of the whole data processing is enhanced by updating the font library.
The data seen by the user and returned by the interface are different, so that the safety of the data is enhanced. Such as:
content seen by the user, distribution ¥ 46
Interface return data "dispatch ¥ & # xf106 & # xeba 7"
For another example:
content viewed by the user, monthly 1336
The interface returns the data "monthly & # xe5d 9; and # xe8 ce; and # xe8 ce; and # xeba 7; "
Example four
A data processing system implemented based on a font library, comprising:
font library unit: storing the number of 0-9 and English of a-Z and A-Z, wherein the value in the font library corresponds to a ciphertext key; the font library is dynamically generated randomly by node. Js randomly and dynamically generates an 18-bit name hash font library, and the 18-bit name is used as a hash font library ciphertext address. Further, each time a cookie is loaded, the ciphertext in the font library is changed. Each ciphertext consists of 7 characters, wherein the first three characters are & # x, and the last four characters are randomly generated each time a cookie is loaded; alternatively, each ciphertext consists of 8 characters, where the first three characters are "& # x", the middle four characters are randomly generated each time a cookie is loaded, and the last character is "; ". Each value in the font library corresponds to a ciphertext with uniqueness.
A calling unit: providing an interface through the back end, and adding the font library ciphertext address into the cookie when the front end is called; the provided interface is a home interface. When the interface is called, if the calling is not the browser, the interface automatically refuses to generate; or if an exception occurs when the interface is called, the interface automatically refuses generation, or if the interface is generated, the interface is not added to the cookie.
A cookie loading unit: dynamically loading a font library file hidden in the cookie through an @ font-face font icon of the css in the front-end browser;
an encryption unit: encrypting the content returned by all the interface data, which contains the digital and/or English characters, by a corresponding font library at the back end;
a display unit: and directly analyzing the corresponding font library value of the ciphertext rendering through the font library through the front-end browser.
In conclusion, the invention processes the data (numbers and English), so that the numbers and English are safer to use in the Internet mode, and malicious crawling is avoided. In addition, for the interface and the ciphertext, the invention provides a corresponding processing mechanism, which is convenient for management and use. In a word, through a normalized processing flow and a normalized processing mechanism, the use of network data, particularly numbers and English, is safer, and the technical problem that the network data is easy to crawl is effectively solved.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, it should be noted that any modifications, equivalents and improvements made within the spirit and principle of the present invention should be included in the scope of the present invention.

Claims (10)

1. A data processing method implemented based on a font library, the method for encrypting numbers and english, comprising:
the rear end is provided with a font library, the font library comprises 0-9 numbers and a-Z English, A-Z English, and each value in the font library corresponds to a ciphertext key;
calling: the back end is provided with an interface, and the interface adds the font library ciphertext address to the cookie when the front end is called;
and cookie loading step: the front end dynamically loads a font library file hidden in the cookie through an @ font-face font icon of the css in the browser;
an encryption step: the back end encrypts the characters containing numbers and/or English in the contents returned by all the interface data through a corresponding font library;
a display step: and the front-end browser directly analyzes the corresponding font library value of the ciphertext rendering through the font library.
2. A font-library-based data processing method according to claim 1, characterized in that: the font library is dynamically generated randomly by node.
3. A font-library-based data processing method according to claim 2, characterized in that: js randomly and dynamically generates a hash font library with 18-bit names, and the 18-bit names are used as cipher text addresses of the hash font library.
4. A dynamic font library based encryption method according to any one of claims 1 to 3, characterized in that: each time a cookie is loaded, the ciphertext in the font library is changed.
5. A font-library-based data processing method according to claim 1, characterized in that: in the calling step, the back-end provides a home interface.
6. A font-library-based data processing method according to claim 1 or 5, characterized in that: when the interface is called, if the call is not a browser, the interface automatically rejects generation.
7. A font-library-based data processing method according to claim 1, characterized in that: if an exception occurs when the interface is called, the interface automatically rejects generation, or if the interface has already been generated, it is not added to the cookie.
8. A font-library-based data processing method according to claim 1, characterized in that: each ciphertext consists of 7 characters, of which the first three characters are "& # x", and the last four characters are randomly generated each time a cookie is loaded.
9. A font-library-based data processing method according to claim 1, characterized in that: each ciphertext consists of 8 characters, where the first three characters are "& # x", the middle four characters are randomly generated each time a cookie is loaded, and the last character is "; ".
10. A data processing system implemented based on a font library, comprising:
font library unit: storing the number of 0-9 and English of a-Z and A-Z, wherein the value in the font library corresponds to a ciphertext key;
a calling unit: providing an interface through the back end, and adding the font library ciphertext address into the cookie when the front end is called;
a cookie loading unit: dynamically loading a font library file hidden in the cookie through an @ font-face font icon of the css in the front-end browser;
an encryption unit: encrypting the content returned by all the interface data, which contains the digital and/or English characters, by a corresponding font library at the back end;
a display unit: and directly analyzing the corresponding font library value of the ciphertext rendering through the font library through the front-end browser.
CN201911156031.5A 2019-11-22 2019-11-22 Data processing method and system implemented based on font library Pending CN111062041A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911156031.5A CN111062041A (en) 2019-11-22 2019-11-22 Data processing method and system implemented based on font library

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911156031.5A CN111062041A (en) 2019-11-22 2019-11-22 Data processing method and system implemented based on font library

Publications (1)

Publication Number Publication Date
CN111062041A true CN111062041A (en) 2020-04-24

Family

ID=70298108

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911156031.5A Pending CN111062041A (en) 2019-11-22 2019-11-22 Data processing method and system implemented based on font library

Country Status (1)

Country Link
CN (1) CN111062041A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111898152A (en) * 2020-05-07 2020-11-06 北京五八信息技术有限公司 Page display method, electronic equipment and storage medium
CN112182603A (en) * 2020-09-22 2021-01-05 建信金融科技有限责任公司 Anti-crawler method and device
CN113986416A (en) * 2021-09-30 2022-01-28 江苏中交车旺科技有限公司 Method and system for realizing font icon rendering based on Flutter

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170124464A1 (en) * 2015-10-28 2017-05-04 Fractal Industries, Inc. Rapid predictive analysis of very large data sets using the distributed computational graph
CN107766532A (en) * 2017-10-27 2018-03-06 深圳市行云易通科技有限公司 A kind of front end Node.js automates positive static method
CN107818108A (en) * 2016-09-13 2018-03-20 阿里巴巴集团控股有限公司 A kind of webpage rendering intent, apparatus and system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170124464A1 (en) * 2015-10-28 2017-05-04 Fractal Industries, Inc. Rapid predictive analysis of very large data sets using the distributed computational graph
CN107818108A (en) * 2016-09-13 2018-03-20 阿里巴巴集团控股有限公司 A kind of webpage rendering intent, apparatus and system
CN107766532A (en) * 2017-10-27 2018-03-06 深圳市行云易通科技有限公司 A kind of front end Node.js automates positive static method

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111898152A (en) * 2020-05-07 2020-11-06 北京五八信息技术有限公司 Page display method, electronic equipment and storage medium
CN112182603A (en) * 2020-09-22 2021-01-05 建信金融科技有限责任公司 Anti-crawler method and device
CN112182603B (en) * 2020-09-22 2022-12-13 中国建设银行股份有限公司 Anti-crawler method and device
CN113986416A (en) * 2021-09-30 2022-01-28 江苏中交车旺科技有限公司 Method and system for realizing font icon rendering based on Flutter
CN113986416B (en) * 2021-09-30 2024-04-30 江苏中交车旺科技有限公司 Method and system for rendering font icon based on Flutter

Similar Documents

Publication Publication Date Title
US10902145B2 (en) Method and computer program product for order preserving symbol based encryption
US8271424B2 (en) Privacy and confidentiality preserving reporting of URLs
CN111062041A (en) Data processing method and system implemented based on font library
CN107733972A (en) A kind of short linking analytic method, device and equipment
US8533579B2 (en) Data loss detection method for handling fuzziness in sensitive keywords
US8166203B1 (en) Server selection based upon time and query dependent hashing
US10057217B2 (en) System and method to secure sensitive content in a URI
US20180191692A1 (en) Encryption filter
CN107315972A (en) A kind of dynamic desensitization method of big data unstructured document and system
CN111008348A (en) Anti-crawler method, terminal, server and computer readable storage medium
US8467815B2 (en) Mobile address book population using SMS polling
CN111460503A (en) Data sharing method, device, equipment and storage medium
CN109697370A (en) Database data encipher-decipher method, device, computer equipment and storage medium
WO2019023404A1 (en) Templates and events for customizable notifications on websites
US9973339B1 (en) Anonymous cloud data storage and anonymizing non-anonymous storage
CN112818038A (en) Data management method based on combination of block chain and IPFS (Internet protocol file system) and related equipment
Prasadreddy et al. A threat free architecture for privacy assurance in cloud computing
CN114969722A (en) Government affair data privacy calculation system supporting multiple data types
CN111865976A (en) Access control method, device and gateway
CN112889050A (en) System, method and architecture for secure sharing of client intelligence
US8005849B2 (en) Database access server with reformatting
CN114666315B (en) HTTP request processing method and device of load balancing equipment
JP6576387B2 (en) Information processing apparatus, information processing method, information processing program, recording medium, and access control system
US11797701B1 (en) Secure data collaboration
CN113821805B (en) Data encryption 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: 20200424

RJ01 Rejection of invention patent application after publication