CN105897415A - Digital signature generation method and system capable of improving compatibility - Google Patents

Digital signature generation method and system capable of improving compatibility Download PDF

Info

Publication number
CN105897415A
CN105897415A CN201610395257.0A CN201610395257A CN105897415A CN 105897415 A CN105897415 A CN 105897415A CN 201610395257 A CN201610395257 A CN 201610395257A CN 105897415 A CN105897415 A CN 105897415A
Authority
CN
China
Prior art keywords
string
character
url
digital signature
key
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.)
Granted
Application number
CN201610395257.0A
Other languages
Chinese (zh)
Other versions
CN105897415B (en
Inventor
龙付成
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Yayue Technology Co ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201610395257.0A priority Critical patent/CN105897415B/en
Publication of CN105897415A publication Critical patent/CN105897415A/en
Application granted granted Critical
Publication of CN105897415B publication Critical patent/CN105897415B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/32Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
    • H04L9/3247Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials involving digital signatures
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/08Key distribution or management, e.g. generation, sharing or updating, of cryptographic keys or passwords
    • H04L9/0861Generation of secret information including derivation or calculation of cryptographic keys or passwords
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/08Key distribution or management, e.g. generation, sharing or updating, of cryptographic keys or passwords
    • H04L9/0861Generation of secret information including derivation or calculation of cryptographic keys or passwords
    • H04L9/0866Generation of secret information including derivation or calculation of cryptographic keys or passwords involving user or device identifiers, e.g. serial number, physical or biometrical information, DNA, hand-signature or measurable physical characteristics

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention relates to a digital signature generation method and system capable of improving compatibility. Through a method of acquiring a URL (Uniform Resource Locator) coded string which corresponds to source data and generating a digital signature according to the URL coded string and a key, the compatibility of the digital signature is ensured. Various URL coding environments are identified, and homogenization processing is performed on strings to be coded, so that the problem that URL coding results in different coding environments are inconsistent is solved, and the digital signature is irrelevant to the URL coding environments. A key generation method and the digital signature generation method are provided, so that the security of the digital signature can be improved on the basis of improving the compatibility of the digital signature. Moreover, through a homogenization processing method for the strings to be coded, technical support can be provided for relevant application fields in which URL coding is used in a cross-platform and cross-language way.

Description

A kind of digital signature promoting compatibility generates method and system
Technical field
The present invention relates to network safety filed, be specifically related to a kind of digital signature promoting compatibility and generate Method and system.
Background technology
Digital signature is the valid certificates that the sender to information sends information authenticity, has had Whole property and non repudiation, be the most commonly used technology safeguarding network security of network safety filed. After generally initial data being carried out certain computing, the i.e. available digital signature the most corresponding with original value, Digital signature can verify whether initial data is modified effectively.
During data signature generates, it usually needs use URL coding techniques, so-called URL compiles Code technology is also referred to as a percentage sign coding, refers to be converted to the character visible specified the percentage of correspondence Number coding, in order to data transmission avoids, when using, the ambiguity that some character causes.At various development languages The result that middle use URL coding techniques obtains not is identical, therefore in the environment of each language After using URL coding techniques, the digital signature obtained is the most incomplete same, thus causes about numeral The compatibility issue of signature.
As a example by Microsoft.NET platform, the URL encoder of this development environment Character '=' can be encoded into ' %3d ' rather than meet international standard by httpUtility.URLEncode %3D, the URL directly obtained under this development environment coding of RFC3986 definition and international standard Inconsistent meeting causes digital signature can not pass through checking;
As a example by JAVA development platform, the URL encoder of this development environment Character " * " can not be encoded by java.net.URLEncoder, owing to defining " * " in international standard Must encode, in the most if desired carrying out the source string of URL coding exists " * ", can cause raw The signature become can not be by checking;
Additionally, some language URL coded method " space " can be encoded to "+", actually state In the standard of border, regulation should be encoded to " %20 ".
Visible, different coding environments causes the significant difference of coding result, and encodes the one of result Cause property is to ensure that the effectiveness of digital signature and compatible premise, and still goes up not in currently available technology Existence can solve the technical scheme that digital signature is compatible the most adaptively.
Summary of the invention
In order to solve above-mentioned technical problem, the present invention proposes a kind of digital signature life promoting compatibility Become method and system, by various URL coding environments being carried out identification and entering for character string to be encoded Row homogenization processes, and solves the problem that under different coding environment, URL coding result is inconsistent, thus protects The compatibility of card digital signature.
The present invention realizes with following technical scheme, a kind of digital signature generation side promoting compatibility Method, including:
The unified URL coded string corresponding with described source data, described unification is obtained according to source data URL coded string includes uniforming substring, and described homogenization substring is by the element in described source data Carry out homogenization coding generate, described homogenization substring meet URL coding criterion and with described source number According to URL coding environment unrelated;
Obtain key, and according to unified URL coded string corresponding to described source data and described key Generate digital signature.
Preferably, described homogenization coded method includes:
Described element is encoded, generates the URL under the URL coding environment of described source data Coded string;
Character incompatible with described URL coding criterion in described URL coded string is replaced with The character compatible with described URL coding criterion, it is thus achieved that the homogenization substring corresponding with described element.
Preferably, described source data packet includes the request method in network request, URL path and parameter, The described unified URL coded string obtaining described source data corresponding according to described source data includes:
Obtaining the first character string, described first character string is the homogeneous beggar corresponding with described URL path String;
Obtaining the second character string, described second character string is the homogenization substring corresponding with described parameter;
By the request method in described network request, described first character string and described second character string it Between use character " " to be attached successively, it is thus achieved that the unified URL corresponding with described source data encodes Character string.
Preferably, the described unified URL coded string corresponding according to described source data and described key Generate described digital signature to include:
Obtaining key string, described key string is made up of described key and splicing character " & ";
Using unified URL coded string corresponding with described source data for described key string as The parameter of hash function carries out hash operations, using operation result as described digital signature.
Preferably, a length of M of described key, the generation method of described key includes:
Select character and/or the character string participating in building key;
Described character and/or character string are spliced, forms the target string of a length of L;
One target character of extraction each time, altogether extraction M time;
M described target character is spliced to form key successively.
Preferably, extraction target character all includes each time:
Stochastic generation one 0 is to the Integer N between L-1, and L is the length of described target string;
Using the character of the n-th position in described target string as target character.
A kind of digital signature promoting compatibility generates system, obtains including unified URL coded string Module, Key Acquisition Module and digital signature acquisition module,
Described unified URL coded string acquisition module is for obtaining described source data pair according to source data The unified URL coded string answered, described unified URL coded string includes uniforming substring, Described homogenization substring is carried out homogenization coding by the element in described source data and generates, described homogenization Substring meets URL coding criterion and unrelated with the URL coding environment of described source data,
Described Key Acquisition Module is used for obtaining key,
Described digital signature acquisition module is for according to the unified URL coded word corresponding with described source data Symbol string and described key generate described digital signature.
Preferably, described unified URL coded string acquisition module includes that uniforming substring obtains submodule Block, described homogenization substring obtains submodule and includes coding unit and homogenization processing unit, described volume Code unit, for encoding the element of described source data, generates and encodes at the URL of described source data URL coded string under environment;Described homogenization processing unit is for by described URL coded word In symbol string, the character incompatible with described URL coding criterion replaces with and holds concurrently with described URL coding criterion The character held, it is thus achieved that the homogenization substring corresponding with described element.
Preferably, described source data packet includes the request method in network request, URL path and parameter, Described unified URL coded string acquisition module also includes that the first character string obtains submodule, the second word Symbol string obtains submodule and unified URL coded string generates submodule,
Described first character string obtains submodule and is used for obtaining the first character string, and described first character string is The homogenization substring corresponding with described URL path, described second character string obtains submodule and is used for obtaining Second character string, described second character string is the homogenization substring corresponding with described parameter, described unification URL coded string generate submodule for by the request method in described network request, described first Character " & " is used to be attached successively between character string and described second character string, it is thus achieved that with described source The unified URL coded string that data are corresponding.
Preferably, described digital signature acquisition module includes that key string obtains submodule and numeral is signed Name generates submodule,
Described key string obtains submodule for being spliced to form close by described key and character " & " Key character string, described digital signature generates submodule for by described key string and described source data Corresponding unified URL coded string carries out hash operations respectively as the parameter of hash function and will transport Calculate result as described digital signature.
Preferably, described Key Acquisition Module includes selecting submodule, splicing submodule, target character Extraction submodule and key generate submodule,
Described selection submodule is for selecting the character and/or character string, the described splicing that participate in building key Submodule, for described character and/or character string being spliced, forms the target string of a length of L, Described target character extraction submodule is for extracting target character, each time from described target string Extracting a target character, altogether extraction M time, described key generates submodule for splicing M successively Described target character constitutes key.
The invention has the beneficial effects as follows:
The present invention proposes a kind of digital signature promoting compatibility and generates method and system, by respectively Plant the identification of URL coding environment and homogenization process is carried out for character string to be encoded, solving difference and compile The problem that under code environment, URL coding result is inconsistent, thus ensure the compatibility of digital signature, this Bright key generation method and the numeral signature generating method of additionally providing, thus promoting digital signature compatibility The safety of digital signature can also be promoted on the basis of property.Additionally, for word to be encoded in the present invention The homogenization processing method of symbol string can also be related application cross-platform, that encode across language use URL Field provides technical support.
Accompanying drawing explanation
Fig. 1 is that the compatible digital signature that promotes provided in embodiment 1 generates method flow diagram;
Fig. 2 is the homogenization coded method flow chart provided in embodiment 2;
Fig. 3 is the unified URL coded string acquisition methods flow chart provided in embodiment 2;
Fig. 4 is the key acquisition method flow chart provided in embodiment 3;
Fig. 5 is the digital signature acquisition methods flow chart provided in embodiment 3;
Fig. 6 is the system schematic that the lifting digital signature provided in embodiment 4 is compatible;
Fig. 7 is the unified URL acquisition module schematic diagram provided in embodiment 4;
Fig. 8 is the digital signature acquisition module schematic diagram provided in embodiment 4;
Fig. 9 is the Key Acquisition Module schematic diagram provided in embodiment 4.
Specific implementation method
For making the object, technical solutions and advantages of the present invention clearer, below in conjunction with accompanying drawing to this Invention is described in further detail.
For digital signature, identical sources data should ensure that and obtain identical digital signature result, and In prior art, identical sources data produce difference because of the difference of URL coding environment, and this species diversity is The inconsistent of digital signature result can be caused eventually, not only cause data signature generation side and data signature The resource loss of authentication, has also had a strong impact on the performance that digital signature is cross-platform, constrains numeral label The development of name.In view of the method that there is no the URL coding complying fully with international standard in prior art, Also not having to encode, for various development environment URL, the method carrying out homogenization process, the present invention provides The method that can generate the URL coding complying fully with international standard, has filled up the vacancy of prior art, Provide simultaneously and promote digital signing safety and compatible method.
Embodiment 1:
A kind of digital signature promoting compatibility generates method, as it is shown in figure 1, include:
S101. the unified URL coded string corresponding with described source data, institute are obtained according to source data Stating unified URL coded string to include uniforming substring, described homogenization substring is by described source data Element carry out homogenization coding generate, described homogenization substring meet URL coding criterion and with institute The URL coding environment stating source data is unrelated;
S102. obtain key, and according to the unified URL coded string corresponding with described source data and Described key generates digital signature.
The homogenization substring that the present embodiment has platform-neutral by use has constructed unified URL volume Code character string, thus ensure that the compatibility of digital signature.
Embodiment 2:
A kind of digital signature promoting compatibility generates method, including:
S201. the unified URL coded string corresponding with described source data, institute are obtained according to source data Stating unified URL coded string to include uniforming substring, described homogenization substring is by described source data Element carry out homogenization coding generate, described homogenization substring meet URL coding criterion and with institute The URL coding environment stating source data is unrelated.
Described homogenization coded method is as in figure 2 it is shown, include:
Described element is encoded, generates the URL under the URL coding environment of described source data Coded string, described coding environment includes language and the coding of described source data place program use Concrete function used.
According to table 1 by word incompatible with described URL coding criterion in described URL coded string The character that symbol replaces with and described URL coding criterion is compatible, thus obtain corresponding with described element equal One beggar's string.Listing the coding result for partially visible character in table 1, wherein dash area is The coding result that under each coding environment, coding obtains and the present embodiment uniform the coding knot in substring The difference section of fruit, is replaced the time that can save significantly on replacement operation according to difference section.
Table 1 character visible coding schedule
Because character visible is divided into reserved character and non-reserved character two class in URL coding criterion. Reserved character is the character with particular meaning, and the character without particular meaning can not be by transcoding, this reality Execute in example and the character visible without particular meaning is not encoded, to save coding cost.
Described source data packet includes the request method in network request, URL path and parameter, described basis Source data obtains the unified URL coded string corresponding with described source data as it is shown on figure 3, include:
S2011. obtaining the first character string, described first character string is corresponding with described URL path equal One beggar's string, homogenization substring notation corresponding to described URL path is fn (path);
S2012. obtaining the second character string, described second character string is the homogenization corresponding with described parameter Substring, homogenization substring notation corresponding to described parameter is fn (paras);
S2013. by the request method in described network request, described first character string and described second word Character " & " is used to be attached successively between symbol string, it is thus achieved that the unified URL corresponding with described source data Coded string, the unified URL coded string corresponding with described source data is expressed as method+ "&"+fn(path)+"&"+fn(paras)。
S202. obtain key, and according to the unified URL coded string corresponding with described source data and Described key generates digital signature.
The present embodiment determines coding result and the international standard spcial character that there is any discrepancy, by described The process of spcial character achieves the homogenization of coding result, thus ensure that the compatibility of digital signature. The method that the present embodiment provides can also be related application neck cross-platform, that encode across language use URL Territory provides technical support.
Embodiment 3:
A kind of digital signature promoting compatibility generates method, including:
S301. the unified URL coded string corresponding with described source data, institute are obtained according to source data Stating unified URL coded string to include uniforming substring, described homogenization substring is by described source data Element carry out homogenization coding generate, described homogenization substring meet URL coding criterion and with institute The URL coding environment stating source data is unrelated.
Described homogenization coded method includes:
Described element is encoded, generates the URL under the URL coding environment of described source data Coded string, described coding environment includes language and the coding of described source data place program use Concrete function used.
According to table 1 in embodiment 2 by described URL coded string with described URL coding criterion Incompatible character replaces with the character compatible with described URL coding criterion, it is thus achieved that with described element pair The homogenization substring answered.
Described source data packet includes the request method in network request, URL path and parameter, described basis The unified URL coded string that described source data obtains described source data corresponding includes:
S3011. obtaining the first character string, described first character string is described network request Zhong URL road The unified URL coded string that footpath is corresponding;
S3012. obtaining the second character string, described second character string is the homogenization corresponding with described parameter Substring;
S3013. by the request method in described network request, described first character string and described second word Character " & " is used to be attached successively between symbol string, it is thus achieved that the unified URL corresponding with described source data Coded string.
S302. key is obtained according to described source data.
The a length of M of described key, the generation method of described key as shown in Figure 4, including:
S3021. character and/or the character string participating in building key is selected.
S3022. described character and/or character string are spliced, form the target string of a length of L S。
Select to participate in character and/or the character string that key builds, can be upper and lower case letter, numeral, mark Point, the process mutually carrying out splicing is unrelated with order, and result is the complete of one a length of L of formation Target string S.As a example by L=16, S can be " D56} |;',EdefF23”.
One target character of extraction the most each time, altogether extraction M time.Extract target character each time All include:
Stochastic generation one 0 is to the Integer N between L-1, and L is the length of described target string.Raw The formula of one-tenth N is: N=Math.random () * 100%L.
Using the character of the n-th position in described target string as target character.
Splice described M target character the most successively and constitute key.
S303. generate according to the unified URL coded string corresponding with described source data and described key Digital signature.
Specifically, raw according to the unified URL coded string corresponding with described source data and described key Become the step of described digital signature as it is shown in figure 5, include:
S3031. obtaining key string, described key string is by splicing character after described key " & " is constituted.If described key is character string A, the most described key string is A&.
S3032. by unified URL coded string corresponding with described source data for described key string Parameter respectively as hash function carries out hash operations and using operation result as described digital signature.
If digital signature is sig, unified URL coded string corresponding to described source data is D, then Sig=hmac-sha1 (D, A&).
The present embodiment ensure that digital signature carrying out homogenization process for the element in source data Compatible basis on, it is further provided key and the algorithm of digital signature, thus improve The safety of digital signature.
Embodiment 4:
A kind of digital signature generation system promoting compatibility, as shown in Figure 6, including:
Unified URL coded string acquisition module 601, for obtaining described source data according to source data Corresponding unified URL coded string, described unified URL coded string includes uniforming substring, Described homogenization substring is carried out homogenization coding by the element in described source data and generates, described homogenization Substring meets URL coding criterion and unrelated with the URL coding environment of described source data;
Key Acquisition Module 602, is used for obtaining key;
Digital signature acquisition module 603, for according to the unified URL coding corresponding with described source data Character string and described key generate described digital signature.
Specifically, described unified URL coded string acquisition module 601 as it is shown in fig. 7, comprises:
Homogenization substring obtains submodule 6011, is used for carrying out homogenization coding, described homogenization substring Obtain submodule 6011 to include:
Coding unit, for encoding the element of described source data, generates in described source data URL coded string under URL coding environment;
Homogenization processing unit, described homogenization processing unit is for by described URL coded string The character incompatible with described URL coding criterion replaces with the word compatible with described URL coding criterion Symbol, it is thus achieved that the homogenization substring corresponding with described element.
Specifically, described source data packet includes the request method in network request, URL path and parameter three Individual element, described unified URL coded string acquisition module 601 also includes:
First character string obtains submodule 6012, for obtaining the first character string, described first character string For the homogenization substring corresponding with described URL path.
Second character string obtains submodule 6013, for obtaining the second character string, described second character string For the homogenization substring corresponding with described parameter.
Unified URL coded string generates submodule 6014, for by the request in described network request Character " & " is used to be attached successively between mode, described first character string and described second character string, Obtain the unified URL coded string corresponding with described source data.
Specifically, described first character string obtains submodule 6012 and obtains son by calling homogenization substring Module 6011 obtains the first character string and described first character string transmission is encoded to described unified URL Text string generation submodule 6014;Described second character string obtains submodule 6013 by calling homogenization Substring obtains submodule 6011 and obtains the second character string and by described second character string transmission to described unification URL coded string generates submodule 6014.
Specifically, as shown in Figure 8, described digital signature acquisition module 603 includes:
Key string obtains submodule 6031, for described key and character " & " being spliced to form Key string;
Digital signature generates submodule 6032, for described key string is corresponding with described source data Unified URL coded string carry out hash operations respectively as the parameter of hash function and computing tied Fruit is as described digital signature.
Specifically, as it is shown in figure 9, described Key Acquisition Module 602 includes:
Select submodule 6021, for selecting the character and/or the character string that participate in building key;
Splicing submodule 6022, for described character and/or character string being spliced, is formed a length of The target string of L;
Target character extraction submodule 6023, for extracting target character from described target string, One target character of extraction each time, altogether extraction M time;
Key generates submodule 6024, constitutes key for M described target character of splicing successively.
A kind of digital signature promoting compatibility that the present embodiment provides generates system, solves different volume The problem that under code environment, URL coding result is inconsistent, thus ensure the compatibility of digital signature, pass through Provide Key Acquisition Module and digital signature acquisition module, thus promote digital signature compatibility On the basis of can also promote the safety of digital signature.Additionally, the device that the present embodiment provides can also For cross-platform, across the related application field offer technical support that language use URL encodes.
Technical scheme is realized by terminal, and this terminal can be computer Any one or more computer terminals in terminal group.Alternatively, above computer terminal is also Could alternatively be the terminal units such as mobile terminal.
Described terminal includes processor and memorizer.Described memorizer is used for storing in the present invention The programmed instruction/module promoted in compatible digital signature generation system, described processor is by fortune Programmed instruction/module that row is stored in memorizer, generates the above-mentioned digital signature promoting compatibility.
Part that prior art is contributed by technical scheme the most in other words or this skill Completely or partially can embodying with the form of software product of art scheme, this computer software product It is stored in storage medium, including some instructions with so that one or more computer equipment (can be Personal computer, server or the network equipment etc.) perform method described in each embodiment of the present invention All or part of step.
In the above embodiment of the present invention, the description to each embodiment all emphasizes particularly on different fields, and certain is real Execute the part not having to describe in detail in example, may refer to the associated description of other embodiments.
In several embodiments provided herein, it should be understood that device described above is real Executing example is only schematically, the division of the most described module/unit, is only a kind of logic function and draws Point, actual can have when realizing other dividing mode, the most multiple unit or assembly can in conjunction with or Person is desirably integrated into another system, or some features can be ignored, or does not performs.Can be according to reality The mesh needing to select some or all of module/unit therein to reach to realize the present invention program on border 's.
It addition, each module/unit in each embodiment of the present invention can be integrated in a processing unit In, it is also possible to it is that unit is individually physically present, it is also possible to two or more unit are integrated in In one unit.Above-mentioned integrated unit both can realize to use the form of hardware, it would however also be possible to employ soft The form of part functional unit realizes.
The above is only the preferred embodiment of the present invention, it is noted that for the art For those of ordinary skill, under the premise without departing from the principles of the invention, it is also possible to make some improvement And retouching, these improvements and modifications also should be regarded as protection scope of the present invention.

Claims (11)

1. the digital signature promoting compatibility generates method, it is characterised in that including:
The unified URL coded string corresponding with described source data, described unification is obtained according to source data URL coded string includes uniforming substring, and described homogenization substring is by the element in described source data Carry out homogenization coding generate, described homogenization substring meet URL coding criterion and with described source number According to URL coding environment unrelated;
Obtain key, and according to unified URL coded string corresponding to described source data and described key Generate digital signature.
A kind of digital signature promoting compatibility the most according to claim 1 generates method, and it is special Levying and be, described homogenization coding includes:
Described element is encoded, generates the URL under the URL coding environment of described source data Coded string;
Character incompatible with described URL coding criterion in described URL coded string is replaced with The character compatible with described URL coding criterion, it is thus achieved that the homogenization substring corresponding with described element.
A kind of digital signature promoting compatibility the most according to claim 2 generates method, and it is special Levying and be, described source data packet includes the request method in network request, URL path and parameter, described Include according to the unified URL coded string that described source data obtains described source data corresponding:
Obtaining the first character string, described first character string is the homogeneous beggar corresponding with described URL path String;
Obtaining the second character string, described second character string is the homogenization substring corresponding with described parameter;
By the request method in described network request, described first character string and described second character string it Between use character " " to be attached successively, it is thus achieved that the unified URL corresponding with described source data encodes Character string.
A kind of digital signature promoting compatibility the most according to claim 3 generates method, and it is special Levying and be, the described unified URL coded string corresponding according to described source data and described key generate Described digital signature includes:
Obtaining key string, described key string is made up of described key and splicing character " & ";
Using unified URL coded string corresponding with described source data for described key string as The parameter of hash function carries out hash operations, using operation result as described digital signature.
A kind of digital signature promoting compatibility the most according to claim 1 generates method, and it is special Levy and be, a length of M of described key, the generation method of described key includes:
Select character and/or the character string participating in building key;
Described character and/or character string are spliced, forms the target string of a length of L;
One target character of extraction each time, altogether extraction M time;
M described target character is spliced to form key successively.
6. generate method according to a kind of digital signature promoting compatibility described in claim 5, its Being characterised by, extraction target character all includes each time:
Stochastic generation one 0 is to the Integer N between L-1, and L is the length of described target string;
Using the character of the n-th position in described target string as target character.
7. the digital signature promoting compatibility generates system, it is characterised in that include unified URL Coded string acquisition module, Key Acquisition Module and digital signature acquisition module,
Described unified URL coded string acquisition module is for obtaining described source data pair according to source data The unified URL coded string answered, described unified URL coded string includes uniforming substring, Described homogenization substring is carried out homogenization coding by the element in described source data and generates, described homogenization Substring meets URL coding criterion and unrelated with the URL coding environment of described source data,
Described Key Acquisition Module is used for obtaining key,
Described digital signature acquisition module is for according to the unified URL coded word corresponding with described source data Symbol string and described key generate described digital signature.
A kind of digital signature promoting compatibility the most according to claim 7 generates system, and it is special Levying and be, described unified URL coded string acquisition module includes that uniforming substring obtains submodule, Described homogenization substring obtains submodule and includes coding unit and homogenization processing unit, described coding list Unit, for encoding the element of described source data, generates the URL coding environment in described source data Under URL coded string;Described homogenization processing unit is for by described URL coded string In the character incompatible with described URL coding criterion replace with and described URL coding criterion is compatible Character, it is thus achieved that the homogenization substring corresponding with described element.
A kind of digital signature promoting compatibility generates system, its feature Being, described source data packet includes the request method in network request, URL path and parameter, described system One URL coded string acquisition module also includes that the first character string obtains submodule, the second character string obtains Take submodule and unified URL coded string generate submodule,
Described first character string obtains submodule and is used for obtaining the first character string, and described first character string is The homogenization substring corresponding with described URL path, described second character string obtains submodule and is used for obtaining Second character string, described second character string is the homogenization substring corresponding with described parameter, described unification URL coded string generate submodule for by the request method in described network request, described first Character " & " is used to be attached successively between character string and described second character string, it is thus achieved that with described source The unified URL coded string that data are corresponding.
A kind of digital signature promoting compatibility generates system, its feature Being, described digital signature acquisition module includes that key string obtains submodule and digital signature generates Submodule,
Described key string obtains submodule for being spliced to form close by described key and character " & " Key character string, described digital signature generates submodule and is used for described key string and institute and states source number Carry out hash operations according to corresponding unified URL coded string respectively as the parameter of hash function and incite somebody to action Operation result is as described digital signature.
11. a kind of digital signature promoting compatibility generate system, its feature Being, described Key Acquisition Module includes selecting submodule, splicing submodule, target character extraction Module and key generate submodule,
Described selection submodule is for selecting the character and/or character string, the described splicing that participate in building key Submodule, for described character and/or character string being spliced, forms the target string of a length of L, Described target character extraction submodule is for extracting target character, each time from described target string Extracting a target character, altogether extraction M time, described key generates submodule for splicing M successively Described target character constitutes key.
CN201610395257.0A 2016-06-06 2016-06-06 A kind of digital signature generation method and system promoting compatibility Active CN105897415B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610395257.0A CN105897415B (en) 2016-06-06 2016-06-06 A kind of digital signature generation method and system promoting compatibility

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610395257.0A CN105897415B (en) 2016-06-06 2016-06-06 A kind of digital signature generation method and system promoting compatibility

Publications (2)

Publication Number Publication Date
CN105897415A true CN105897415A (en) 2016-08-24
CN105897415B CN105897415B (en) 2018-11-09

Family

ID=56710261

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610395257.0A Active CN105897415B (en) 2016-06-06 2016-06-06 A kind of digital signature generation method and system promoting compatibility

Country Status (1)

Country Link
CN (1) CN105897415B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103259651A (en) * 2013-05-30 2013-08-21 成都欣知科技有限公司 Encryption and decryption method and system of terminal data
US20140344569A1 (en) * 2013-05-20 2014-11-20 Alibaba Group Holding Limited Protecting data
CN104869102A (en) * 2014-02-24 2015-08-26 腾讯科技(北京)有限公司 Authorization method, device and system based on xAuth protocols
CN105095699A (en) * 2014-05-20 2015-11-25 富士通株式会社 Watermark information embedding method and device, and watermark information decoding method
CN105243168A (en) * 2015-11-11 2016-01-13 中国建设银行股份有限公司 Data migration method and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140344569A1 (en) * 2013-05-20 2014-11-20 Alibaba Group Holding Limited Protecting data
CN103259651A (en) * 2013-05-30 2013-08-21 成都欣知科技有限公司 Encryption and decryption method and system of terminal data
CN104869102A (en) * 2014-02-24 2015-08-26 腾讯科技(北京)有限公司 Authorization method, device and system based on xAuth protocols
CN105095699A (en) * 2014-05-20 2015-11-25 富士通株式会社 Watermark information embedding method and device, and watermark information decoding method
CN105243168A (en) * 2015-11-11 2016-01-13 中国建设银行股份有限公司 Data migration method and system

Also Published As

Publication number Publication date
CN105897415B (en) 2018-11-09

Similar Documents

Publication Publication Date Title
TWI806918B (en) System for simplifying executable instructions for optimised verifiable computation and related method and storage medium
CN103227719B (en) Generate the system and method without key digital multi-signature
Chu et al. A genetic algorithm for the generalised assignment problem
WO2015150376A1 (en) Optimizing and protecting software
CN109032691A (en) A kind of small routine operation method, device and storage medium
CN105573956B (en) Sequencing method and network communication method based on serializing
CN109784009A (en) Code obfuscation method, system, computer installation and computer readable storage medium
US11349816B2 (en) Obfuscating source code sent, from a server computer, to a browser on a client computer
CN104363285B (en) A kind of network communication program generation method and device
WO2014049504A1 (en) Detecting malicious advertisements using source code analysis
CN109447599A (en) Digital asset distributing method and system based on block chain
CN110059456A (en) Code protection method, code protection device, storage medium and electronic equipment
CN110400217A (en) The regular changing process method and device of intelligent contract
CN102708432A (en) Method and system digital for processing digital content according to a workflow
CN110264361A (en) A kind of data analysis method and device of block chain
CN115469894A (en) Application program installation control method, device, equipment and storage medium
CN100504878C (en) SQL statement construction method and apparatus for preprocessing special-character
CN109471620A (en) A kind of automatic generation method of APP, device, terminal device and readable storage medium storing program for executing
CN106599623B (en) A kind of application similarity calculating method and device
CN108008959A (en) A kind of Software Development Kit SDK cut-in methods, system and device
CN103793240B (en) Interface scans method, interface scans device and corresponding update of plug-in method
CN110543783A (en) Voting system and implementation method, equipment and storage medium thereof
CN110457289A (en) Advertisement promotion channel interconnection method, system, electronic equipment and readable storage medium storing program for executing
CN105897415A (en) Digital signature generation method and system capable of improving compatibility
CN107122446A (en) The synchronisation control means and system of subscriber phone number between a kind of bank's multisystem

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20221116

Address after: 1402, Floor 14, Block A, Haina Baichuan Headquarters Building, No. 6, Baoxing Road, Haibin Community, Xin'an Street, Bao'an District, Shenzhen, Guangdong 518100

Patentee after: Shenzhen Yayue Technology Co.,Ltd.

Address before: 2, 518000, East 403 room, SEG science and Technology Park, Zhenxing Road, Shenzhen, Guangdong, Futian District

Patentee before: TENCENT TECHNOLOGY (SHENZHEN) Co.,Ltd.

TR01 Transfer of patent right