Invention content
Shortcoming present in regarding to the issue above, the present invention provide one kind when being read out to the Quick Response Code, can
According to prompt message to download and install dedicated Quick Response Code APP identification softwares, to parse with corresponding to the Quick Response Code
Quick Response Code, generation method and the recognition methods with Quick Response Code software installation information of information.
To achieve the above object, the present invention provides a kind of Quick Response Code with Quick Response Code software installation information, the Quick Response Code
Include cleartext information part when generating, by the ciphertext message part and setting of cryptographic operation in cleartext information part and
Separator between ciphertext message part;
The cleartext information part is the download address information of the APP identification softwares for parsing the Quick Response Code;
The ciphertext message part includes that the encryption formed after cryptographic operation, by identical one or more characters is believed
Breath.
Above-mentioned a kind of Quick Response Code with Quick Response Code software installation information, wherein the cleartext information part is visible
Character or character string information.
Above-mentioned a kind of Quick Response Code with Quick Response Code software installation information, wherein the encryption information is by encrypting
Binary system, octal system, the decimal system or hexadecimal text-string information are converted into before operation.
Above-mentioned a kind of Quick Response Code with Quick Response Code software installation information, wherein the ciphertext message part further includes
Application range identifier information indicates that information, the application range identifier information are successively set on the encryption with cipher mode
Mode indicates the front side of information and the encryption information;The application range identifier information is used to indicate the application of the Quick Response Code
Range;The cipher mode instruction information is used to indicate the cipher mode of the encryption information.
Above-mentioned a kind of Quick Response Code with Quick Response Code software installation information, wherein the cipher mode includes des encryption
Mode, 3DES encryption mode, TEA cipher modes, XTEA cipher modes, RC4 cipher modes, PANAMA cipher modes, Twofish
Cipher mode, CAST-128 cipher modes, CAST-256 cipher modes, md5 encryption mode and enigma cipher modes.
The present invention also provides a kind of generation methods of the Quick Response Code with Quick Response Code software installation information, including following step
Suddenly:
S1, the application range that generated Quick Response Code is set in Quick Response Code generates software;
S2, input needs the encrypted information content in ciphertext message input interface, and the information content is converted to accordingly
The character string information of system;
S3, system type and present system time according to character string information, to call corresponding cipher mode to character
String information is encrypted, to form encryption information;
S4, the label of application range identifier information, the label of cipher mode command information and encryption information are merged into
Ciphertext message part;
S5, it is imported after merging cleartext information part with ciphertext message part in Quick Response Code generation interface, with generation and its
Corresponding Quick Response Code.
The generation method of above-mentioned Quick Response Code, wherein in step s 2, described information content quilt before by cryptographic operation
Be converted to binary system, octal system, the decimal system or hexadecimal text-string information.
The generation method of above-mentioned Quick Response Code, wherein in step s3, including following sub-step:
S31, according to the system type of text-string information to determine the cipher mode group of cipher mode;
S32, basis are implanted with the current display time that Quick Response Code generates the operating system at interface, so that cipher mode calls
Pointer chooses cipher mode in cipher mode group;
S32, text-string information pass through the cryptographic operation of cipher mode, to form encryption information.
The generation method of above-mentioned Quick Response Code, wherein cipher mode includes des encryption mode, 3DES encryption mode, TEA
Cipher mode, XTEA cipher modes, RC4 cipher modes, PANAMA cipher modes, Twofish cipher modes, CAST-128 encryptions
Mode, CAST-256 cipher modes, md5 encryption mode and enigma cipher modes.
The present invention also provides a kind of recognition methods of the Quick Response Code with Quick Response Code software installation information, including following step
Suddenly:
Quick Response Code is scanned by Quick Response Code APP identification softwares, if current two-dimension APP identification softwares can not parse
Ciphertext message part in Quick Response Code then prompts user according to the plaintext of Quick Response Code in the interface of Quick Response Code APP identification softwares
Address information in message part, the APP identification softwares of the download parsing Quick Response Code;
If current two-dimension APP identification softwares can parse the ciphertext message part in Quick Response Code, know in Quick Response Code APP
The encryption information in ciphertext message part is shown in the interface of other software.
Compared with prior art, the present invention has the following advantages:
The cleartext information part that Quick Response Code provided by the invention includes, can prompt user to download and install for two
The Quick Response Code APP identification softwares that ciphertext message part in dimension code is parsed, it is corresponding with ciphertext message part to obtain
The information content can prevent other Quick Response Codes APP identification softwares of the content in the Quick Response Code in the present invention from being solved in this manner
Analysis, avoids that there is a phenomenon where information leakages to occur.
Specific implementation mode
As shown in Figure 1, Quick Response Code provided by the invention includes cleartext information part, by the dark of cryptographic operation when generating
Literary message part and the separator being arranged between cleartext information part and ciphertext message part.
Cleartext information part is visible character or character string information, and cleartext information part is for parsing the Quick Response Code
The download address information of APP identification softwares is used for when any Quick Response Code APP identification softwares are scanned the Quick Response Code
The APP identification softwares of dark text can be parsed by downloading installation.
Ciphertext message part includes the application range identifier information being arranged in order from front to back, cipher mode instruction information
With encryption information.
The label of application range identifier information is used to indicate the application range of the Quick Response Code, wherein application range identifies
Symbol information is the identifier that is made of 0 or multiple characters.
The label of cipher mode instruction information is used to indicate the cipher mode of the encryption information, wherein cipher mode indicates
Information can be formed with 2 numbers.Cipher mode includes that des encryption mode, 3DES encryption mode, TEA cipher modes, XTEA add
Close mode, RC4 cipher modes, PANAMA cipher modes, Twofish cipher modes, CAST-128 cipher modes, CAST-256 add
Close mode, md5 encryption mode and enigma cipher modes.
Encryption information is converted into binary system, octal system, the decimal system or hexadecimal text before by cryptographic operation
Character string information.
Text-string information is made of after completing cryptographic operation by cipher mode identical one or more characters
Encryption information.
Separator can be used except " ", " // ", ":" other than any symbol, for by cleartext information part and ciphertext message
Part distinguishes.
The present invention also provides a kind of generation methods of the Quick Response Code with Quick Response Code software installation information, including following step
Suddenly:
S1, the application range that generated Quick Response Code is set in Quick Response Code generates software;
The application range of Quick Response Code is indicated by the label of application range identifier information, wherein application range identifies
Accord with information marked as the identifier being made of 0 or multiple characters.
S2, input needs the encrypted information content in ciphertext message input interface, and the information content is converted to accordingly
The character string information of system;
Wherein, the information content is converted into binary system, octal system, the decimal system or hexadecimal before by cryptographic operation
Text-string information.
S3, system type and present system time according to character string information, to call corresponding cipher mode to character
String information is encrypted, to form encryption information;
Wherein, cipher mode of the present invention include des encryption mode, 3DES encryption mode, TEA cipher modes,
XTEA cipher modes, RC4 cipher modes, PANAMA cipher modes, Twofish cipher modes, CAST-128 cipher modes,
CAST-256 cipher modes, md5 encryption mode and enigma cipher modes.
In step s3, including following sub-step:
S31, according to the system type of text-string information to determine the cipher mode group of cipher mode;
Wherein, binary system, octal system, the decimal system or 16 can be converted into before by cryptographic operation due to the information content
Therefore above-mentioned 11 kinds of cipher modes are divided into 4 cipher mode groups by the text-string information of system.
Wherein, cipher mode group corresponding with Binary Text character string information includes that des encryption mode, 3DES add
Close mode, RC4 cipher modes;
Cipher mode group corresponding with octal system text-string information includes TEA cipher modes, the encryption sides XTEA
Formula, PANAMA cipher modes;
Cipher mode group corresponding with decimal system text-string information includes CAST-128 cipher modes, CAST-
256 cipher modes, md5 encryption mode;
Cipher mode group corresponding with hexadecimal text-string information include Twofish cipher modes with
Enigma cipher modes.
S32, basis are implanted with the current display time that Quick Response Code generates the operating system at interface, so that cipher mode calls
Pointer chooses cipher mode in cipher mode group;
Wherein, before step 32 implementation, it is also necessary to proceed as follows step:
It was divided into Duan Yusan time interval section of two time intervals by 00~59 second.
Wherein, when being divided into two time interval sections by 00~59 second, first time interval section is 00~29 second, the
Two time interval sections are 30~59 seconds;
Wherein, when being divided into three time interval sections by 00~59 second, first time interval section is 00~19 second, the
Two time interval sections are 20~39 seconds, and third time interval section is 40~59 seconds.
Binary Text character string information, octal system text-string information and decimal system text-string information are being encrypted
Shi Jun is to use three time interval sections.
In Binary Text character string information, des encryption mode and first time zone in three time interval sections
Between section is mutually bound, 3DES encryption mode is mutually bound with second time interval section in three time interval sections, RC4 cipher modes
It is mutually bound with the third time interval section in three time interval sections.
In octal system text-string information, first time zone in TEA cipher modes and three time interval sections
Between section is mutually bound, XTEA cipher modes are mutually bound with second time interval section in three time interval sections, PANAMA encryption
Mode is mutually bound with the third time interval section in three time interval sections.
In decimal system text-string information, when second in CAST-128 cipher modes and three time interval sections
Between segment is mutually bound, CAST-256 cipher modes are mutually bound with second time interval section in three time interval sections, MD5
Cipher mode is mutually bound with the third time interval section in three time interval sections.
Hexadecimal text-string information uses two time interval sections in encryption.
In hexadecimal text-string information, first in Twofish cipher modes and two time interval sections
Time interval section is mutually bound, enigma cipher modes are mutually bound with second time interval section in two time interval sections.
S32, text-string information pass through the cryptographic operation of cipher mode, to form encryption information.
Wherein, according to the system type of text-string information with selected cipher mode group and according to current system
Time in cipher mode group select cipher mode corresponding with system time after, can to text-string information into
Row cryptographic operation, to form the encryption information being made of identical one or more characters.
After completing cryptographic operation, extract the cipher mode command information of the cipher mode for indicating the encryption information
Label.
S4, the label of application range identifier information, the label of cipher mode command information and encryption information are merged into
Ciphertext message part;
Wherein, ciphertext message part is divided into the label of application range identifier information from front to back, cipher mode refers to
Enable the label and encryption information of information.
S5, it is imported after merging cleartext information part with ciphertext message part in Quick Response Code generation interface, with generation and its
Corresponding Quick Response Code.
Wherein, cleartext information part be visible character or character string information, cleartext information part be for parse this two
The download address information for tieing up the APP identification softwares of code, when any Quick Response Code APP identification softwares are scanned the Quick Response Code
When, it can parse the APP identification softwares of dark text for downloading installation.
In addition, it is existing two dimension that the cleartext information part after merging is partially converted to the mode of Quick Response Code with ciphertext message
The conversion regime of code.
The present invention also provides a kind of recognition methods of the Quick Response Code with Quick Response Code software installation information, including following step
Suddenly:
Quick Response Code is scanned by Quick Response Code APP identification softwares, if current two-dimension APP identification softwares can not parse
Ciphertext message part in Quick Response Code then prompts user according to the plaintext of Quick Response Code in the interface of Quick Response Code APP identification softwares
Address information in message part, the APP identification softwares of the download parsing Quick Response Code;
If current two-dimension APP identification softwares can parse the ciphertext message part in Quick Response Code, know in Quick Response Code APP
The encryption information in ciphertext message part is shown in the interface of other software.
The above method is as follows:
Sa, Quick Response Code is scanned by Quick Response Code APP identification softwares, Quick Response Code APP identification softwares are to Quick Response Code
In position sensing figure be detected after, to being parsed to the information for being included in Quick Response Code;
Sb, Quick Response Code APP identification softwares first parse the ciphertext message part in Quick Response Code, if current two-dimension
APP identification softwares can not parse the ciphertext message part in Quick Response Code, then prompt to use in the interface of Quick Response Code APP identification softwares
Family is according to the address information in the cleartext information part of Quick Response Code, the APP identification softwares of the download parsing Quick Response Code;
If current two-dimension APP identification softwares can parse the ciphertext message part in Quick Response Code, know in Quick Response Code APP
The encryption information in ciphertext message part is shown in the interface of other software.
Only as described above, only presently preferred embodiments of the present invention, professional who are familiar with this art such as.
After the technological means for understanding the present invention, natural energy is changed under the teachings of the present invention according to actual needs.Therefore all
According to variation and modification on an equal basis made by scope of the present invention patent, once should still remain within the scope of the patent.