CN111460484A - Information encryption method, information encryption device and computer readable storage medium - Google Patents

Information encryption method, information encryption device and computer readable storage medium Download PDF

Info

Publication number
CN111460484A
CN111460484A CN202010310260.4A CN202010310260A CN111460484A CN 111460484 A CN111460484 A CN 111460484A CN 202010310260 A CN202010310260 A CN 202010310260A CN 111460484 A CN111460484 A CN 111460484A
Authority
CN
China
Prior art keywords
data
preset
type data
preset type
length
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
CN202010310260.4A
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.)
Shenzhen Yunzhirong Technology Co ltd
Original Assignee
Shenzhen Yunzhirong 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 Shenzhen Yunzhirong Technology Co ltd filed Critical Shenzhen Yunzhirong Technology Co ltd
Priority to CN202010310260.4A priority Critical patent/CN111460484A/en
Publication of CN111460484A publication Critical patent/CN111460484A/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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/62Protecting access to data via a platform, e.g. using keys or access control rules
    • G06F21/6218Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database
    • G06F21/6245Protecting 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 invention provides an information encryption method, which comprises the steps of judging whether data is preset type data or not, wherein the preset type data comprises pure numbers or combination of numbers and letters; when the data is preset type data, judging whether the preset type data is data with a preset length and a specific arrangement; and when the preset type data is data with a preset length and a specific arrangement, encrypting the preset type data with the preset length and the specific arrangement. The information encryption method can encrypt the sensitive information, and has the advantages of simple method and high efficiency. The invention also provides an information encryption device and a computer readable storage medium.

Description

Information encryption method, information encryption device and computer readable storage medium
Technical Field
The present invention relates to the field of information processing, and in particular, to an information encryption method, an information encryption apparatus, and a computer-readable storage medium.
Background
Nowadays, personal private or sensitive information is often involved in various databases, especially financial companies such as bank systems, fixed asset management systems, etc., and if not encrypted, it is easy to cause leakage of customer information or random theft of customer private information. In addition, systems such as banking systems and fixed asset management have huge data, and are inefficient in performing identification and encryption manually.
Disclosure of Invention
In view of this, the present invention provides an information encryption method, which can encrypt sensitive information, and has the advantages of simple method and high efficiency.
The invention provides an information encryption method, which comprises the following steps:
judging whether the data is preset type data or not, wherein the preset type comprises pure numbers or combination of numbers and letters;
when the data is preset type data, judging whether the preset type data is data with a preset length and a specific arrangement;
and when the preset type data is data with a preset length and a specific arrangement, encrypting the preset type data with the preset length and the specific arrangement.
The determining whether the preset type data is data with a preset length and a specific arrangement specifically includes:
judging whether the preset type data is first preset length data or not, wherein the first preset length is the digit of a telephone number;
if the preset type data is first preset length data, judging whether the first three bits of the preset type data are in a first specific arrangement;
the encrypting the preset type data with preset length and specific arrangement specifically includes: and encrypting the preset type data with the first preset length data and the first three bits of the preset type data with the first specific arrangement.
The determining whether the preset type data is data with a preset length and a specific arrangement specifically includes:
judging whether the preset type data is second preset length data or not, wherein the second preset length is the digit of the identity card number;
if the preset type data is second preset length data, judging whether a seventh bit and an eighth bit of the second preset length preset type data are in a second specific arrangement;
the encrypting the preset type data with preset length and specific arrangement specifically includes: and encrypting the preset type data with the second preset length and the seventh bit and the eighth bit of the second special arrangement.
The determining whether the preset type data is data with a preset length and a specific arrangement specifically includes:
judging whether the preset type data is second preset length data or not, wherein the second preset length is the digit of the identity card number;
if the preset type data is second preset length data, judging whether the first bit to the sixth bit of the second preset length preset type data are in a third specific arrangement;
the encrypting the preset type data with preset length and specific arrangement specifically includes: and encrypting the preset type data with the second preset length and the third specific arrangement of the first bit to the sixth bit.
The determining whether the preset type data is data with a preset length and a specific arrangement specifically includes:
judging whether the preset type data is second preset length data or not, wherein the second preset length is the digit of the identity card number;
if the preset type data is second preset length data, judging whether 11 th bit to 14 th bit of the second preset length preset type data are in a fourth specific arrangement;
the encrypting the preset type data with preset length and specific arrangement specifically includes: and encrypting the preset type data with the second preset length and the 11 th bit to the 14 th bit of the fourth specific arrangement.
The determining whether the preset type data is data with a preset length and a specific arrangement specifically includes:
judging whether the preset type data is third preset length data or not, wherein the third preset length is the digit of the bank card;
if the preset type data is third preset length data; judging whether the first six bits of the preset type data are in a fifth specific arrangement.
The encrypting the preset type data with preset length and specific arrangement specifically includes: and encrypting the preset type data with the third preset length and the first six bits of the fifth specific arrangement.
The determining whether the preset type data is data with a preset length and a specific arrangement specifically includes:
judging whether the preset type data is third preset length data or not, wherein the third preset length is the digit of the bank card;
if the preset type data is third preset length data; and performing information matching on the preset type data in a database.
The encrypting the data with the preset length and the specific arrangement specifically comprises: and encrypting the preset type data which has the third preset length and can be matched in the database.
The present invention also provides an information encryption apparatus, comprising:
the data type judging unit is used for judging whether the data is preset type data or not, and the preset type comprises pure numbers or combination of numbers and letters;
the data length judging unit is used for judging whether the preset type data is preset length data with specific arrangement when the data is preset type data;
and the encryption unit is used for encrypting the preset type data with the preset length and the specific arrangement when the preset type data is the data with the preset length and the specific arrangement.
The data length judging unit is specifically configured to judge whether the preset type data is first preset length data, where the first preset length is a digit of a telephone number;
if the preset type data is first preset length data, judging whether the first three bits of the preset type data are first specific arrangement numbers or not;
the encryption unit is specifically configured to encrypt the preset type data having the first preset length and the first three bits being the first specific arrangement.
The present invention also provides a computer-readable storage medium storing computer-executable program code for causing a computer to perform the above-mentioned information encryption method.
Therefore, the information encryption method can encrypt the sensitive information, and is simple and convenient and high in efficiency.
Drawings
To more clearly illustrate the structural features and effects of the present invention, a detailed description is given below with reference to the accompanying drawings and specific embodiments.
Fig. 1 is a flowchart illustrating an information encryption method according to an embodiment of the present invention.
Fig. 2 is a flowchart illustrating an information encryption method according to another embodiment of the present invention.
Fig. 3 is a flowchart illustrating an information encryption method according to another embodiment of the present invention.
Fig. 4 is a flowchart illustrating an information encryption method according to another embodiment of the present invention.
Fig. 5 is a flowchart illustrating an information encryption method according to another embodiment of the present invention.
Fig. 6 is a flowchart illustrating an information encryption method according to another embodiment of the present invention.
Fig. 7 is a flowchart illustrating an information encryption method according to another embodiment of the present invention.
Fig. 8 is a schematic structural diagram of an information encryption apparatus according to an embodiment of the present invention.
DETAILED DESCRIPTION OF EMBODIMENT (S) OF INVENTION
The technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. It is to be understood that the embodiments described are only a few embodiments of the present invention, and not all embodiments. All other embodiments, which can be obtained by a person skilled in the art without any inventive step based on the embodiments of the present invention, shall fall within the scope of protection of the present invention.
Referring to fig. 1, a first embodiment of the present invention provides an information encryption method for automatically encrypting sensitive information or personal information in a system, which includes:
s101, judging whether the data is preset type data or not, wherein the preset type data comprises pure numbers or combination of numbers and letters.
Specifically, when the data to be judged is non-numeric data or non-numeric and letter combined data, it is indicated that the data is not sensitive private information such as an identification number, a telephone number or a bank card number, and therefore, the data does not need to be encrypted. When the data is pure numbers or data of a combination of numbers and letters, the data is considered to be sensitive information such as identification numbers, telephone numbers or bank card numbers, and the like, and encryption is possibly required. When the data to be judged is pure characters, such as Chinese or English, the data is regarded as common information and not sensitive information, and encryption is not needed.
S102, when the data is preset type data, judging whether the preset type data is data with preset length and specific arrangement.
Specifically, the preset length may be, but is not limited to, 11-bit digits, 15, 16, 17, or 19-bit digits, 18-bit digits, or a combination of 17-bit digits and 1-bit letters. When the preset type data has a preset length and a specific arrangement sequence, the preset type data is considered to be sensitive information such as an identification number, a telephone number or a bank card number and needs to be encrypted.
S103, when the preset type data is data with preset length and specific rehearsal, encrypting the preset type data with preset length and specific arrangement.
And when the preset type data is judged to have the preset length and the specific arrangement sequence, the preset type data is considered as sensitive information and is encrypted.
Referring to fig. 2, a second embodiment of the present invention provides an information encryption method, which includes:
s201, judging whether the data is preset type data or not, wherein the preset type comprises pure numbers.
Specifically, when the data to be judged is non-numeric data or non-numeric and letter combined data, it is indicated that the data is not sensitive private information such as an identification number, a telephone number or a bank card number, and therefore, the data does not need to be encrypted. When the data is pure digital data, the data is considered to be sensitive information such as identification number, telephone number or bank card number, and may need to be encrypted. When the data to be judged is pure characters, such as Chinese or English, the data is regarded as common information and not sensitive information, and encryption is not needed.
S202, judging whether the preset type data is first preset length data or not, wherein the first preset length is the digit of the telephone number.
If the predetermined type data is the data with the first predetermined length, it may be a personal contact address, such as a mobile phone number, and therefore, it may be sensitive information, and it may need to be encrypted. In an embodiment of the present invention, the first preset length data may be 11-bit numbers.
S203, if the preset type data is the first preset length data, determining whether the first three bits of the preset type data are the first specific arrangement.
Wherein, the first special arrangement refers to the special arrangement of the first three digits of the mobile phone number in China. For example: if the mobile phone number is a Chinese mobile phone number, the first specific arrangement is 134, 135, 136, 137, 138, 139, 147, 150, 151, 152, 157, 158, 159, 182, 187, 188; if the mobile phone number is the China Unicom mobile phone number, the first specific arrangement is 130, 131, 132, 155, 156, 185 and 186; if the number is a chinese telecom mobile phone number, the first specific arrangement is 133, 153, 180, 189.
Specifically, when the preset type data is the first preset length data, it is determined whether the first three digits of the first preset length data are the first three digits of the mobile phone number of the area, such as the number of the mobile phone in china, china unicom, or chinese telecom mobile phone number, if not, the first preset length data is not the sensitive information, and if so, the first preset length data is the sensitive information and needs to be encrypted.
S204, encrypting the preset type data with the first preset length and the first three bits of the preset type data with the first specific arrangement.
When the preset type data is data with a first preset length and the first three digits are arranged into a first specific arrangement, such as the first three digits of China Mobile, China Unicom or China telecom mobile phone number, the preset type data is encrypted.
Referring to fig. 3, a third embodiment of the present invention provides an information encryption method, which includes:
s301, judging whether the data is preset type data or not, wherein the preset type data comprises pure numbers or combination of numbers and letters.
For a detailed description, please refer to step S201 of the second embodiment of the present invention, which is not repeated herein.
S302, judging whether the preset type data is second preset length data or not, wherein the second preset length is the digit of the identity card number.
If the predetermined type data is the second predetermined length data, it may be the pin information, and therefore, it may be the sensitive information, and it may need to be encrypted. In an embodiment of the present invention, the second preset length is 18 bits, and specifically, may be 18-bit digits or a combination of 17-bit digits and 1-bit letters.
S303, if the preset type data is second preset length data, judging whether a seventh bit and an eighth bit of the second preset length preset type data are second specific arrangement.
Wherein, the second special arrangement is the arrangement order or number which is special for the seventh bit and the eighth bit of the current identity card number. When the preset type data is the second preset length data, it may be the ID number, and further confirmation is required. In the embodiment of the present invention, the second predetermined length is 18 bits, and the seventh bit and the eighth bit of the current identification number are the first two bits of the birth year of the individual, and can only be 19 or 20. If the seventh and eighth bits are neither 19 nor 20, the predetermined type of data is considered not to be an identification number and therefore not to be sensitive information and does not require encryption.
S304, encrypting the preset type data with the second preset length and the seventh bit and the eighth bit being the second specific arrangement.
And when the preset type data is second preset length data, and the seventh bit and the eighth bit are second specific arrangement, which indicates that the preset type data is sensitive information, encrypting the preset type data. Specifically, when the preset type data is 18-bit digits or a combination of 17-bit digits and 1-bit letters, and the seventh bit and the eighth bit are 19 or 20, the preset type data is encrypted.
Referring to fig. 4, a fourth embodiment of the present invention provides an information encryption method, which includes:
s401, judging whether the data is preset type data or not, wherein the preset type data comprises pure numbers or combination of numbers and letters.
For a detailed description, please refer to step S201 of the second embodiment of the present invention, which is not repeated herein.
S402, judging whether the preset type data is second preset length data or not, wherein the second preset length is the digit of the identity card number.
If the predetermined type data is the second predetermined length data, it may be the pin information, and therefore, it may be the sensitive information, and it may need to be encrypted. In an embodiment of the present invention, the second preset length is 18 bits, and specifically, may be 18-bit digits or a combination of 17-bit digits and 1-bit letters.
S403, if the preset type data is the second preset length data, determining whether the first bit to the sixth bit of the preset type data with the second preset length are the third specific permutation.
Wherein, the third special arrangement is the special arrangement of the first six digits of the identity card number. In some embodiments, the third specific arrangement is the first 6 fixed identification numbers of each region in China. Each region has its own fixed first 6 digits, for example, the identification numbers of Beijing regions can only be 110101, 110102, 110105, 110106, 110107, 110108, 110109, 110111, 110112, 110113, 110114, 110115, 110116, 110117, 110228 or 110229, and the Tianjin regions are 120101, 120102, 120103, 120104, 120105, 120106, 120110, 120111, 120112, 120113, 120114, 120115, 120116, 120221, 120223 or 120225.
When the predetermined type data is a second predetermined length data, such as 18-bit number or a combination of 17-bit number and 1-bit letter, it may be an id number, and further confirmation is required. When the front 6 digits are the first six digits of the inherent identity card number of each area in China, the preset type data is considered to be the identity card number and needs to be encrypted, otherwise, the preset type data is not the identity card information and does not need to be encrypted.
S404, encrypting the preset type data with the second preset length and the third specific arrangement of the first bit to the sixth bit.
When the preset type data is second preset length data such as 18-bit numbers or a combination of 17-bit numbers and 1-bit letters, and the first six bits are the first six bits of the identity card number in China, the preset type data is encrypted.
Referring to fig. 5, a fifth embodiment of the present invention provides an information encryption method, including:
s501, judging whether the data is preset type data or not, wherein the preset type data comprises pure numbers or combination of numbers and letters.
For a detailed description, please refer to step S201 of the second embodiment of the present invention, which is not repeated herein.
S502, judging whether the preset type data is second preset length data or not, wherein the second preset length is the digit of the identity card number.
If the predetermined type data is the second predetermined length data, it may be the pin information, and therefore, it may be the sensitive information, and it may need to be encrypted. In an embodiment of the present invention, the second preset length is 18 bits, and specifically, may be 18-bit digits or a combination of 17-bit digits and 1-bit letters.
S503, if the preset type data is the second preset length data, determining whether the 11 th bit to the 14 th bit of the preset type data with the second preset length are the fourth specific permutation.
Wherein, the fourth specific arrangement number refers to the arrangement from the 11 th bit to the 14 th bit of the ID number.
In some embodiments, the fourth particular permutation number indicates that 11 th and 12 th bits are one of 01, 02, 03, 04, 05, 06, 07, 08, 09, 10, 11, or 12, and 13 th and 14 th bits are one of 01, 02, 03, 04 … … 31.
Specifically, the 11 th to 14 th of the identification number are the date of birth, and if the date is the month and the date, the identification number is considered to be the identification number and needs to be encrypted, otherwise, the identification number does not need to be encrypted.
S504, encrypting the preset type data with the second preset length and the fourth specific arrangement from the 11 th bit to the 14 th bit.
Specifically, when the predetermined type data is the second predetermined length and the 11 th bit to the 14 th bit are the fourth specific arrangement, the predetermined type data is encrypted as the id number.
In one embodiment, when the predetermined type data is 18-bit number or a combination of 17-bit number and 1-bit letter, and the 11 th bit and the 12 th bit are one of 01, 02, 03, 04, 05, 06, 07, 08, 09, 10, 11 or 12, and the 13 th bit and the 14 th bit are one of 01, 02, 03, 04 … … 31. The preset type data is encrypted for the ID number.
Referring to fig. 6, a sixth embodiment of the present invention provides an information encryption method, including:
s601, judging whether the data is preset type data or not, wherein the preset type comprises pure numbers.
For a detailed description, please refer to step S201 of the second embodiment of the present invention, which is not repeated herein.
S602, judging whether the preset type data is third preset length data or not, wherein the third preset length is the digit of the bank card.
In particular, the third preset length may be 15, 16, 17 or 19 digits. The bank card has basically 15, 16, 17 or 19 digits, most debit cards have 19 digits, and only the bank is exceptional, such as 16 digits for a tenderer bank and 17 digits for a transit bank. Most credit cards have 16 digits. Very few bank card numbers are 15 digits. If the predetermined type of data is 15, 16, 17 or 19 digits, it may be a bank card number, and thus, may be sensitive information, which may need to be encrypted.
S603, if the preset type data is third preset length data; judging whether the first six bits of the preset type data are in a fifth specific arrangement.
The fifth specific arrangement is a bank card issuing identification code (BIN), each bank has different card types and different issuing identification codes, for example, the card beginning with 6 is a union pay card, the card beginning with 4 is a card carrying a Visa flag, the card beginning with 5 is a card carrying a Master, and the card beginning with 3 is a card carrying a JCB flag. As another example, a tenderer bank, a card with a unionpay logo starts with 62258, a logo with Visa starts with 4392, a card with a Master logo starts with 5186, and a card with JCB starts with 3568. The China construction Bank VISA dragon card debit card starts with 436742, the China construction Bank VISA dragon card credit card starts with 436745, and the China construction Bank Paoyong card debit card starts with 622280; the transit bank VISA plain card starts with 458123, the transit bank MC credit card plain card starts with 521899, and the transit bank Pacific card debit card starts with 622260; the Shanghai Bank VISA gold card starts at 402674, and the Shanghai Bank debit card starts at 622892; the china postal savings green debit card starts with 622188; the beijing bank beijing card debit card is opened at 602969, and so on.
Because the bank cards of different banks have specific first six digits, if the bank cards have preset type data with a third preset length of 15, 16, 17 or 19 digits, and the first six digits are specific first six digits of a certain bank, the preset type data is considered as a bank card number and needs to be encrypted; otherwise, no encryption is required.
S604, encrypting the preset type data with the third preset length and the first six bits of the fifth specific arrangement.
When the preset type data is a third preset length, such as 15, 16, 17 or 19 digits, and the first six digits are a fifth specific arrangement, the preset type data is considered as a bank card number and needs to be encrypted.
Referring to fig. 7, a seventh embodiment of the present invention provides an information encryption method, which includes:
s701, judging whether the data is preset type data or not, wherein the preset type comprises pure numbers.
For a detailed description, please refer to step S201 of the second embodiment of the present invention, which is not repeated herein.
S702, judging whether the preset type data is third preset length data or not, wherein the third preset length is the digit of the bank card.
In particular, the third preset length may be 15, 16, 17 or 19 digits. The bank card has basically 15, 16, 17 or 19 digits, most debit cards have 19 digits, and only the bank is exceptional, such as 16 digits for a tenderer bank and 17 digits for a transit bank. Most credit cards have 16 digits. Very few bank card numbers are 15 digits. If the predetermined type of data is 15, 16, 17 or 19 digits, it may be a bank card number, and thus, may be sensitive information, which may need to be encrypted.
S703, if the preset type data is third preset length data; and performing information matching on the preset type data in a database.
When the preset type data is third preset length data such as 15, 16, 17 or 19 digits, matching the data with a public bank card number database, and if a number matched with the preset type data exists in the database, determining that the data is a bank card number and needs to be encrypted; otherwise, no encryption is required.
S704, encrypting the preset type data which has the third preset length and can be matched in the database.
When the preset type data is third preset length data, such as 15, 16, 17 or 19 digits, and can be matched in the database, the preset type data is a bank card number and needs to be encrypted.
Referring to fig. 8, the present invention further provides an information encryption apparatus 200, which includes:
a data type determining unit 210, configured to determine whether the data is a preset type data, where the preset type includes a pure number or a combination of a number and a letter;
a data length determining unit 220, configured to determine whether the data of the preset type is data with a preset length and a specific arrangement when the data is data of a preset type;
the encryption unit 230 is configured to encrypt the preset type data having the preset length and the specific arrangement when the preset type data is data having the preset length and the specific arrangement.
For a detailed description, please refer to the information encryption method of the first embodiment, which is not described herein again.
In some embodiments, the data length determining unit 220 is specifically configured to determine whether the preset type data is first preset length data, where the first preset length is a digit of a phone number; if the preset type data is first preset length data, judging whether the first three bits of the preset type data are in a first specific arrangement;
the encryption unit 230 is specifically configured to encrypt the preset type data having the first preset length and the first three bits being the first specific arrangement.
For a detailed description, refer to the above embodiments, which are not repeated herein.
In some embodiments, the data length determining unit 220 is specifically configured to determine whether the preset type data is 18-bit digits or a combination of 17-bit digits and 1-bit letters;
if the preset type data is 18-bit numbers or a combination of 17-bit numbers and 1-bit letters, judging whether a seventh bit and an eighth bit of the preset type data of the combination of 18-bit numbers or 17-bit numbers and 1-bit letters are second specific permutation numbers;
the encryption unit 230 is specifically configured to encrypt the preset type data having 18-bit digits or a combination of 17-bit digits and 1-bit letters, and the seventh bit and the eighth bit are the second specific permutation number.
For a detailed description, refer to the above embodiments, which are not repeated herein.
In some embodiments, the data length determining unit 220 is specifically configured to determine whether the preset type data is second preset length data, where the second preset length is a digit of the identity card number;
if the preset type data is second preset length data, judging whether the first bit to the sixth bit of the second preset length preset type data are in a third specific arrangement;
the encryption unit 230 is specifically configured to encrypt the preset type data having the second preset length and having the first bit to the sixth bit of the third specific arrangement.
For a detailed description, refer to the above embodiments, which are not repeated herein.
In some embodiments, the data length determining unit 220 is specifically configured to determine whether the preset type data is second preset length data, where the second preset length is a digit of the identity card number;
if the preset type data is second preset length data, judging whether 11 th bit to 14 th bit of the second preset length preset type data are in a fourth specific arrangement;
the encryption unit 230 is specifically configured to encrypt the preset type data having the second preset length and having the fourth specific arrangement from the 11 th bit to the 14 th bit.
For a detailed description, refer to the above embodiments, which are not repeated herein.
In some embodiments, the data length determining unit 220 is specifically configured to determine whether the preset type data is third preset length data, where the third preset length is a digit number of a bank card;
if the preset type data is third preset length data; judging whether the first six bits of the preset type data are in a fifth specific arrangement.
The encryption unit 230 is specifically configured to encrypt the preset type data having the third preset length and the first six bits of the fifth specific arrangement.
For a detailed description, refer to the above embodiments, which are not repeated herein.
In some embodiments, the data length determining unit 220 is specifically configured to determine whether the preset type data is third preset length data, where the third preset length is a digit number of a bank card;
if the preset type data is third preset length data; and performing information matching on the preset type data in a database.
The encryption unit 230 is specifically configured to encrypt the preset type data that has the third preset length and can be matched in the database.
The present invention also provides a computer-readable storage medium storing computer-executable program code for causing a computer to execute the information encryption method according to the embodiment of the present invention.
While the invention has been described with reference to specific embodiments, the invention is not limited thereto, and various equivalent modifications and substitutions can be easily made by those skilled in the art within the technical scope of the invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (10)

1. An information encryption method, comprising:
judging whether the data is preset type data or not, wherein the preset type comprises pure numbers or combination of numbers and letters;
when the data is preset type data, judging whether the preset type data is data with a preset length and a specific arrangement;
and when the preset type data is data with a preset length and a specific arrangement, encrypting the preset type data with the preset length and the specific arrangement.
2. The information encryption method according to claim 1,
the determining whether the preset type data is data with a preset length and a specific arrangement specifically includes:
judging whether the preset type data is first preset length data or not, wherein the first preset length is the digit of a telephone number;
if the preset type data is first preset length data, judging whether the first three bits of the preset type data are in a first specific arrangement;
the encrypting the preset type data with preset length and specific arrangement specifically includes: and encrypting the preset type data with the first preset length data and the first three bits of the preset type data with the first specific arrangement.
3. The information encryption method according to claim 1,
the determining whether the preset type data is data with a preset length and a specific arrangement specifically includes:
judging whether the preset type data is second preset length data or not, wherein the second preset length is the digit of the identity card number;
if the preset type data is second preset length data, judging whether a seventh bit and an eighth bit of the second preset length preset type data are in a second specific arrangement;
the encrypting the preset type data with preset length and specific arrangement specifically includes: and encrypting the preset type data with the second preset length and the seventh bit and the eighth bit of the second special arrangement.
4. The information encryption method according to claim 1,
the determining whether the preset type data is data with a preset length and a specific arrangement specifically includes:
judging whether the preset type data is second preset length data or not, wherein the second preset length is the digit of the identity card number;
if the preset type data is second preset length data, judging whether the first bit to the sixth bit of the second preset length preset type data are in a third specific arrangement;
the encrypting the preset type data with preset length and specific arrangement specifically includes: and encrypting the preset type data with the second preset length and the third specific arrangement of the first bit to the sixth bit.
5. The information encryption method according to claim 1,
the determining whether the preset type data is data with a preset length and a specific arrangement specifically includes:
judging whether the preset type data is second preset length data or not, wherein the second preset length is the digit of the identity card number;
if the preset type data is second preset length data, judging whether 11 th bit to 14 th bit of the second preset length preset type data are in a fourth specific arrangement;
the encrypting the preset type data with preset length and specific arrangement specifically includes: and encrypting the preset type data with the second preset length and the 11 th bit to the 14 th bit of the fourth specific arrangement.
6. The information encryption method according to claim 1,
the determining whether the preset type data is data with a preset length and a specific arrangement specifically includes:
judging whether the preset type data is third preset length data or not, wherein the third preset length is the digit of the bank card;
if the preset type data is third preset length data; judging whether the first six bits of the preset type data are in a fifth specific arrangement or not;
the encrypting the preset type data with preset length and specific arrangement specifically includes: and encrypting the preset type data with the third preset length and the first six bits of the fifth specific arrangement.
7. The information encryption method according to claim 1,
the determining whether the preset type data is data with a preset length and a specific arrangement specifically includes:
judging whether the preset type data is third preset length data or not, wherein the third preset length is the digit of the bank card;
if the preset type data is third preset length data; performing information matching on the preset type data in a database;
the encrypting the data with the preset length and the specific arrangement specifically comprises: and encrypting the preset type data which has the third preset length and can be matched in the database.
8. An information encryption apparatus, comprising:
the data type judging unit is used for judging whether the data is preset type data or not, and the preset type comprises pure numbers or combination of numbers and letters;
the data length judging unit is used for judging whether the preset type data is preset length data with specific arrangement when the data is preset type data;
and the encryption unit is used for encrypting the preset type data with the preset length and the specific arrangement when the preset type data is the data with the preset length and the specific arrangement.
9. The information encryption apparatus according to claim 8, comprising:
the data length judging unit is specifically configured to judge whether the preset type data is first preset length data, where the first preset length is a digit of a telephone number;
if the preset type data is first preset length data, judging whether the first three bits of the preset type data are first specific arrangement numbers or not;
the encryption unit is specifically configured to encrypt the preset type data having the first preset length and the first three bits being the first specific arrangement.
10. A computer-readable storage medium storing computer-executable program code for causing a computer to execute the information encryption method according to any one of claims 1 to 8.
CN202010310260.4A 2020-04-20 2020-04-20 Information encryption method, information encryption device and computer readable storage medium Pending CN111460484A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010310260.4A CN111460484A (en) 2020-04-20 2020-04-20 Information encryption method, information encryption device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010310260.4A CN111460484A (en) 2020-04-20 2020-04-20 Information encryption method, information encryption device and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN111460484A true CN111460484A (en) 2020-07-28

Family

ID=71684620

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010310260.4A Pending CN111460484A (en) 2020-04-20 2020-04-20 Information encryption method, information encryption device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN111460484A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103916233A (en) * 2014-03-28 2014-07-09 小米科技有限责任公司 Information encryption method and device
CN108810233A (en) * 2018-07-10 2018-11-13 郑友缘 A kind of recognition methods of malice incoming call and device
CN108897525A (en) * 2018-05-30 2018-11-27 平安普惠企业管理有限公司 Test data generating method, device, computer equipment and storage medium
CN109246130A (en) * 2018-10-17 2019-01-18 深圳壹账通智能科技有限公司 Data ciphering method, device, computer equipment and storage medium
CN110096859A (en) * 2019-03-14 2019-08-06 深圳壹账通智能科技有限公司 User authentication method, device, computer equipment and computer readable storage medium
CN110166644A (en) * 2019-04-15 2019-08-23 中国平安人寿保险股份有限公司 Data processing method, device, computer equipment and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103916233A (en) * 2014-03-28 2014-07-09 小米科技有限责任公司 Information encryption method and device
CN108897525A (en) * 2018-05-30 2018-11-27 平安普惠企业管理有限公司 Test data generating method, device, computer equipment and storage medium
CN108810233A (en) * 2018-07-10 2018-11-13 郑友缘 A kind of recognition methods of malice incoming call and device
CN109246130A (en) * 2018-10-17 2019-01-18 深圳壹账通智能科技有限公司 Data ciphering method, device, computer equipment and storage medium
CN110096859A (en) * 2019-03-14 2019-08-06 深圳壹账通智能科技有限公司 User authentication method, device, computer equipment and computer readable storage medium
CN110166644A (en) * 2019-04-15 2019-08-23 中国平安人寿保险股份有限公司 Data processing method, device, computer equipment and storage medium

Similar Documents

Publication Publication Date Title
CN110457957B (en) Information processing method and device of electronic bill, electronic equipment and medium
EP0166541B1 (en) Communications network using an enciphering and deciphering device
CN110008744B (en) Data desensitization method and related apparatus
CN101281581A (en) Method for checking whether contents of paper file is distorted or not
CN107516534A (en) A kind of comparison method of voice messaging, device and terminal device
CN103119973A (en) Method, device and system for controlling account management operation
CN105554745A (en) Information management method and system
CN103413104B (en) A kind of disposal route of transaction sensitive information and treating apparatus
CN112215313A (en) Logistics information loading device, generation device and receiving device
CN116805912B (en) College educational administration system data transmission and storage method based on angle mapping
CN110175318A (en) A kind of settlement of insurance claim attachment generation method and device
CN111460484A (en) Information encryption method, information encryption device and computer readable storage medium
CN102316428A (en) Method for communication between mobile application client and intelligent card and device
CN103020506B (en) A kind of combination is taken pictures and the Key equipment of bar code identification technology and method
CN109992984A (en) A kind of file identification method and equipment based on two dimensional code
CN114614972A (en) Data alignment method, system, electronic device and storage medium
CN114707048A (en) Sensitive information detection method and device, electronic equipment and computer readable storage medium
CN103235946A (en) Divulgence-preventive processing method for artificially identifying information of business cards
CN113472686A (en) Information identification method, device, equipment and storage medium
CN107563242A (en) ID card information check device and system
CN113127535B (en) Data processing method and device based on block chain and electronic equipment
CN110943982A (en) Document data encryption method and device, electronic equipment and storage medium
US10664617B2 (en) Embedding PINs into identification and credit card numbers to encrypt user's cards
CN110021106B (en) Bill identification method and equipment based on two-dimensional code
CN111339769A (en) Information display method and device and terminal equipment

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