CN109347843A - A kind of parameter confidentiality agreement and electronic equipment based on educational system - Google Patents

A kind of parameter confidentiality agreement and electronic equipment based on educational system Download PDF

Info

Publication number
CN109347843A
CN109347843A CN201811260968.2A CN201811260968A CN109347843A CN 109347843 A CN109347843 A CN 109347843A CN 201811260968 A CN201811260968 A CN 201811260968A CN 109347843 A CN109347843 A CN 109347843A
Authority
CN
China
Prior art keywords
parameter
signature
formula
interface
value
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
CN201811260968.2A
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.)
Shenzhen Dianmao Technology Co Ltd
Original Assignee
Shenzhen Dianmao Technology 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 Shenzhen Dianmao Technology Co Ltd filed Critical Shenzhen Dianmao Technology Co Ltd
Priority to CN201811260968.2A priority Critical patent/CN109347843A/en
Publication of CN109347843A publication Critical patent/CN109347843A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/10Network architectures or network communication protocols for network security for controlling access to devices or network resources
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • 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

Abstract

The invention discloses a kind of parameter confidentiality agreement and electronic equipment based on educational system, wherein the method includes parameters and signature value that A. obtains interface called side;B. according to the corresponding signature value of scheduled signature formula calculating parameter, when consistent with the signature value received, then verification passes through, scheme of the present invention, adjustable complexity, and unconventional property improves safety.

Description

A kind of parameter confidentiality agreement and electronic equipment based on educational system
Technical field
The present invention relates to program application fields more particularly to a kind of parameter confidentiality agreement and electronics based on educational system to set It is standby.
Background technique
In current many internet projects, there are many interface joint debugging or interface docking, pass through http tune between interface With.Callable interface is externally provided using the mode of resetapi style, but the calling between many interfaces is to need to call What authentication and parameters signatures were verified avoids parameter from being tampered problem.
Therefore, the existing technology needs to be improved and developed.
Summary of the invention
In view of above-mentioned deficiencies of the prior art, the parameter secrecy based on educational system that the purpose of the present invention is to provide a kind of Agreement and electronic equipment, it is intended to solve the problems, such as to provide a kind of parameter confidentiality agreement being simple and efficient.
Technical scheme is as follows:
A kind of parameter confidentiality agreement based on educational system, wherein including
A. the parameter and signature value of interface called side are obtained;
B. according to the corresponding signature value of scheduled signature formula calculating parameter, when consistent with the signature value received, then school It tests and passes through.
The parameter confidentiality agreement based on educational system, wherein before the step A further include:
Preset the signature formula of interface called side Yu interface provider.
The parameter confidentiality agreement based on educational system, wherein preset interface called side and interface provider Signature formula the step of in include: be arranged signature formula definition rule and decrypting process.
The parameter confidentiality agreement based on educational system, wherein the signature formula is any one or more numbers Formula is learned to combine.
The parameter confidentiality agreement based on educational system, wherein in the step A, receiving interface provider is provided Parameter input signature value corresponding to the parameter to interface called side and according to the instruction of user.
A kind of electronic equipment, wherein include:
Including processor, it is adapted for carrying out each instruction, and
Equipment is stored, is suitable for storing a plurality of instruction, described instruction is suitable for being loaded and being executed by processor:
Obtain the parameter and signature value of interface called side;
According to the corresponding signature value of scheduled signature formula calculating parameter, when consistent with the signature value received, then verify Pass through.
The electronic equipment, wherein the processor is also used to load and execute: it presets interface called side and connects The signature formula of mouth provider.
The electronic equipment, wherein in the step of presetting signature formula of the interface called side with interface provider It include: the definition rule and decrypting process that signature formula is set.
The electronic equipment, wherein the signature formula is the combination of any one or more mathematical formulaes.
The electronic equipment, wherein the step of obtaining the parameter and signature value of interface called side includes: receiving interface The parameter that provider provides, and according to the instruction of user, signature value corresponding to the parameter is inputted to interface called side.
The utility model has the advantages that the invention discloses a kind of parameter confidentiality agreement and electronic equipment based on educational system, wherein institute The method of stating includes the parameter and signature value that A. obtains interface called side;B. corresponding according to scheduled signature formula calculating parameter Signature value, when consistent with the signature value received, then verification passes through, scheme of the present invention, adjustable complexity, very Rule property, improves safety.
Detailed description of the invention
Present invention will be further explained below with reference to the attached drawings and examples, in attached drawing:
Fig. 1 is the step flow chart of the parameter confidentiality agreement of the present invention based on educational system.
Fig. 2 is the structural schematic diagram of electronic equipment of the present invention.
Specific embodiment
The present invention provides a kind of parameter confidentiality agreement and electronic equipment based on educational system, for make the purpose of the present invention, Technical solution and effect are clearer, clear, and the present invention is described in more detail below.It should be appreciated that described herein Specific embodiment is only used to explain the present invention, is not intended to limit the present invention.
Referring to Fig. 1, being the step flow chart of the parameter confidentiality agreement of the present invention based on educational system, the present invention is public Open a kind of parameter confidentiality agreement based on educational system, wherein including
S1. the parameter and signature value of interface called side are obtained;
S2. according to the corresponding signature value of scheduled signature formula calculating parameter, when consistent with the signature value received, then school It tests and passes through.
Further, the parameter confidentiality agreement based on educational system, wherein before the step S1 further include:
Preset the signature formula of interface called side Yu interface provider.
Further, the parameter confidentiality agreement based on educational system, wherein preset interface called side and connect It include: the definition rule and decrypting process that signature formula is set in the step of signature formula of mouth provider.
Further, the parameter confidentiality agreement based on educational system, wherein the signature formula is any one Or multiple mathematical formulaes combine.
Further, the parameter confidentiality agreement based on educational system, wherein in the step A, receiving interface is mentioned The parameter that supplier provides, and according to the instruction of user, signature value corresponding to the parameter is inputted to interface called side.
Present pre-ferred embodiments, including interface called side and supplier, defined parameters signature formula such as f (x)=a1x +b1c。
Signature formula definition rule and decrypting process:
Signature formula can be any mathematical formulae and (considered according to operation difficulty size by interface supplier is customized Definition), including but not limited to square, cube, evolution, addition subtraction multiplication and division etc., it is desirable that it is corresponding that required parameter key and value can be brought into Decimal value can calculate end value, this formula is similar to the code key of traditional encryption and decryption, and after this encryption formula definition Not external evolution, by calling and being called, both sides are respectively taken care of in the server of oneself.Such as: encryption and decryption formula can define Are as follows:
Wherein p1 indicates the corresponding ascii code decimal value of first parameter key in interface requests parameter, v1 first The corresponding ascii code decimal value of the value value of a parameter.Such as interface requests include two parameters be " a ": " 1 ", " B ": " 2 " } it then substitutes into formula and obtains signature value are as follows:
[wherein the ascii code of a is 97;1 ascii code is 49;b Ascii code be 98,2 asccii code be 50] therefore, final configured transmission be " a ": " 1 ", " b ": " 2 ", " signature”:98.249968193333}
Decrypt checking procedure:
The called side of interface receives required parameter, first obtains signature value, the both sides then stored using server-side The formula of agreementThe parameter value band that will be received according to rule is accordingly brought into Enter, same to ciphering process, obtained value is verified if identical with the signature value transmitted, so as to reach Avoid that parameter is illegally distorted or other people are pseudo- according to data call interface requests.
Assuming that a1 indicates that the asscii code decimal value of first parameter key, x are the corresponding asscii of value of parameter 1 Code decimal value, b1 is second parameter, it is assumed for example that interface parameters is { " a ": " 1 ", " b ": " 2 " }, then it represents that signature value is f (x) signature value same parameter is transmitted to interface provider by=97*49+98*50=9653 together.
Interface provider's callee, by the parameter received according to agreement formula, evaluation, with the signature value transmitted Comparison, compares and successfully then thinks that parameters signatures verify successfully.
Both sides save agreement encryption formula, do not open to the outside world, if worrying that safety is inadequate, avoid parameter cipher mode quilt It cracks, calculation formula can be defined more complicated.Such as parameter can also be changed into corresponding asccii code binary system it is right After move left n, the binary system after transfer is switched into the decimal system, then substitute into calculation formula obtain signature result value.Such as Both sides arrange numerical value and move to left 2 and be, then the asscii code of parameter a be 97 correspondence binary shift lefts < < 2 obtain value switch to ten into System is then 388.Decrypting process, with encrypting, the binary shift left corresponding parameter is 2 dynamic, obtains decimal value again by regular band Enter formula and signature value is calculated, compared with the signature transmitted, equal to pass through, unequal interface refusal continues to execute straight Connect return mistake or empty information.Even if the parameter that illegal user takes you in this way knows formula, it will also be appreciated that the data of both sides are moved Dynamic rule, can just calculate correct signature value.
The method of the invention, signature formula is customized, and difficulty or ease are customized, and encrypting and decrypting elapsed time can be adjusted with me.
Parameters signatures value is simpler, saves transmission bandwidth, and conventional MD5 signature value is a lot of character string.
Unconventional signature algorithm mode is unfavorable for other people and illegally cracks calling, increases safety.
Further, the invention also discloses a kind of electronic equipment 10, as shown in Fig. 2, being the structure of the electronic equipment Schematic diagram, wherein include:
Including processor 110, it is adapted for carrying out each instruction, and
Equipment 120 is stored, is suitable for storing a plurality of instruction, described instruction is suitable for being loaded and being executed by processor 110:
Obtain the parameter and signature value of interface called side;
According to the corresponding signature value of scheduled signature formula calculating parameter, when consistent with the signature value received, then verify Pass through.
The processor 110 can for general processor, digital signal processor (DSP), specific integrated circuit (ASIC), Field programmable gate array (FPGA), single-chip microcontroller, ARM (Acorn RISC Machine) or other programmable logic device are divided Any combination of vertical door or transistor logic, discrete hardware component or these components.In addition, processor can also be any Conventional processors, microprocessor or state machine.Processor also may be implemented as calculating the combination of equipment, for example, DSP and Wei Chu Manage combination, multi-microprocessor, one or more microprocessors combination DSP core, any other this configuration of device.
It stores equipment 120 and is used as a kind of non-volatile computer readable storage medium storing program for executing, can be used for storing non-volatile software Program, non-volatile computer executable program and module, such as the corresponding journey of educational interaction method in the embodiment of the present invention Sequence instruction.Processor is stored in non-volatile software program, instruction and unit in storage equipment by operation, thereby executing The various function application and data processing of educational interaction method, i.e. realization above method embodiment.
Present pre-ferred embodiments, including interface called side and supplier, defined parameters signature formula such as f (x)=a1x +b1c。
Signature formula definition rule and decrypting process:
Signature formula can be any mathematical formulae and (considered according to operation difficulty size by interface supplier is customized Definition), including but not limited to square, cube, evolution, addition subtraction multiplication and division etc., it is desirable that it is corresponding that required parameter key and value can be brought into Decimal value can calculate end value, this formula is similar to the code key of traditional encryption and decryption, and after this encryption formula definition Not external evolution, by calling and being called, both sides are respectively taken care of in the server of oneself.Such as: encryption and decryption formula can define Are as follows:
Wherein p1 indicates the corresponding ascii code decimal value of first parameter key in interface requests parameter, v1 first The corresponding ascii code decimal value of the value value of a parameter.Such as interface requests include two parameters be " a ": " 1 ", " B ": " 2 " } it then substitutes into formula and obtains signature value are as follows:
[wherein the ascii code of a is 97;1 ascii code is 49;b Ascii code be 98,2 asccii code be 50] therefore, final configured transmission be " a ": " 1 ", " b ": " 2 ", " signature”:98.249968193333}
Decrypt checking procedure:
The called side of interface receives required parameter, first obtains signature value, the both sides then stored using server-side The formula of agreementThe parameter value band that will be received according to rule is accordingly brought into Enter, same to ciphering process, obtained value is verified if identical with the signature value transmitted, so as to reach Avoid that parameter is illegally distorted or other people are pseudo- according to data call interface requests.
Assuming that a1 indicates that the asscii code decimal value of first parameter key, x are the corresponding asscii of value of parameter 1 Code decimal value, b1 is second parameter, it is assumed for example that interface parameters is { " a ": " 1 ", " b ": " 2 " }, then it represents that signature value is f (x) signature value same parameter is transmitted to interface provider by=97*49+98*50=9653 together.
Interface provider's callee, by the parameter received according to agreement formula, evaluation, with the signature value transmitted Comparison, compares and successfully then thinks that parameters signatures verify successfully.
Both sides save agreement encryption formula, do not open to the outside world, if worrying that safety is inadequate, avoid parameter cipher mode quilt It cracks, calculation formula can be defined more complicated.Such as parameter can also be changed into corresponding asccii code binary system it is right After move left n, the binary system after transfer is switched into the decimal system, then substitute into calculation formula obtain signature result value.Such as Both sides arrange numerical value and move to left 2 and be, then the asscii code of parameter a be 97 correspondence binary shift lefts < < 2 obtain value switch to ten into System is then 388.Decrypting process, with encrypting, the binary shift left corresponding parameter is 2 dynamic, obtains decimal value again by regular band Enter formula and signature value is calculated, compared with the signature transmitted, equal to pass through, unequal interface refusal continues to execute straight Connect return mistake or empty information.Even if the parameter that illegal user takes you in this way knows formula, it will also be appreciated that the data of both sides are moved Dynamic rule, can just calculate correct signature value.
Present pre-ferred embodiments, signature formula is customized, and difficulty or ease are customized, when can adjust encrypting and decrypting consumption with me Between.
Parameters signatures value is simpler, saves transmission bandwidth, and conventional MD5 signature value is a lot of character string.
Unconventional signature algorithm mode is unfavorable for other people and illegally cracks calling, increases safety.
Further, the electronic equipment, wherein the processor 110 is also used to load and execute: presetting and connects The signature formula of mouth called side and interface provider.
Further, the electronic equipment, wherein preset the signature formula of interface called side Yu interface provider The step of in include: be arranged signature formula definition rule and decrypting process.
Further, the electronic equipment, wherein the signature formula is any one or more mathematical formulae knots It closes.
Further, the electronic equipment, wherein the step of obtaining the parameter and signature value of interface called side is wrapped It includes: the parameter that receiving interface provider provides, and according to the instruction of user, signature value corresponding to the parameter is inputted to interface Called side.
In conclusion the invention discloses a kind of parameter confidentiality agreement and electronic equipment based on educational system, wherein institute The method of stating includes the parameter and signature value that A. obtains interface called side;B. corresponding according to scheduled signature formula calculating parameter Signature value, when consistent with the signature value received, then verification passes through, scheme of the present invention, adjustable complexity, very Rule property, improves safety.
It should be understood that the application of the present invention is not limited to the above for those of ordinary skills can With improvement or transformation based on the above description, all these modifications and variations all should belong to the guarantor of appended claims of the present invention Protect range.

Claims (10)

1. a kind of parameter confidentiality agreement based on educational system, which is characterized in that including
A. the parameter and signature value of interface called side are obtained;
B. according to the corresponding signature value of scheduled signature formula calculating parameter, when consistent with the signature value received, then verification is logical It crosses.
2. the parameter confidentiality agreement according to claim 1 based on educational system, which is characterized in that before the step A Further include:
Preset the signature formula of interface called side Yu interface provider.
3. the parameter confidentiality agreement according to claim 2 based on educational system, which is characterized in that preset interface tune It include: the definition rule and decrypting process that signature formula is set in the step of the signature formula of side and interface provider.
4. the parameter confidentiality agreement according to claim 3 based on educational system, which is characterized in that the signature formula is Any one or more mathematical formulaes combine.
5. the parameter confidentiality agreement according to claim 4 based on educational system, which is characterized in that in the step A, connect The parameter that interface provider provides is received, and according to the instruction of user, inputs signature value corresponding to the parameter to interface and call Side.
6. a kind of electronic equipment characterized by comprising
Including processor, it is adapted for carrying out each instruction, and
Equipment is stored, is suitable for storing a plurality of instruction, described instruction is suitable for being loaded and being executed by processor:
Obtain the parameter and signature value of interface called side;
According to the corresponding signature value of scheduled signature formula calculating parameter, when consistent with the signature value received, then verification passes through.
7. electronic equipment according to claim 6, which is characterized in that the processor is also used to load and execute: in advance The signature formula of interface called side Yu interface provider is set.
8. electronic equipment according to claim 7, which is characterized in that preset interface called side and interface provider's It include: the definition rule and decrypting process that signature formula is set in the step of signature formula.
9. electronic equipment according to claim 8, which is characterized in that the signature formula is any one or more mathematics Formula combines.
10. electronic equipment according to claim 9, which is characterized in that obtain the parameter and signature value of interface called side The step of include: that the parameter that receiving interface provider provides inputs signature corresponding to the parameter and according to the instruction of user It is worth to interface called side.
CN201811260968.2A 2018-10-26 2018-10-26 A kind of parameter confidentiality agreement and electronic equipment based on educational system Pending CN109347843A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811260968.2A CN109347843A (en) 2018-10-26 2018-10-26 A kind of parameter confidentiality agreement and electronic equipment based on educational system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811260968.2A CN109347843A (en) 2018-10-26 2018-10-26 A kind of parameter confidentiality agreement and electronic equipment based on educational system

Publications (1)

Publication Number Publication Date
CN109347843A true CN109347843A (en) 2019-02-15

Family

ID=65312223

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811260968.2A Pending CN109347843A (en) 2018-10-26 2018-10-26 A kind of parameter confidentiality agreement and electronic equipment based on educational system

Country Status (1)

Country Link
CN (1) CN109347843A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105282239A (en) * 2015-09-17 2016-01-27 浪潮(北京)电子信息产业有限公司 Encryption method and system based on Web Service
CN105320900A (en) * 2014-07-24 2016-02-10 方正国际软件(北京)有限公司 PDF digital signature method and system and PDF digital signature verification method and system
CN105553673A (en) * 2015-12-31 2016-05-04 北京中科江南信息技术股份有限公司 Multi-time signature verification system and signature verification method for layout file
US20160377423A1 (en) * 2015-06-26 2016-12-29 Washington State University Spatial-light-modulator-based signatures of intrinsic and extrinsic scattering surface markers for secure authentication
CN106301766A (en) * 2016-11-14 2017-01-04 成都信息工程大学 A kind of One-Way Encryption method based on chaos system
CN106850231A (en) * 2017-02-22 2017-06-13 济南浪潮高新科技投资发展有限公司 A kind of method of protection interface safety, service end and system, a kind of client
CN108365961A (en) * 2018-01-02 2018-08-03 深圳壹账通智能科技有限公司 The response method and server that interface call method and terminal device, interface call

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105320900A (en) * 2014-07-24 2016-02-10 方正国际软件(北京)有限公司 PDF digital signature method and system and PDF digital signature verification method and system
US20160377423A1 (en) * 2015-06-26 2016-12-29 Washington State University Spatial-light-modulator-based signatures of intrinsic and extrinsic scattering surface markers for secure authentication
CN105282239A (en) * 2015-09-17 2016-01-27 浪潮(北京)电子信息产业有限公司 Encryption method and system based on Web Service
CN105553673A (en) * 2015-12-31 2016-05-04 北京中科江南信息技术股份有限公司 Multi-time signature verification system and signature verification method for layout file
CN106301766A (en) * 2016-11-14 2017-01-04 成都信息工程大学 A kind of One-Way Encryption method based on chaos system
CN106850231A (en) * 2017-02-22 2017-06-13 济南浪潮高新科技投资发展有限公司 A kind of method of protection interface safety, service end and system, a kind of client
CN108365961A (en) * 2018-01-02 2018-08-03 深圳壹账通智能科技有限公司 The response method and server that interface call method and terminal device, interface call

Similar Documents

Publication Publication Date Title
EP3779830B1 (en) Blockchain-based transaction method, device, and remitting apparatus
CN111614464B (en) Method for safely updating secret key in blockchain, node and storage medium
WO2020057302A1 (en) Blockchain-based transaction method and device, and remitting apparatus
CN107707347B (en) User key backup method and device and user key importing method and device
CN107370730A (en) A kind of log-on message processing method and equipment
CN105635039B (en) A kind of secure communication of network method and communication device
US10164963B2 (en) Enforcing server authentication based on a hardware token
CN108256340B (en) Data acquisition method and device, terminal equipment and storage medium
TWI724809B (en) Method, device and electronic equipment for determining model parameters
US9596263B1 (en) Obfuscation and de-obfuscation of identifiers
CN108494740A (en) Token generates and method of calibration, intelligent terminal and server
CN110061840A (en) Data ciphering method, device, computer equipment and storage medium
US10885203B2 (en) Encrypted data exchange
EP4128692B1 (en) Service-to-service strong authentication
US9641328B1 (en) Generation of public-private key pairs
CN109214201A (en) A kind of data sharing method, terminal device and computer readable storage medium
CN110166423A (en) Determination method, apparatus, the processing method of system and data of user credit
WO2022068354A1 (en) Data verification method, apparatus and device, and storage medium
US20020091932A1 (en) Qualification authentication method using variable authentication information
CN109547201A (en) A kind of encryption method of root key, computer readable storage medium and terminal device
CN114221762A (en) Private key storage method, private key reading method, private key management device, private key management equipment and private key storage medium
WO2022247790A1 (en) Data management method and apparatus, device and storage medium
US20220398299A1 (en) Cross-session issuance of verifiable credential
US20030097559A1 (en) Qualification authentication method using variable authentication information
CN109347843A (en) A kind of parameter confidentiality agreement and electronic equipment based on educational system

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

Application publication date: 20190215

RJ01 Rejection of invention patent application after publication