CN106301775A - A kind of QR code encryption method based on RSA Algorithm - Google Patents
A kind of QR code encryption method based on RSA Algorithm Download PDFInfo
- Publication number
- CN106301775A CN106301775A CN201610589002.8A CN201610589002A CN106301775A CN 106301775 A CN106301775 A CN 106301775A CN 201610589002 A CN201610589002 A CN 201610589002A CN 106301775 A CN106301775 A CN 106301775A
- Authority
- CN
- China
- Prior art keywords
- encryption
- code
- information
- rsa algorithm
- ciphertext
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L9/00—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
- H04L9/30—Public key, i.e. encryption algorithm being computationally infeasible to invert or user's encryption keys not requiring secrecy
- H04L9/3006—Public key, i.e. encryption algorithm being computationally infeasible to invert or user's encryption keys not requiring secrecy underlying computational problems or public-key parameters
- H04L9/302—Public key, i.e. encryption algorithm being computationally infeasible to invert or user's encryption keys not requiring secrecy underlying computational problems or public-key parameters involving the integer factorization problem, e.g. RSA or quadratic sieve [QS] schemes
Landscapes
- Engineering & Computer Science (AREA)
- Computing Systems (AREA)
- Theoretical Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Storage Device Security (AREA)
Abstract
The invention discloses a kind of QR code encryption method based on RSA Algorithm.Needing encryption for important information and encrypted content safety is high and the demand such as easy decoding, the present invention uses RSA Algorithm to combine with QR coding and decoding technology.User can use different encryption levels to be encrypted information according to demand.RSA Algorithm is a kind of asymmetrical AES, it is ensured that encryption and decryption key efficiently separates, it is ensured that the safety of encryption.The present invention can be used for the every field such as review of important certificate certificate false proof, bill anti-counterfeit and article, meets the demand of different field user profile encryption.
Description
[technical field]
The invention mainly relates to technological incorporation based on RSA Algorithm Yu QR code, belong to the encryption identification technology neck of QR code
Territory, present invention can apply to important certificate certificate false proof, the every field such as bill, article are reviewed, logistics, and prospect of the application is the widest
General.
[background technology]
Along with developing rapidly of science and technology, intelligent mobile terminal is widely used, and the application of smart mobile phone is more
Coming the most extensive, the application of the QR code being simultaneously based on android system and wechat technology is the most quite varied.Smart mobile phone can either
Interactive device as information, it is also possible to become the identification equipment of QR code.QR code has obtained extensively in daily life
General application, becomes people and obtains the LnkTools of information, and user uses smart mobile phone just can obtain hidden to the scanning of specific QR code
The information contained.Owing to QR code has storage, data volume is big, error correction is strong and the advantage such as easy to identify, and intelligent mobile phone terminal can simultaneously
The development of QR code it has been also greatly facilitate as a kind of QR code identification equipment.Therefore, QR code be widely used in finance, logistics and
The every field such as traffic.
For a long time, fake and inferior commodities jeopardize the vital interests of business and consumer, drastically influence the warp of country
Ji development.In order to better adapt to the fast development of economic society, preferably solve enterprises and institutions' Information Communication safety,
Reliability and trackability, improve safety and the standardization of information management further, simultaneously as most enterprise is at its commodity
During circulation, need to review commodity with false proof.Country and enterprise will spend substantial amounts of manpower and financial resources every year
Crack down on counterfeit goods for false proof.But, be limited by anti-counterfeiting technology, false proof mode single, ordinary consumer lacks the factor such as false proof instrument,
Antifalse effect is undesirable.And the appearance of QR Quick Response Code compensate for this shortcoming just, it has multiple anti-fake characteristic, therefore has
Extremely strong security and antiforge purpose performance.
A kind of QR false proof traceability system of code encryption method based on RSA Algorithm uses RSA Algorithm encryption QR code technology to producing
Product identify, and by Quick Response Code printing or labeling on product is packed, user only need to be carried out by the Quick Response Code cell phone software specified
Solve code check, i.e. can verify that authenticity of products, it is thus achieved that detailed information.Quick Response Code can store abundant product information, by encryption
Being difficult to be replicated and usurp, product information is issued from official of enterprise, and inquiry channel is regular, professional, it is achieved that Anti-counterfeiting of Product
High efficiency.
Greatly developing of technology of Internet of things, to the false proof tracing management of enterprise product quality, it is provided that a broader pipe
Platform.User reviews merchandise news, by two-dimension code anti-counterfeit based on Internet of Things by smart mobile phone scanning Quick Response Code identification
Application, chops the circulating pathway of fake products technically off, based on the QR Quick Response Code encryption anti-counterfeiting trace-back technique on the basis of Internet of Things, and will
Become strong " weapon " hitting counterfeit and shoddy goods, reviewing the defective product flow direction.
At present, also there is no the identification system of a kind of rsa encryption QR code with such high security, therefore, master of the present invention
For problem above, QR code identification system is proposed improvement project and recognition methods.
[summary of the invention]
The present invention is primarily directed to user to be needed the encryption of QR digital content and requires have high secrecy effect, it is proposed that
The identification system of a kind of QR code encryption method based on RSA Algorithm and recognition methods.
The identification system of a kind of QR code encryption method based on RSA Algorithm mainly includes that cleartext information encryption produces QR code figure
Picture, the collecting device of QR code image and the client deciphering of rsa encryption QR code based on android system identify three parts.Bright
The encryption part of literary composition information mainly uses and utilizes private key that cleartext information encryption is generated QR code image, the image acquisition of QR code hard
Part equipment, specifically includes the parts compositions such as pcb board, camera lens, holder and light filter, DSP (CCD uses), sensor.Image acquisition
By camera lens, projecting on sensor by the optical imagery of generation, then optical imagery is converted into the signal of telecommunication, signal of telecommunication warp again
Crossing analog digital conversion and become digital signal, digital signal is through DSP processed, then is sent in cell phone processor process,
It is ultimately converted to the image seen on mobile device display, the image collected is carried out pretreatment, utilize decipherment algorithm to obtain
Effective information in the QR image that must gather., the client deciphering identification division of rsa encryption QR code based on android system
PKI is predominantly used the information of the collection of the photographic head of smart mobile phone to be decrypted identification and is shown to user.
A kind of method utilizing RSA Algorithm encryption to produce QR code image for cleartext information, as shown in flow chart 1.
Client utilizes smart mobile phone identification rsa encryption QR code image module part based on android system: be responsible for knowledge
The QR code of not overall rsa encryption, after the photographic head i.e. QR code image capture device of smart mobile phone collects QR code image, first
Through QR code Image semantic classification, obtaining decoding information through the decoding of QR code again after pretreatment, when obtaining QR code decoding information, RSA adds
According to pre-defined rule, the identification module of close QR code then judges that this QR code is as encryption mode, if it is determined that be encryption mode, then will translate
Code information transfers to rsa encryption QR code identification module to process, and carries out overall deciphering, thus obtains cleartext information.
[advantages of the present invention and good effect]
Compared with prior art, the invention have the advantages that and good effect:
By using rsa encryption QR code technology, can meet the user's high requirement to secure content, encryption safe can
Lean on.Additionally, user is without extra hardware identification equipment, user only needs to use the intelligence being provided with dedicated scan client
Mobile phone, scanning rsa encryption QR code image can intelligent recognition coding information.Realize low cost, it is not necessary to buy specialized hardware scanning
Equipment.
[accompanying drawing explanation]
Fig. 1 is the encipher-decipher method flow chart of a kind of QR code based on RSA Algorithm.
[detailed description of the invention]
For making embodiment of the present invention state apparent with meaning advantage, below in conjunction with hereinafter accompanying drawing, to this
Bright it is described in more detail.
The present invention designs the identification system of a kind of QR code encryption method based on RSA Algorithm and mainly includes adopting of QR code image
The client deciphering of collection equipment and RSA based on android system deciphering QR code identifies two parts.The image acquisition of QR code uses
Hardware component devices based on Android smartphone photographic head, the client deciphering of rsa encryption QR code based on android system
Identification division predominantly uses PKI the information of the collection of the photographic head of smart mobile phone is decrypted identification and is shown to use
Person.
Fig. 1 shows the present invention a kind of QR code encryption Method And Principle block diagram based on RSA Algorithm.
As it is shown in figure 1, the present invention proposes a kind of QR code encryption method based on RSA Algorithm, user obtains as required
Cleartext information, if Choice encryption pattern, utilizes private key to be encrypted information, it is thus achieved that cipher-text information.Ciphertext letter will be obtained
Breath generates QR image, completes the QR code that the encryption of information is corresponding with generation.
As it is shown in figure 1, the present invention is as follows to the QR code processing procedure after encryption:
First pass around QR code Image semantic classification, after pretreatment, obtain decoding information through the decoding of QR code again, translate when obtaining QR code
Code information, the identification module of rsa encryption QR code then according to pre-defined rule judge this QR code whether as encryption mode, if it is determined that be whole
Body encryption mode, then hand over rsa encryption QR code identification module to process by decoding information, carries out overall deciphering, thus obtains letter in plain text
Breath.
1, QR code image is obtained by the hardware composition i.e. QR code image capture device collection of Android mobile phone photographic head;
2, need through Image semantic classification after getting QR code image, specifically include that gray processing, medium filtering and two-value
Change, the location of followed by QR code image, edge extracting, correction QR code image etc.;
3, decoding information is obtained through the decoding of QR code again after pretreatment;
4, when obtaining QR code decoding information, according to pre-defined rule, the identification module of rsa encryption QR code then judges that this QR code is
No have employed encryption mode, if it is determined that be overall encryption mode, then decoding information is transferred at rsa encryption QR code identification module
Reason, carries out overall deciphering, thus obtains cleartext information;If it is determined that this QR code is unencrypted mode, then decoding information is transferred to non-
Encryption QR code identification module processes, thus obtains cleartext information.
Claims (4)
1. a QR code encryption method based on RSA Algorithm, its feature comprise to cleartext information use RSA Algorithm carry out pre-place
Reason, produces primary cipher-text information.Size according to primary ciphertext and the requirement of level of error correction, select suitable QR version to primary
Ciphertext carries out final encryption, obtains readily identified QR image.Utilize proprietary decryption software that encrypted image is carried out
Scanning, will obtain decryption information.
2. according to described in claims 1, the present invention is a kind of QR code encryption method based on RSA Algorithm, and software is only to be downloaded
Special APP decryption software is installed.Its feature predominantly utilizes big prime number that RSA Algorithm obtains to as the PKI of encryption and private
Key, decryption method is that the ciphertext graph picture utilizing PKI to produce private key is decrypted process and obtains cleartext information.
3., according to described in claims 1, the hardware device of the image acquisition of QR code, its feature predominantly image acquisition is by adopting
Collection camera lens front end, projects on sensor by the optical imagery of generation, and then optical imagery is converted into the signal of telecommunication, and the signal of telecommunication is again
Becoming digital signal through analog digital conversion, digital signal is through DSP processed, then is sent in processor process.?
To scanning information.
4., according to described in claims 1, the present invention uses asymmetric encryption that information carries out primary encryption, and its feature is predominantly
Utilize the private key produced to be encrypted the primary ciphertext of generation, utilize PKI that whole level ciphertext is decrypted process, obtain bright
Literary composition information.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610589002.8A CN106301775A (en) | 2016-07-22 | 2016-07-22 | A kind of QR code encryption method based on RSA Algorithm |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610589002.8A CN106301775A (en) | 2016-07-22 | 2016-07-22 | A kind of QR code encryption method based on RSA Algorithm |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106301775A true CN106301775A (en) | 2017-01-04 |
Family
ID=57652104
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610589002.8A Pending CN106301775A (en) | 2016-07-22 | 2016-07-22 | A kind of QR code encryption method based on RSA Algorithm |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106301775A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109034333A (en) * | 2018-08-02 | 2018-12-18 | 武汉大学 | QR code dual anti-counterfeiting method based on rsa encryption and digital watermarking |
CN113221131A (en) * | 2021-04-02 | 2021-08-06 | 暨南大学 | LWE-based QR code encryption and decryption method |
CN113221132A (en) * | 2021-04-02 | 2021-08-06 | 暨南大学 | QR code encryption and decryption method based on NTRU |
CN114157771A (en) * | 2021-11-12 | 2022-03-08 | 广东海洋大学 | Asymmetric reversible image hiding method based on compressed sensing |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103325043A (en) * | 2013-06-20 | 2013-09-25 | 上海天臣控股有限公司 | System and method for tracking and verifying commodity purchased on internet |
CN103890779A (en) * | 2011-10-10 | 2014-06-25 | 礼元通信株式会社 | Device and method for automatically identifying a QR code |
CN103886469A (en) * | 2014-03-31 | 2014-06-25 | 南京理工大学 | Product two-dimension code generation and query system |
CN105009144A (en) * | 2013-12-20 | 2015-10-28 | 普乐投资有限公司 | System and method for authenticity verification |
CN105144215A (en) * | 2012-11-30 | 2015-12-09 | 莫彼姆有限公司 | Multi-dimensional code translation |
-
2016
- 2016-07-22 CN CN201610589002.8A patent/CN106301775A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103890779A (en) * | 2011-10-10 | 2014-06-25 | 礼元通信株式会社 | Device and method for automatically identifying a QR code |
CN105144215A (en) * | 2012-11-30 | 2015-12-09 | 莫彼姆有限公司 | Multi-dimensional code translation |
CN103325043A (en) * | 2013-06-20 | 2013-09-25 | 上海天臣控股有限公司 | System and method for tracking and verifying commodity purchased on internet |
CN105009144A (en) * | 2013-12-20 | 2015-10-28 | 普乐投资有限公司 | System and method for authenticity verification |
CN103886469A (en) * | 2014-03-31 | 2014-06-25 | 南京理工大学 | Product two-dimension code generation and query system |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109034333A (en) * | 2018-08-02 | 2018-12-18 | 武汉大学 | QR code dual anti-counterfeiting method based on rsa encryption and digital watermarking |
CN109034333B (en) * | 2018-08-02 | 2020-05-22 | 武汉大学 | QR code double anti-counterfeiting method based on RSA encryption and digital watermarking |
CN113221131A (en) * | 2021-04-02 | 2021-08-06 | 暨南大学 | LWE-based QR code encryption and decryption method |
CN113221132A (en) * | 2021-04-02 | 2021-08-06 | 暨南大学 | QR code encryption and decryption method based on NTRU |
CN113221132B (en) * | 2021-04-02 | 2022-09-02 | 暨南大学 | QR code encryption and decryption method based on NTRU |
CN114157771A (en) * | 2021-11-12 | 2022-03-08 | 广东海洋大学 | Asymmetric reversible image hiding method based on compressed sensing |
CN114157771B (en) * | 2021-11-12 | 2023-10-27 | 广东海洋大学 | Asymmetric reversible image hiding method based on compressed sensing |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10320807B2 (en) | Systems and methods relating to the authenticity and verification of photographic identity documents | |
TWI678638B (en) | Method, device and system for identity verification using card characteristics | |
CN103392204B (en) | There is the self-adaptive processing of multiple media processing node | |
US10749682B2 (en) | Anti-counterfeit method | |
AU2012345478B2 (en) | A method of generation and transmission of secure tokens based on tokens generated by TRNG and split into shares and the system thereof | |
CN106301775A (en) | A kind of QR code encryption method based on RSA Algorithm | |
CN104809490A (en) | Card anti-counterfeiting system based on multidimensional code and authentication method based on card anti-counterfeiting system | |
CN109951427B (en) | Product tracing method and system and cloud tracing platform | |
WO2022008507A1 (en) | Privacy-preserving image distribution | |
CN104574119B (en) | A kind of method that commodity Jianzhen traces to the source | |
CN106022187A (en) | High-efficient O2O implementation method | |
Wang et al. | Face forgery detection based on the improved siamese network | |
CN106022797A (en) | Smart device APP image recognition method | |
CN104835039A (en) | Data label generation method | |
CN110069907A (en) | Big data source tracing method and system based on digital watermarking | |
Zheng et al. | Composition-aware image steganography through adversarial self-generated supervision | |
CN108460606A (en) | A kind of method for anti-counterfeit based on two-dimensional code scanning and revene lookup | |
CN108900472A (en) | The transmission method and device of information | |
CN103793677A (en) | Method for information extraction and identity authentication by identifying raster graphics | |
CN112667888A (en) | Big data processing system based on block chain | |
CN106067053A (en) | Anti-counterfeiting mark and method for anti-counterfeit | |
CN109977919A (en) | Data processing method, medium, equipment and device based on recognition of face | |
CN104282070A (en) | Invoice fake validation method and system | |
TWI726326B (en) | Method, device and system for generating and verifying self-protection multidimensional barcode | |
CN102609851A (en) | Method and system for carrying out anti-counterfeit authentication on commodity by two-dimensional bar code |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170104 |
|
RJ01 | Rejection of invention patent application after publication |