CN107491686A - A kind of encryption and decryption method and device of sliding trace background picture - Google Patents

A kind of encryption and decryption method and device of sliding trace background picture Download PDF

Info

Publication number
CN107491686A
CN107491686A CN201710547974.5A CN201710547974A CN107491686A CN 107491686 A CN107491686 A CN 107491686A CN 201710547974 A CN201710547974 A CN 201710547974A CN 107491686 A CN107491686 A CN 107491686A
Authority
CN
China
Prior art keywords
sliding trace
background picture
encryption
trace background
picture
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
CN201710547974.5A
Other languages
Chinese (zh)
Inventor
谢作孟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Weimeng Chuangke Network Technology China Co Ltd
Original Assignee
Weimeng Chuangke Network Technology China 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 Weimeng Chuangke Network Technology China Co Ltd filed Critical Weimeng Chuangke Network Technology China Co Ltd
Priority to CN201710547974.5A priority Critical patent/CN107491686A/en
Publication of CN107491686A publication Critical patent/CN107491686A/en
Pending legal-status Critical Current

Links

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/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/31User authentication
    • G06F21/36User authentication by graphic or iconic representation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/85Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using pre-processing or post-processing specially adapted for video compression
    • H04N19/88Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using pre-processing or post-processing specially adapted for video compression involving rearrangement of data among different coding units, e.g. shuffling, interleaving, scrambling or permutation of pixel data or permutation of transform coefficient data among different blocks
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2221/00Indexing scheme relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F2221/21Indexing scheme relating to G06F21/00 and subgroups addressing additional information or applications relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F2221/2133Verifying human interaction, e.g., Captcha

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The invention provides a kind of encryption and decryption method and device of sliding trace background picture.The encryption method of sliding trace background picture includes:The acquisition identifying code request that client is sent is received, original sliding trace background picture is generated according to identifying code request is obtained;It is multiple segmentation blocks by the original sliding trace background picture random division, and out of order arrangement is carried out to multiple segmentation blocks of the sliding trace background picture using the encryption factor generated at random;The sliding trace background picture after the encryption factor and out of order arrangement is encoded according to the coded system of setting, encrypted characters string corresponding to generation simultaneously returns to the client.The encryption and decryption method and device of sliding trace background picture provided in an embodiment of the present invention, track background picture content can be directly returned to, without using link form, reduce server implementation complexity;Also, the present invention uses out of order encryption and dynamic encryption, and significantly increase cracker cracks cost and difficulty.

Description

A kind of encryption and decryption method and device of sliding trace background picture
Technical field
The present invention relates to the encryption and decryption field of data, more particularly to a kind of encryption of sliding trace background picture, decryption side Method and device.
Background technology
When user browses webpage or carries out web page operation, sometimes browser can initiate jsonp checkings to server Code request is to obtain the track Background of a sliding trace, to prompt user to enter line slip according to the track on figure with by testing Card.
If any cryptographic means are not done to sliding trace background picture, it is intended to which the attacker for cracking identifying code can be easily The track Background is obtained, follow-up analysis is then carried out and draws the track in figure to realize that automation cracks identifying code, make to test Card code, which loses, identifies man-machine effect.
It should be noted that the introduction to technical background above be intended merely to it is convenient technical scheme is carried out it is clear, Complete explanation, and facilitate the understanding of those skilled in the art and illustrate.Can not merely because these schemes the present invention Background section is set forth and thinks that above-mentioned technical proposal is known to those skilled in the art.
The content of the invention
In order to reduce server implementation complexity and prevent that sliding trace background picture from being cracked easily, the present invention is implemented Example provides a kind of encryption and decryption method and device of sliding trace background picture.
In order to achieve the above object, the embodiment of the present invention provides a kind of encryption method of sliding trace background picture, including: The acquisition identifying code request that client is sent is received, original sliding trace Background is generated according to the acquisition identifying code request Piece;It is multiple segmentation blocks by the original sliding trace background picture random division, and uses the encryption factor generated at random Out of order arrangement is carried out to multiple segmentation blocks of the sliding trace background picture;According to setting coded system to the encryption because Sliding trace background picture after sub and out of order arrangement is encoded, and encrypted characters string corresponding to generation simultaneously returns to the client End.
In order to achieve the above object, the embodiment of the present invention also provides a kind of encryption device of sliding trace background picture, if Put in server end, including:Original image generation module, for receiving the acquisition identifying code request of client transmission, according to institute State and obtain the original sliding trace background picture of identifying code request generation;Split order module, for by the original slip Track background picture random division is multiple segmentation blocks, and using the encryption factor generated at random to the sliding trace Background Multiple segmentation blocks of piece carry out out of order arrangement;Coding module, for the coded system according to setting to the encryption factor and unrest Sliding trace background picture after sequence arrangement is encoded, and encrypted characters string corresponding to generation simultaneously returns to the client.
In order to achieve the above object, the embodiment of the present invention provides a kind of decryption method of sliding trace background picture, including: The reception server end is according to the encrypted characters string for obtaining identifying code request and returning received;According to the coded system of setting to institute State encrypted characters string to be decoded, obtain the sliding trace background picture after encryption factor and out of order arrangement;According to the encryption The factor, original sliding trace background picture, the original are restored from the sliding trace background picture after the out of order arrangement The sliding trace background picture of beginning is used to guide user to carry out sliding trace checking.
In order to achieve the above object, the embodiment of the present invention also provides a kind of decryption device of sliding trace background picture, if Put in client, including:Receiving module, for the reception server end according to the encryption for obtaining identifying code request and returning received Character string;Decoder module, the encrypted characters string is decoded for the coded system according to setting, obtain encryption factor and Sliding trace background picture after out of order arrangement;Recovery module, for according to the encryption factor, after the out of order arrangement Original sliding trace background picture is restored in sliding trace background picture, the original sliding trace background picture is used for User is guided to carry out sliding trace checking.
The encryption and decryption method and device of sliding trace background picture provided in an embodiment of the present invention, can directly be returned The content of sliding trace background picture, without using link form, reduce server implementation complexity;Also, the present invention uses Out of order encryption and dynamic encryption, significantly increase cracker cracks cost and difficulty.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing There is the required accompanying drawing used in technology description to be briefly described, it should be apparent that, drawings in the following description are only this Some embodiments of invention, for those skilled in the art, without having to pay creative labor, can be with root Other accompanying drawings are obtained according to these accompanying drawings.
Fig. 1 is the process chart of the encryption method of the sliding trace background picture of the embodiment of the present invention;
Fig. 2 is the structural representation of the encryption device of the sliding trace background picture of the embodiment of the present invention;
Fig. 3 is the structural representation of the segmentation order module 202 in embodiment illustrated in fig. 2;
Fig. 4 is the structural representation of the coding module 203 in embodiment illustrated in fig. 2;
Fig. 5 is the process chart of the decryption method of the sliding trace background picture of the embodiment of the present invention;
Fig. 6 is the structural representation of the decryption device of the sliding trace background picture of the embodiment of the present invention;
Fig. 7 is the structural representation of the recovery module 603 in embodiment illustrated in fig. 6;
Fig. 8 is the structural representation of the data handling system of the embodiment of the present invention;
In Fig. 9 one specific embodiments of the present invention, in the track background picture of the original plaintext of server end generation;
Figure 10 is in the specific embodiment shown in Fig. 9, and server end carries out the sliding trace background picture after out of order encryption;
Figure 11 is in the specific embodiment shown in Fig. 9, and the sliding trace background picture after reduction is decrypted in client.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, rather than whole embodiments.It is based on Embodiment in the present invention, those of ordinary skill in the art are obtained every other under the premise of creative work is not made Embodiment, belong to the scope of protection of the invention.
Art technology technical staff knows, embodiments of the present invention can be implemented as a kind of system, device, equipment, Method or computer program product.Therefore, the disclosure can be implemented as following form, i.e.,:It is complete hardware, complete soft Part (including firmware, resident software, microcode etc.), or the form that hardware and software combines.It should be emphasized that term " including/bag Containing " used herein when refer to the presence of feature, one integral piece, step or component, but be not precluded from one or more further features, whole The presence or additional of part, step or component.
Below with reference to the principle and spirit of some representative embodiments of the present invention, in detail the explaination present invention.
1st, identifying code is slided:One kind of identifying code, browser initiates jsonp requests to obtain one to server during generation The background picture of sliding trace, to prompt user to enter line slip according to the track on figure;
2、jsonp:A kind of JSON use pattern, the cross-domain data access for being mainly used in solving major browsers are asked Topic;
3、css:CSS, a kind of computer language for being used for showing the file pattern such as HTML or XML;
4、div:It is the location technology in CSS, referred to as figure layer;
5、base64:One of a kind of coded system for being commonly used in transmission 8Bit bytes on network.
The encryption and decryption method and device of sliding trace background picture disclosed in the embodiment of the present invention, main innovation Point is, carries out dynamic, Encryption to sliding trace background picture, effectively prevent cracker and crack identifying code.
Fig. 1 is the process chart of the encryption method of the sliding trace background picture of the embodiment of the present invention.As shown in figure 1, The encryption method of the present embodiment includes:
Step S101, the acquisition identifying code request that client is sent is received, it is former according to the acquisition identifying code request generation The sliding trace background picture of beginning;
Step S102, it is multiple segmentation blocks by the original sliding trace background picture random division, and using random The encryption factor of generation carries out out of order arrangement to multiple segmentation blocks of the sliding trace background picture;
Step S103, according to the coded system of setting to the sliding trace Background after the encryption factor and out of order arrangement Piece is encoded, and encrypted characters string corresponding to generation simultaneously returns to the client.
When it is implemented, in step S101, it (is, for example, browser that server side scripts program, which is received from client, End) request after, generate the sliding trace background picture of an original plaintext at random, the sliding trace background picture can be with It is common four palaces sound of laughing formula either nine grids form.Also, the request that client is sent, can not include any information, An only request instruction, the restricted information to the track background picture of generation can also be included, such as limit the figure of generation Piece is which kind of form or specification, for example, the track background picture generated is limited as nine grids form, and specification is 3cm*3cm.
When it is implemented, it is multiple segmentation blocks first by sliding trace background picture random division, i.e., in step s 102 It is M rows, N row by the track background picture random division, the M and N are generated at random in setting range, such as can limit M With the numeral that N is 0~9.After M and N is determined, 0 array for arriving M*N-1 can be generated, upsets the array, to obtain encryption factor, The encryption factor includes being used to divide parameter M, N of the original sliding trace background picture, and the array after upsetting. Then, multiple segmentation blocks of the original sliding trace background picture are carried out according to the encryption factor upsetting sequence, obtained Sliding trace background picture after to out of order arrangement.
When it is implemented, in step s 103, the track background picture after out of order arrangement and encryption factor are made respectively Encoded with the coded system of setting to obtain two string character strings, and the string-concatenation generated after encryption factor is encoded exists The character string back generated after sliding trace background picture coding, you can the complete character string after out of order encryption is generated, will be complete Character string is sent to client, and so far, the sliding trace background picture generation of server end finishes.
In the present embodiment, coded system can use base64 scrambled modes.Certainly, coded system of the invention is not It is limited to this, other coding encrypting methods can also be used.
Corresponding to the encryption method of above-mentioned sliding trace background picture, based on same inventive concept, the embodiment of the present invention is also A kind of encryption device of sliding trace background picture is provided.The implementation of the device may refer to the implementation of the above method, repetition Place repeats no more.Term " module " used below and " unit ", can be the software and/or hardware for realizing predetermined function. Although module described by following examples is preferably realized with software, hardware, or the combination of software and hardware Realize to be also what may and be contemplated.
As shown in Fig. 2 the encryption device of the sliding trace background picture of the present embodiment includes:
Original image generation module 201, for receiving the acquisition identifying code request of client transmission, tested according to the acquisition Demonstrate,prove code request and generate original sliding trace background picture;
Split order module 202, for being multiple segmentation blocks by the original sliding trace background picture random division, And out of order arrangement is carried out to multiple segmentation blocks of the sliding trace background picture using the encryption factor generated at random;
Coding module 203, for the coded system according to setting to the slip rail after the encryption factor and out of order arrangement Mark background picture is encoded, and encrypted characters string corresponding to generation simultaneously returns to the client.
When it is implemented, the original image generation module 201 is used for the acquisition identifying code request for receiving client transmission, Original sliding trace background picture is generated according to the acquisition identifying code request, it is specifically included:Sent according to client Identifying code request is obtained, it is random to generate four palace lattice or the track background picture of nine grids.
When it is implemented, the segmentation order module 202 is used at random draw the original sliding trace background picture It is divided into multiple segmentation blocks, and multiple segmentation blocks of the sliding trace background picture is carried out using the encryption factor generated at random Out of order arrangement, as shown in figure 3, it is specifically included:
Cutting unit 2021, for the original sliding trace background picture to be divided into multiple points according to M rows, N row Block is cut, the M and N are generated at random in setting range;
Encryption factor generation unit 2022, M*N-1 array is arrived for generating 0, and upset the array, obtain described add The close factor, the encryption factor include being used to divide parameter M, N of the original sliding trace background picture, and after upsetting Array;
Sequencing unit 2023, for by multiple segmentation blocks of the original sliding trace background picture according to the encryption The factor carries out upsetting sequence, obtains the sliding trace background picture after out of order arrangement.
When it is implemented, the coding module 203 is used for the coded system according to setting to the encryption factor and out of order Sliding trace background picture after arrangement is encoded, and encrypted characters string corresponding to generation simultaneously returns to the client, such as Fig. 4 Shown, it is specifically included:
Picture text string generation unit 2031, for the coded system using setting to the slip rail after the out of order arrangement Mark background picture is encoded, and generates picture character string;
Factor text string generation unit 2032, the encryption factor is encoded for the coded system using setting, Generate factor character string;
Concatenation unit 2033, for the factor string-concatenation to be generated into the encryption behind the picture character string Character string, and it is sent to the client.
The device of the generation track background picture of Fig. 2-embodiment illustrated in fig. 4 can be placed in a server, the server It can be single server unit or enter the existing service of row data communication with client (such as browser end) Device.
Fig. 5 is the process chart of the decryption method of the sliding trace background picture of the embodiment of the present invention.As illustrated, this The decryption method of embodiment includes:
Step 501, the reception server end is according to the encrypted characters string for obtaining identifying code request and returning received;
Step 502, the encrypted characters string is decoded according to the coded system of setting, obtains encryption factor and out of order Sliding trace background picture after arrangement;
Step 503, according to the encryption factor, original is restored from the sliding trace background picture after the out of order arrangement The sliding trace background picture of beginning, the original sliding trace background picture are used to guide user to carry out sliding trace checking.
In the step S501 of the present embodiment, the track background picture that server end is sent is real according to above-mentioned Fig. 1 Apply the sliding trace background picture after the out of order encryption that example is generated.That is, sent when client receives server end Sliding trace background picture after rendered, it is necessary to which it is decrypted.Solved firstly the need of to the sliding trace background picture After close and rearrangement, the sliding trace background picture of original plaintext can be just obtained to be shown to user in browser, is prompted User carries out the checking of sliding trace.
In the step S502 of the present embodiment, client is getting the sliding trace background picture encryption of service end return After character string afterwards, it is necessary first to character string is decoded according to the coded system of setting.If used in ciphering process Be base64 coding encrypting methods, then it is in this step, same to be decrypted using base64 coding decryption method.
In the step S503 of the present embodiment, first according to the encryption factor decrypted in step S502, carried on the back in identifying code Scape picture region generation M rows, the div blocks (figure layer block) of N row, and the background picture for obtaining each div block (figure layer block) is corresponding It is described it is out of order after sliding trace background picture on which block;Then it is the stacking of each div block (figure layer block) CSS css elements set corresponding wide (width), high (height), background image (background-image) and the back of the body Scape position (background-position) so that each div block (figure layer block) shows the slip rail after the out of order arrangement Corresponding segmentation block in mark background picture, i.e., the sliding trace background picture of original plaintext is restored again.
Corresponding to the decryption method of above-mentioned sliding trace background picture, based on same inventive concept, the embodiment of the present invention is also A kind of decryption device of sliding trace background picture is provided.The implementation of the device may refer to the method for embodiment illustrated in fig. 5 Implement, repeat part and repeat no more.Term " module " used below and " unit ", can be the software for realizing predetermined function And/or hardware.Although module described by following examples is preferably realized with software, hardware, or software and hard The realization of the combination of part is also what may and be contemplated.
As shown in fig. 6, the decryption device of the sliding trace background picture of the present embodiment includes:
Receiving module 601, for the reception server end according to the encrypted characters for obtaining identifying code request and returning received String;
Decoder module 602, the encrypted characters string is decoded for the coded system according to setting, obtain encryption because Sliding trace background picture after sub and out of order arrangement;
Recovery module 603, for according to the encryption factor, from the sliding trace background picture after the out of order arrangement Original sliding trace background picture is restored, the original sliding trace background picture is used to guide user to enter line slip rail Mark is verified.
In the present embodiment, the recovery module 603 is used for according to the encryption factor, the cunning after the out of order arrangement Original sliding trace background picture is restored in dynamic rail mark background picture, the original sliding trace background picture is used to draw Lead user and carry out sliding trace checking, as shown in fig. 7, it is specifically included:
Figure layer block generation unit 6031, for the div block (figure layers in identifying code background picture region generation M rows, N row Block);
Corresponding reduction unit 6032, for according to the encryption factor, determining corresponding to each div block (figure layer block) The segmentation block in sliding trace background picture after the out of order arrangement, and be each div blocks (figure according to corresponding segmentation block Layer block) the background image background-image of CSS css elements and corresponding wide width, height are set Height and background positions background-position so that each div block (figure layer block) shows the out of order arrangement Corresponding segmentation block in sliding trace background picture afterwards.
The decryption device of the sliding trace background picture of Fig. 6-embodiment illustrated in fig. 7 can be placed in a client, such as User browses the browser end of webpage.
Fig. 8 is the structural representation of the data handling system of the embodiment of the present invention.As illustrated, it includes the He of server 1 Client 2, the server end 1 include the encryption device of sliding trace background picture as shown in Figure 2, and the client 2 is wrapped Decryption device containing sliding trace background picture as shown in Figure 6.
Specific embodiment:
The encryption and decryption method of the sliding trace background picture of the present invention is situated between below by way of a specific embodiment Continue.
Fig. 9 is in the specific embodiment, in the sliding trace background picture of the original plaintext of server end generation.Service Original sliding trace background picture is cut into 5 rows 5 and arranged by device, and generates 0 array for arriving (5*5-1), and array is [" 0 ", " 1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"," 18 ", " 19 ", " 20 ", " 21 ", " 22 ", " 23 ", " 24 "], it is assumed that array after upsetting for [" 20 ", " 8 ", " 7 ", " 4 ", " 22","5","16","23","10","15","13","3","11","24","17","1","21","14","19","0"," 2 ", " 12 ", " 9 ", " 18 ", " 6 "], obtain the encryption factor.Then original sliding trace background picture is upset according to this Array afterwards, the 0th, which is placed on the 20th, the 1st, is placed on the 8th, the 2nd and is placed on the 7th ... ..., obtains the back of the body of the sliding trace after out of order arrangement Scape picture, as shown in Figure 10.Finally, by after the out of order arrangement sliding trace background picture carry out base64 codings, then Parameter 5,5 and array after upsetting are according to | 5_5_20_8_7_4_22_5_16_23_10_15_13_3_11_24_17_1_ This modes of 21_14_19_0_2_12_9_18_6 arrange and then are base64 and encode after obtaining factor character string, splice in unrest The base64 of sliding trace background picture after sequence arrangement is encoded behind obtained picture character string, obtains encrypted characters string.
After client can take encrypted characters string, the factor character string behind " | " this symbol is obtained, to factor word Symbol string does base64 decodings, obtains 5_5_20_8_7_4_22_5_16_23_10_15_13_3_11_24_17_1_21_14_19_ This encryption factor of 0_2_12_9_18_6, it is that sliding trace background picture is cut into 5 rows 5 to arrange to learn server end, according to [" 20","8","7","4","22","5","16","23","10","15","13","3","11","24","17","1"," 21 ", " 14 ", " 19 ", " 0 ", " 2 ", " 12 ", " 9 ", " 18 ", " 6 "] this is sequentially upset.Therefore, client first generates 5*5 Div blocks, arrange and show by 5 rows 5, then start to set Background to div blocks.The Background of decryption is placed on the 0th, the 8th according to the 20th The 2nd is placed on and is placed on the 1st, the 7th ... ... such order to restore original sliding trace background picture, as shown in figure 11.
It should be noted that although describing the operation of the inventive method with particular order in the accompanying drawings, still, this is not required that Or imply and must perform these operations according to the particular order, or the operation having to carry out shown in whole could realize the phase The result of prestige.Additionally or alternatively, it is convenient to omit some steps, multiple steps are merged into a step and performed, and/or will One step is decomposed into execution of multiple steps.
By the description of above example, it is known that sliding trace background picture provided in an embodiment of the present invention adds Close, decryption method and device, the content of sliding trace background picture can be directly returned to, without using link form, reduce clothes Business device implementation complexity;Also, the present invention uses out of order encryption and dynamic encryption, and significantly increase cracker cracks cost And difficulty.
In above-mentioned detailed description, various features combine in single embodiment together, to simplify the disclosure.No This open method should be construed to reflect such intention, i.e. the embodiment of theme claimed needs to compare The more features of feature clearly stated in each claim.On the contrary, as appended claims is reflected Like that, the present invention is in the state fewer than whole features of disclosed single embodiment.Therefore, appended claims It is hereby expressly incorporated into detailed description, wherein each claim is alone as the single preferred embodiment of the present invention.
To enable any technical staff in the art to realize or using the present invention, disclosed embodiment being entered above Description is gone.To those skilled in the art;The various modification modes of these embodiments will be apparent from, and this The General Principle of text definition can also be applied to other embodiments on the basis of the spirit and scope of the disclosure is not departed from. Therefore, the disclosure is not limited to embodiments set forth herein, but most wide with principle disclosed in the present application and novel features Scope is consistent.
Described above includes the citing of one or more embodiments.Certainly, in order to above-described embodiment is described and description portion The all possible combination of part or method is impossible, but it will be appreciated by one of ordinary skill in the art that each implementation Example can do further combinations and permutations.Therefore, embodiment described herein is intended to fall into appended claims Protection domain in all such changes, modifications and variations.In addition, with regard to the term used in specification or claims "comprising", the mode that covers of the word are similar to term " comprising ", just as " including " solved in the claims as link word As releasing.In addition, the use of any one term "or" in the specification of claims is to represent " non-exclusionism Or ".
Those skilled in the art will also be appreciated that the various illustrative components, blocks that the embodiment of the present invention is listed (illustrative logical block), unit, and step can pass through the knot of electronic hardware, computer software, or both Conjunction is realized.To clearly show that the replaceability of hardware and software (interchangeability), above-mentioned various explanations Property part (illustrative components), unit and step universally describe their function.Such work( Can be that specific application and the design requirement of whole system are depended on to realize by hardware or software.Those skilled in the art Various methods can be used to realize described function, but this realization is understood not to for every kind of specific application Beyond the scope of protection of the embodiment of the present invention.
Various illustrative logical blocks described in the embodiment of the present invention, or unit can by general processor, Digital signal processor, application specific integrated circuit (ASIC), field programmable gate array or other programmable logic devices, discrete gate Or the design of transistor logic, discrete hardware components, or any of the above described combination is come the function described by realizing or operate.General place It can be microprocessor to manage device, and alternatively, the general processor can also be any traditional processor, controller, microcontroller Device or state machine.Processor can also be realized by the combination of computing device, such as digital signal processor and microprocessor, Multi-microprocessor, one or more microprocessors combine a Digital Signal Processor Core, or any other like configuration To realize.
The step of method or algorithm described in the embodiment of the present invention can be directly embedded into hardware, computing device it is soft Part module or the combination of both.Software module can be stored in RAM memory, flash memory, ROM memory, EPROM storages Other any form of storaging mediums in device, eeprom memory, register, hard disk, moveable magnetic disc, CD-ROM or this area In.Exemplarily, storaging medium can be connected with processor, to allow processor to read information from storaging medium, and Write information can be deposited to storaging medium.Alternatively, storaging medium can also be integrated into processor.Processor and storaging medium can To be arranged in ASIC, ASIC can be arranged in user terminal.Alternatively, processor and storaging medium can also be arranged at use In different parts in the terminal of family.
In one or more exemplary designs, above-mentioned function described by the embodiment of the present invention can be in hardware, soft Part, firmware or any combination of this three are realized.If realized in software, these functions can store and computer-readable On medium, or with one or more instruction or code form be transmitted on the medium of computer-readable.Computer readable medium includes electricity Brain storaging medium and it is easy to so that allowing computer program to be transferred to other local telecommunication medias from a place.Storaging medium can be with It is that any general or special computer can be with the useable medium of access.For example, such computer readable media can include but It is not limited to RAM, ROM, EEPROM, CD-ROM or other optical disc storage, disk storage or other magnetic storage devices, or other What can be used for carrying or store with instruct or data structure and it is other can be by general or special computer or general or specially treated The medium of the program code of device reading form.In addition, any connection can be properly termed computer readable medium, example Such as, if software is to pass through a coaxial cable, fiber optic cables, double from a web-site, server or other remote resources Twisted wire, Digital Subscriber Line (DSL) or with defined in being also contained in of the wireless way for transmitting such as infrared, wireless and microwave In computer readable medium.Described disk (disk) and disk (disc) include Zip disk, radium-shine disk, CD, DVD, floppy disk And Blu-ray Disc, disk is generally with magnetic duplication data, and disk generally carries out optical reproduction data with laser.Combinations of the above It can also be included in computer readable medium.
Above-described embodiment, the purpose of the present invention, technical scheme and beneficial effect are carried out further Describe in detail, should be understood that the embodiment that the foregoing is only the present invention, be not intended to limit the present invention Protection domain, within the spirit and principles of the invention, any modification, equivalent substitution and improvements done etc., all should include Within protection scope of the present invention.

Claims (10)

  1. A kind of 1. encryption method of sliding trace background picture, it is characterised in that including:
    The acquisition identifying code request that client is sent is received, generating original sliding trace according to the acquisition identifying code request carries on the back Scape picture;
    It is multiple segmentation blocks by the original sliding trace background picture random division, and uses the encryption factor generated at random Out of order arrangement is carried out to multiple segmentation blocks of the sliding trace background picture;
    The sliding trace background picture after the encryption factor and out of order arrangement is encoded according to the coded system of setting, it is raw Into corresponding encrypted characters string and return to the client.
  2. 2. the encryption method of sliding trace background picture according to claim 1, it is characterised in that it is described will be described original Sliding trace background picture random division be multiple segmentation blocks, and using the encryption factor that generates at random to the sliding trace Multiple segmentation blocks of background picture carry out out of order arrangement, specifically include:
    The original sliding trace background picture is divided into multiple segmentation blocks according to M rows, N row, the M and N are in setting model Enclose interior random generation;
    M*N-1 array is arrived in generation 0, and upsets the array, obtains the encryption factor, and the encryption factor includes being used to draw Parameter M, N of point original sliding trace background picture, and the array after upsetting;
    Multiple segmentation blocks of the original sliding trace background picture are carried out according to the encryption factor to upset sequence, obtained Sliding trace background picture after out of order arrangement.
  3. 3. the encryption method of sliding trace background picture according to claim 1, it is characterised in that described to use what is set Coded system encodes to the sliding trace background picture after the encryption factor and out of order arrangement, character string corresponding to generation And the client is sent to, including:
    The sliding trace background picture after the out of order arrangement is encoded using the coded system of setting, generates picture character String;
    The encryption factor is encoded using the coded system of setting, generates factor character string;
    The factor string-concatenation is generated into the encrypted characters string behind the picture character string, and is sent to the visitor Family end.
  4. 4. a kind of encryption device of sliding trace background picture, is arranged on server end, it is characterised in that including:
    Original image generation module, please according to the acquisition identifying code for receiving the acquisition identifying code request of client transmission Seek survival into original sliding trace background picture;
    Split order module, for being multiple segmentation blocks by the original sliding trace background picture random division, and use The encryption factor generated at random carries out out of order arrangement to multiple segmentation blocks of the sliding trace background picture;
    Coding module, for the coded system according to setting to the sliding trace Background after the encryption factor and out of order arrangement Piece is encoded, and encrypted characters string corresponding to generation simultaneously returns to the client.
  5. 5. the encryption device of sliding trace background picture according to claim 4, it is characterised in that the segmentation sequence mould Block specifically includes:
    Cutting unit, it is described for the original sliding trace background picture to be divided into multiple segmentation blocks according to M rows, N row M and N are generated at random in setting range;
    Encryption factor generation unit, M*N-1 array is arrived for generating 0, and upsets the array, obtain the encryption factor, The encryption factor includes being used to divide parameter M, N of the original sliding trace background picture, and the array after upsetting;
    Sequencing unit, for multiple segmentation blocks of the original sliding trace background picture to be carried out according to the encryption factor Upset sequence, obtain the sliding trace background picture after out of order arrangement.
  6. 6. the encryption device of sliding trace background picture according to claim 4, it is characterised in that the coding module tool Body includes:
    Picture text string generation unit, for the coded system using setting to the sliding trace Background after the out of order arrangement Piece is encoded, and generates picture character string;
    Factor text string generation unit, the encryption factor is encoded for the coded system using setting, generate the factor Character string;
    Concatenation unit, for the factor string-concatenation to be generated into the encrypted characters string behind the picture character string, And it is sent to the client.
  7. A kind of 7. decryption method of the sliding trace background picture based on encryption method described in claim 1, it is characterised in that bag Include:
    The reception server end is according to the encrypted characters string for obtaining identifying code request and returning received;
    The encrypted characters string is decoded according to the coded system of setting, obtains the slip after encryption factor and out of order arrangement Track background picture;
    According to the encryption factor, original sliding trace is restored from the sliding trace background picture after the out of order arrangement Background picture, the original sliding trace background picture are used to guide user to carry out sliding trace checking.
  8. 8. the decryption method of sliding trace background picture according to claim 7, it is characterised in that add described in the basis The close factor, original sliding trace background picture is restored from the sliding trace background picture after the out of order arrangement, specifically Including:
    In identifying code background picture region generation M rows, the figure layer block of N row;
    According to the encryption factor, the sliding trace background picture after the out of order arrangement corresponding to each figure layer block is determined In segmentation block, and according to it is corresponding segmentation block be each figure layer block set CSS css elements background image Background-image and corresponding wide width, high height and background positions background-position, make Obtain each figure layer block and show corresponding segmentation block in the sliding trace background picture after the out of order arrangement.
  9. 9. a kind of decryption device of the sliding trace background picture based on encryption device described in claim 4, is arranged on client, It is characterised in that it includes:
    Receiving module, for the reception server end according to the encrypted characters string for obtaining identifying code request and returning received;
    Decoder module, the encrypted characters string is decoded for the coded system according to setting, obtains encryption factor and unrest Sliding trace background picture after sequence arrangement;
    Recovery module, for according to the encryption factor, being restored from the sliding trace background picture after the out of order arrangement Original sliding trace background picture, the original sliding trace background picture are used to guide user's progress sliding trace to test Card.
  10. 10. the decryption device of sliding trace background picture according to claim 9, it is characterised in that the recovery module Specifically include:
    Figure layer block generation unit, for the figure layer block in identifying code background picture region generation M rows, N row;
    Corresponding reduction unit, for according to the encryption factor, after determining the out of order arrangement corresponding to each figure layer block Sliding trace background picture in segmentation block, and according to it is corresponding segmentation block be each figure layer block set CSS The background image background-image of css elements and corresponding wide width, high height and background positions Background-position so that each figure layer block shows right in the sliding trace background picture after the out of order arrangement The segmentation block answered.
CN201710547974.5A 2017-07-06 2017-07-06 A kind of encryption and decryption method and device of sliding trace background picture Pending CN107491686A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710547974.5A CN107491686A (en) 2017-07-06 2017-07-06 A kind of encryption and decryption method and device of sliding trace background picture

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710547974.5A CN107491686A (en) 2017-07-06 2017-07-06 A kind of encryption and decryption method and device of sliding trace background picture

Publications (1)

Publication Number Publication Date
CN107491686A true CN107491686A (en) 2017-12-19

Family

ID=60644655

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710547974.5A Pending CN107491686A (en) 2017-07-06 2017-07-06 A kind of encryption and decryption method and device of sliding trace background picture

Country Status (1)

Country Link
CN (1) CN107491686A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108109110A (en) * 2017-12-25 2018-06-01 努比亚技术有限公司 Image ciphering method, mobile terminal and computer readable storage medium
CN108390862A (en) * 2018-01-29 2018-08-10 丹露成都网络技术有限公司 A kind of graphic verification method based on image data encrypted indexes
CN108959900A (en) * 2018-07-10 2018-12-07 浪潮软件股份有限公司 A method of generating sliding identifying code picture
CN114338182A (en) * 2021-12-29 2022-04-12 中国电信股份有限公司 Data encryption method and device, nonvolatile storage medium and electronic equipment
CN115174758A (en) * 2022-06-06 2022-10-11 中国电信股份有限公司 Picture encryption method and device, electronic equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101656728A (en) * 2009-09-24 2010-02-24 杭州永控科技有限公司 Secure transmission method using time-varying incidental information flow as key information
CN104702406A (en) * 2013-12-04 2015-06-10 腾讯科技(深圳)有限公司 Identity verification method and identity verification device
CN105577684A (en) * 2016-01-25 2016-05-11 北京京东尚科信息技术有限公司 Anti-crawling methods, server, client and system
CN106131049A (en) * 2016-08-15 2016-11-16 福建中金在线信息科技有限公司 A kind of method of data transmission encryption and decryption
CN106341403A (en) * 2016-08-30 2017-01-18 竞技世界(北京)网络技术有限公司 Identifying code theft preventing method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101656728A (en) * 2009-09-24 2010-02-24 杭州永控科技有限公司 Secure transmission method using time-varying incidental information flow as key information
CN104702406A (en) * 2013-12-04 2015-06-10 腾讯科技(深圳)有限公司 Identity verification method and identity verification device
CN105577684A (en) * 2016-01-25 2016-05-11 北京京东尚科信息技术有限公司 Anti-crawling methods, server, client and system
CN106131049A (en) * 2016-08-15 2016-11-16 福建中金在线信息科技有限公司 A kind of method of data transmission encryption and decryption
CN106341403A (en) * 2016-08-30 2017-01-18 竞技世界(北京)网络技术有限公司 Identifying code theft preventing method

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108109110A (en) * 2017-12-25 2018-06-01 努比亚技术有限公司 Image ciphering method, mobile terminal and computer readable storage medium
CN108390862A (en) * 2018-01-29 2018-08-10 丹露成都网络技术有限公司 A kind of graphic verification method based on image data encrypted indexes
CN108959900A (en) * 2018-07-10 2018-12-07 浪潮软件股份有限公司 A method of generating sliding identifying code picture
CN114338182A (en) * 2021-12-29 2022-04-12 中国电信股份有限公司 Data encryption method and device, nonvolatile storage medium and electronic equipment
CN114338182B (en) * 2021-12-29 2024-04-12 中国电信股份有限公司 Data encryption method and device, nonvolatile storage medium and electronic equipment
CN115174758A (en) * 2022-06-06 2022-10-11 中国电信股份有限公司 Picture encryption method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN107491686A (en) A kind of encryption and decryption method and device of sliding trace background picture
CN104104649B (en) The method of page login, apparatus and system
CN104113551B (en) A kind of platform authorization method, platform service end and applications client and system
CN101542469B (en) System and method of transmitting/receiving security data
CN104113533B (en) Log in authorization method and device
CN104519050B (en) Login method and login system
CN105138924B (en) The method and apparatus for being not logged in preserving application operating information under state
CN104081701B (en) Communication means, system and the device of optical network system
CN104468790B (en) The processing method and client of cookie data
CN103795767B (en) Synchronization method and system for cross-application session information
CN106341234A (en) Authorization method and device
CN104573090B (en) A kind of sharing files method, device and terminal
CN102790772B (en) The processing method of Cookie data, server and client side
CN107070940A (en) Judge that malice logs in the method and device of IP address in a kind of login daily record from streaming
CN108509514A (en) A kind of big data analysis method and system based on block chain
CN109462655A (en) A kind of network remote assistance method, system, electronic equipment and medium
CN103246830A (en) Encrypting processing method, encrypting processing device, deciphering processing method and deciphering processing device of client side scripting
CN106649342A (en) Data processing method and apparatus in data acquisition platform
CN106899894B (en) The adaptive stream media method, apparatus and server of dynamic optimization
CN110519056A (en) A kind of login method, method for generating cipher code and its relevant apparatus
CN104954828A (en) Video data transmission method, device and system
CN107749854A (en) Client-based single-point logging method and system
CN109474418A (en) File enciphering method, document decryption method, device, medium and calculating equipment
CN104077374B (en) A kind of method and device for realizing the storage of IP disk files
CN109739492A (en) A kind of method, terminal, equipment and medium generating scripted code

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20171219