CN104283859A - Encryption and decryption method for advisement player documents - Google Patents
Encryption and decryption method for advisement player documents Download PDFInfo
- Publication number
- CN104283859A CN104283859A CN201310288856.9A CN201310288856A CN104283859A CN 104283859 A CN104283859 A CN 104283859A CN 201310288856 A CN201310288856 A CN 201310288856A CN 104283859 A CN104283859 A CN 104283859A
- Authority
- CN
- China
- Prior art keywords
- advertisement machine
- encrypting
- data
- machine file
- decrypting method
- 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
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/60—Protecting data
- G06F21/606—Protecting data by securing the transmission between two devices or processes
Abstract
The invention provides an encryption and decryption method for advisement player documents. The encryption and decryption method at least includes the following steps: S1, obtaining a public key and a private key of an RSA algorithm; S2, coding plaintexts of the advisement player documents; S3, encrypting the coded plaintexts of the advisement player documents through the public key, and generating ciphertexts; S4, transmitting the generated ciphertexts to advisement player terminals; S5, decrypting the ciphertexts at the advisement player terminals through the private key. By means of the encryption and decryption method for the advisement player documents, the propagating safety of the advisement player documents is fundamentally guaranteed, and transmitted data cannot be identified even through the transmitted data are intercepted; meanwhile, when the data are transmitted, the advisement player terminals correspond to servers in a one-to-one mode, playing of illegal data is eliminated, and the safety of played contents is accordingly guaranteed.
Description
Technical field
The present invention relates to a kind of encrypting and decrypting method of file, especially, relate to a kind of encrypting and decrypting method of advertisement machine file.
Background technology
Advertisement machine is the smart machine of a new generation, by the advertisement broadcast control system that terminal software control, network information transfer and multimedia terminal display formation one are complete, and carry out advertising by Multi-media Materials such as picture, word, video, little plug-in units (weather, the exchange rate etc.).The initial conception of advertisement machine is changed from passive to active at advertisement, so the interactive of advertisement machine makes it possess a lot of public service function, and attracts client's initiatively browse advertisements with this.
Usually, advertisement machine is made up of server, network, advertisement machine terminal.Information is sent to terminal equipment by network by server, by terminal equipment, the information such as relevant audio frequency and video, picture, word are shown by the display device on it again, material is thus formed a set of link by network, Servers-all information being sent to terminal, thus the position of the network coverage can be had to realize the issue of advertisement in any one of the world.Above-mentioned advertisement machine system both can save labour cost, can realize again safety, accurately and fast Information issued.
But, due to network have system complexity, resource-sharing, border route that is unknowable, transmission information uncertain, etc. reason, with certain potential safety hazard when making itself to issue as media application.In prior art, also preserve cleartext information in transmission so far in many networks, this makes the safe transmission of information and issues to there is certain potential risk.According to relevant investigation, even if current ad distribution businessman is transferred through the data of encryption, what also mostly adopt is traditional cryptographic system.And under traditional cryptographic system, the encryption of data is easy to be cracked, the coefficient of safety causing Internet Transmission and data to be preserved is all smaller, and this is also that restriction advertisement machine moves towards intelligent, a major reason of safe management.
Therefore, the method how proposing a kind ofly effectively to encrypt advertisement machine file, to decipher becomes a hot issue in current advertisement machine field.
Summary of the invention
The shortcoming of prior art in view of the above, the object of the present invention is to provide a kind of encrypting and decrypting method of advertisement machine file, effectively can ensure the fail safe of advertisement machine file transfer.
For achieving the above object and other relevant objects, the invention provides a kind of encrypting and decrypting method of advertisement machine file, described encrypting and decrypting method at least comprises the following steps:
Step S1: the PKI and the private key that obtain RSA Algorithm;
Step S2: coded treatment is carried out to the plaintext of advertisement machine file;
Step S3: utilize the plaintext of described PKI to the advertisement machine file after coding to be encrypted, generating ciphertext;
Step S4: the ciphertext of generation is transferred to advertisement machine terminal;
Step S5: utilize private key to be decrypted ciphertext at advertisement machine terminal.
According to the encrypting and decrypting method of above-mentioned advertisement machine file, wherein: in step S2, described coding refers to and the character data of advertisement machine file is converted to numerical data.
Further, according to the encrypting and decrypting method of above-mentioned advertisement machine file, wherein: when the character data of advertisement machine file is converted to numerical data, adopt following rule: definition a corresponding conversion is 1, b corresponding conversion is 2, by that analogy, until z corresponding conversion is 26.
Further, according to the encrypting and decrypting method of above-mentioned advertisement machine file, wherein: when the character data of advertisement machine file is converted to numerical data, each Chinese character is converted to the region-position code corresponding to it.
According to the encrypting and decrypting method of above-mentioned advertisement machine file, wherein: in step S3, utilize PKI to coding after plain text encryption time, according to required Cipher Strength, self-defined each encryption time clear data extraction figure place.
According to the encrypting and decrypting method of above-mentioned advertisement machine file, wherein: also comprise step S6: verify data decryption, if data decryption can obtain original clear data by PKI, then data decryption is exactly correct; If can not, then assert that data decryption is illegal.
According to the encrypting and decrypting method of above-mentioned advertisement machine file, wherein: described private key is preserved by advertisement machine terminal.
According to the encrypting and decrypting method of above-mentioned advertisement machine file, wherein: described PKI stores on the server, can external disclosure.
As mentioned above, the encrypting and decrypting method of advertisement machine file of the present invention, has following beneficial effect:
(1) fail safe of advertisement machine file propagation is enhanced, even if the data transmitted are intercepted and captured also None-identified;
(2), when transmitting data, advertisement machine terminal and server one_to_one corresponding, eliminate the broadcasting of invalid data, thus ensure that the fail safe of play content.
Accompanying drawing explanation
Fig. 1 is shown as the general frame figure of the encrypting and decrypting method of advertisement machine file of the present invention;
Fig. 2 is shown as the block schematic illustration of the encrypting and decrypting method of advertisement machine file of the present invention;
Fig. 3 is shown as the schematic flow sheet of the encrypting and decrypting method of advertisement machine file of the present invention.
Element numbers explanation
Step S1 obtains PKI and the private key of RSA Algorithm
Step S2 encodes to advertisement machine plaintext document
Step S3 utilizes PKI by the advertisement machine plaintext document encryption after coding with generating ciphertext
Ciphertext is transferred to advertisement machine terminal by step S4
Step S5 utilizes private key decrypting ciphertext
Embodiment
Below by way of specific instantiation, embodiments of the present invention are described, those skilled in the art the content disclosed by this specification can understand other advantages of the present invention and effect easily.The present invention can also be implemented or be applied by embodiments different in addition, and the every details in this specification also can based on different viewpoints and application, carries out various modification or change not deviating under spirit of the present invention.
It should be noted that, the diagram provided in the present embodiment only illustrates basic conception of the present invention in a schematic way, then only the assembly relevant with the present invention is shown in graphic but not component count, shape and size when implementing according to reality is drawn, it is actual when implementing, and the kenel of each assembly, quantity and ratio can be a kind of change arbitrarily, and its assembly layout kenel also may be more complicated.
With reference to Fig. 1, the encrypting and decrypting method of advertisement machine file of the present invention is applied in advertisement machine system.Advertisement machine system comprises server and advertisement machine terminal.Transfer of data is carried out by network between server and advertisement machine terminal.Advertisement machine file encryption decryption method of the present invention mainly carries out following process to advertisement machine file: be encrypted via the encipheror on server by advertisement machine plaintext document, the ciphertext generated can directly be transmitted, also can save as file or be stored into database, transmitting when needed.The ciphertext generated, and to be decrypted via decrypted program in the ciphertext of advertisement machine terminal by generation to advertisement machine terminal via Internet Transmission, thus obtains the initial advertisement machine file transmitted.
Particularly, the basic thought of the encrypting and decrypting method of advertisement machine file of the present invention is as follows: by adopting the RSA public key encryption algorithm of increasing income to generate a group key, being for a pair wherein PKI, is for a pair private key.Be encrypted operation by the plaintext of PKI to transmitted advertisement machine file, by private key, ciphertext be decrypted, finally obtain the plaintext of advertisement machine file.
In the algorithm of classical cryptosystem, be aware of ciphering process, then can release decrypting process; And in RSA public key algorithm of the present invention, even if be aware of ciphering process, also can not release decrypting process.RSA public key algorithm is based on number theory, and principle is: ask the product of two large prime numbers to be easy to realize, but a large conjunction number is resolved into two large prime numbers and be difficult to realize.In RSA public key algorithm, key is divided into encryption key E, decruption key D and public keys M.Wherein, (E, M) is PKI; (D, M) is private key.Assuming that the plaintext transmitted is X, the ciphertext generated after encryption is Y, then the mathematic(al) representation of RSA public key algorithm is Y=X^E (modM), X=Y^D (modM), and wherein mod represents delivery, and ^ represents power.
Wherein, E, D, M must meet following condition:
(1) M is the product of two large prime number P, Q;
(2) E is the positive integer relatively prime with (P-1) x (Q-1);
(3)(D*E)mod((P-1)x(Q-1))=1。
Meet above 3 conditions, (E, M) just can make PKI, and (D, M) makes private key.
Such as: P=101, Q=113, so M=P × Q=11413, (P-1) x (Q-1)=100 × 112=11200, have numerous with 11200 relatively prime integer E.Therefore, suppose E=3533, according to formula (D*E) mod ((P-1) x (Q-1))=1, try to achieve D=6597.Suppose expressly X=9726, the ciphertext Y=9726^3533mod (11413)=5761 so obtained after encryption, the plaintext Z=5761^6597mod (11413)=9726 obtained when deciphering.
Therefore, as long as encryption key E, decruption key D and public keys M selects correct, and the plaintext X before encryption and the plaintext Z after deciphering must be identical.
According to above-mentioned theory, with reference to Fig. 3, the encrypting and decrypting method of advertisement machine file of the present invention specifically comprises the following steps:
Step S1: obtain the PKI of RSA Algorithm and private key, wherein private key is preserved by advertisement machine terminal, PKI stores on the server, can external disclosure;
Step S2: coded treatment is carried out to the plaintext of advertisement machine file at server end, the character data by advertisement machine file is converted to numerical data; Be 2 as to define a corresponding conversion be 1, b corresponding conversion, by that analogy, until z corresponding conversion is 26; Also each Chinese character can be converted to the region-position code of its correspondence in addition;
Step S3: the plaintext of the advertisement machine file after coding is encrypted by PKI, generating ciphertext, wherein, can according to required Cipher Strength, the extraction figure place of clear data during self-defined each encryption;
Step S4: the ciphertext of generation is transferred to advertisement machine terminal;
Step S5: by private key, ciphertext is decrypted at advertisement machine terminal.
Preferably, in the encrypting and decrypting method of advertisement machine file of the present invention, can also comprise step S6: verify data decryption, if data decryption can obtain original clear data by PKI, then data decryption is exactly correct; If can not, then assert illegal, not in advertisement machine terminal display or broadcasting, thus fundamentally ensure that the fail safe of transfer of data in advertisement machine system.
In sum, the encrypting and decrypting method of advertisement machine file of the present invention, fundamentally ensure that the fail safe of advertisement machine file propagation, even if the data transmitted are intercepted and captured also None-identified; Meanwhile, when transmitting data, advertisement machine terminal and server one_to_one corresponding, eliminate the broadcasting of invalid data, thus ensure that the fail safe of play content.So the present invention effectively overcomes various shortcoming of the prior art and tool high industrial utilization.
Above-described embodiment is illustrative principle of the present invention and effect thereof only, but not for limiting the present invention.Any person skilled in the art scholar all without prejudice under spirit of the present invention and category, can modify above-described embodiment or changes.Therefore, such as have in art usually know the knowledgeable do not depart from complete under disclosed spirit and technological thought all equivalence modify or change, must be contained by claim of the present invention.
Claims (8)
1. the encrypting and decrypting method of an advertisement machine file, it is characterized in that, described encrypting and decrypting method is applied to advertisement machine system, described advertisement machine system comprises server and advertisement machine terminal, described server and described advertisement machine terminal carry out transfer of data by network, and described encrypting and decrypting method at least comprises the following steps:
Step S1: the PKI and the private key that obtain RSA Algorithm;
Step S2: coded treatment is carried out to the plaintext of advertisement machine file;
Step S3: utilize the plaintext of described PKI to the advertisement machine file after coding to be encrypted, generating ciphertext;
Step S4: the ciphertext of generation is transferred to advertisement machine terminal;
Step S5: utilize private key to be decrypted ciphertext at advertisement machine terminal.
2. the encrypting and decrypting method of advertisement machine file according to claim 1, is characterized in that: in step S2, and described coding refers to and the character data of advertisement machine file is converted to numerical data.
3. the encrypting and decrypting method of advertisement machine file according to claim 2, it is characterized in that: when the character data of advertisement machine file is converted to numerical data, adopt following rule: definition a corresponding conversion is 1, b corresponding conversion is 2, by that analogy, until z corresponding conversion is 26.
4. the encrypting and decrypting method of advertisement machine file according to claim 2, is characterized in that: when the character data of advertisement machine file is converted to numerical data, each Chinese character is converted to the region-position code corresponding to it.
5. the encrypting and decrypting method of advertisement machine file according to claim 1, is characterized in that: in step S3, utilize PKI to coding after plain text encryption time, according to required Cipher Strength, self-defined each encryption time clear data extraction figure place.
6. the encrypting and decrypting method of advertisement machine file according to claim 1, is characterized in that: also comprise step S6: verify data decryption, if data decryption can obtain original clear data by PKI, then data decryption is correct; If can not, then assert that data decryption is illegal.
7. the encrypting and decrypting method of advertisement machine file according to claim 1, is characterized in that: described private key is preserved by advertisement machine terminal.
8. the encrypting and decrypting method of advertisement machine file according to claim 1, is characterized in that: described PKI stores on the server, can external disclosure.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310288856.9A CN104283859A (en) | 2013-07-10 | 2013-07-10 | Encryption and decryption method for advisement player documents |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310288856.9A CN104283859A (en) | 2013-07-10 | 2013-07-10 | Encryption and decryption method for advisement player documents |
Publications (1)
Publication Number | Publication Date |
---|---|
CN104283859A true CN104283859A (en) | 2015-01-14 |
Family
ID=52258344
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310288856.9A Pending CN104283859A (en) | 2013-07-10 | 2013-07-10 | Encryption and decryption method for advisement player documents |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104283859A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108259486A (en) * | 2018-01-10 | 2018-07-06 | 芯盾网安(北京)科技发展有限公司 | End-to-end key exchange method based on certificate |
CN110149537A (en) * | 2019-05-22 | 2019-08-20 | 泉后(深圳)科技有限公司 | A kind of advertisement machine split screen control method for playing back and its device |
US10645450B2 (en) | 2018-04-09 | 2020-05-05 | Wistron Corporation | System and method for proof of play |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101206815A (en) * | 2006-12-19 | 2008-06-25 | 株式会社富士通Bsc | Encryption process, encryption device, and computer-readable medium storing encryption program |
CN101527021A (en) * | 2009-03-31 | 2009-09-09 | 薛忠华 | RFID electronic tag reading and writing device used for product truth verification |
CN102917252A (en) * | 2011-08-02 | 2013-02-06 | 航天信息股份有限公司 | IPTV (internet protocol television) program stream content protection system and method |
CN103036674A (en) * | 2012-12-04 | 2013-04-10 | 同济大学 | Computer permission control method based on mobile dynamic password |
-
2013
- 2013-07-10 CN CN201310288856.9A patent/CN104283859A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101206815A (en) * | 2006-12-19 | 2008-06-25 | 株式会社富士通Bsc | Encryption process, encryption device, and computer-readable medium storing encryption program |
CN101527021A (en) * | 2009-03-31 | 2009-09-09 | 薛忠华 | RFID electronic tag reading and writing device used for product truth verification |
CN102917252A (en) * | 2011-08-02 | 2013-02-06 | 航天信息股份有限公司 | IPTV (internet protocol television) program stream content protection system and method |
CN103036674A (en) * | 2012-12-04 | 2013-04-10 | 同济大学 | Computer permission control method based on mobile dynamic password |
Non-Patent Citations (1)
Title |
---|
谢国,王荣良: "基于多媒体广告机安全性的SSL研究与实现", 《微型电脑应用》 * |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108259486A (en) * | 2018-01-10 | 2018-07-06 | 芯盾网安(北京)科技发展有限公司 | End-to-end key exchange method based on certificate |
US10645450B2 (en) | 2018-04-09 | 2020-05-05 | Wistron Corporation | System and method for proof of play |
CN110149537A (en) * | 2019-05-22 | 2019-08-20 | 泉后(深圳)科技有限公司 | A kind of advertisement machine split screen control method for playing back and its device |
CN110149537B (en) * | 2019-05-22 | 2021-03-09 | 泉后(深圳)信息技术有限公司 | Split screen playing control method and device for advertising player |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR101541911B1 (en) | Apparatus and method for providing security service of User Interface | |
CN101645773B (en) | Based on the stopover sites of elliptic curve cryptography | |
CN103873233B (en) | A kind of digital movie cryptographic key distribution method based on managing web, device and system | |
CN109257180A (en) | A kind of method and device for depositing card based on the intellectual property file of block chain | |
CN104836657B (en) | A kind of identity-based anonymity broadcast encryption method with efficient decryption features | |
CN103081493B (en) | For the protection of the system and method for the advertisement selection of privacy | |
CN108199844B (en) | Method for supporting off-line SM9 algorithm key first application downloading | |
CN104506503A (en) | Security certification system based on broadcast television one-way transmission network | |
CN107579903B (en) | Picture message secure transmission method and system based on mobile device | |
CN105357003B (en) | A kind of method and device of encryption data | |
CN101640785B (en) | Encrypting/decrypting system and encrypting/decrypting method for interactive network television | |
CN105119891B (en) | A kind of data interactive method, set-top box and server | |
CN104200154A (en) | Identity based installation package signing method and identity based installation package signing device | |
CN106911663A (en) | One kind sells bank's full message encryption system and method for mixed mode directly to households | |
CN103152321A (en) | Digital rights management of streaming contents and services | |
CN110149537A (en) | A kind of advertisement machine split screen control method for playing back and its device | |
CN110365662A (en) | Business approval method and device | |
CN110311892A (en) | A kind of data capture method and server | |
CN110012312A (en) | The access control method based on key management suitable for pay television system | |
CN102647393B (en) | Digital signage content piracy prevention method | |
CN103167494A (en) | Information sending method and information sending system | |
CN101964790A (en) | Method for realizing video frequency interaction | |
CN104283859A (en) | Encryption and decryption method for advisement player documents | |
CN107222473B (en) | Method and system for encrypting and decrypting API service data at transport layer | |
CN105376221A (en) | Game message encryption mechanism based on dynamic password, and game system |
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: 20150114 |
|
RJ01 | Rejection of invention patent application after publication |