CN112039921A - Verification method for parking access, parking user terminal and node server - Google Patents

Verification method for parking access, parking user terminal and node server Download PDF

Info

Publication number
CN112039921A
CN112039921A CN202010966555.7A CN202010966555A CN112039921A CN 112039921 A CN112039921 A CN 112039921A CN 202010966555 A CN202010966555 A CN 202010966555A CN 112039921 A CN112039921 A CN 112039921A
Authority
CN
China
Prior art keywords
parking
user terminal
node server
parameter
verification
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
CN202010966555.7A
Other languages
Chinese (zh)
Other versions
CN112039921B (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.)
Guangdong Anjubao Digital Technology Co ltd
Original Assignee
Guangdong Anjubao Digital 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 Guangdong Anjubao Digital Technology Co ltd filed Critical Guangdong Anjubao Digital Technology Co ltd
Priority to CN202010966555.7A priority Critical patent/CN112039921B/en
Publication of CN112039921A publication Critical patent/CN112039921A/en
Application granted granted Critical
Publication of CN112039921B publication Critical patent/CN112039921B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/04Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
    • H04L63/0428Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload
    • H04L63/0442Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload wherein the sending and receiving network entities apply asymmetric encryption, i.e. different keys for encryption and decryption
    • GPHYSICS
    • G08SIGNALLING
    • G08GTRAFFIC CONTROL SYSTEMS
    • G08G1/00Traffic control systems for road vehicles
    • G08G1/14Traffic control systems for road vehicles indicating individual free spaces in parking areas
    • G08G1/145Traffic control systems for road vehicles indicating individual free spaces in parking areas where the indication depends on the parking areas
    • G08G1/148Management of a network of parking areas
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/083Network architectures or network communication protocols for network security for authentication of entities using passwords
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/0876Network architectures or network communication protocols for network security for authentication of entities based on the identity of the terminal or configuration, e.g. MAC address, hardware or software configuration or device fingerprint

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Power Engineering (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The application discloses a verification method for parking access, a parking user terminal and a node server, wherein after the parking user terminal sends a parking access request to the node server, a first encrypted parameter obtained after input parameters are encrypted is sent to the node server according to a first prompt message returned by the parking user terminal; the parking user terminal encrypts a private key and an input parameter of the parking user terminal according to a verification default value returned by the node server, and sends an obtained second encryption parameter to the node server, so that the node server decrypts the first encryption parameter and the second encryption parameter respectively, and obtains a verification result based on a first decryption result and a second decryption result obtained by decryption; when the parking user terminal successfully verifies the verification result, the node server is accessed to obtain the parking information, and the technical problems that the identity of an access user is not verified in the conventional parking management system, any access user can check the parking user data, and the safety is low are solved.

Description

Verification method for parking access, parking user terminal and node server
Technical Field
The present application relates to the field of internet technologies, and in particular, to a parking access verification method, a parking user terminal, and a node server.
Background
The block chain technology is a technology which can store the database in a decentralized mode and effectively guarantee data security. Along with the popularization and application of the block chain technology, the block chain technology is applied to an intelligent parking management system, so that the parking lot management is more convenient and faster. Because the blockchain is actually a public database, all account information and transaction records in the database are public, the existing parking management system does not carry out identity verification on an access user, and the problem of low safety that any access user can check the data of the parking user exists.
Disclosure of Invention
The application provides a parking access verification method, a parking user terminal and a node server, which are used for solving the technical problems that the identity verification of an access user is not carried out in the existing parking management system, any access user can check parking user data, and the safety is low.
In view of the above, a first aspect of the present application provides a verification method for parking access, including:
after a parking user terminal sends a parking access request to a node server corresponding to a parking lot, according to first prompt information returned by the node server, sending a first encryption parameter obtained after input parameters are encrypted to the node server;
the parking user terminal encrypts a private key and the input parameter corresponding to the parking user terminal according to a verification default value returned by the node server, and sends a second encrypted parameter obtained by encryption to the node server, so that the node server decrypts the first encrypted parameter and the second encrypted parameter respectively to obtain a first decryption result and a second decryption result, and obtains a verification result based on the first decryption result and the second decryption result, wherein the first encrypted parameter is decrypted through a public key corresponding to the parking user terminal;
and the parking user terminal accesses the node server to acquire parking information when the verification result is successful.
Preferably, after the parking user terminal sends the parking access request to the node server corresponding to the parking lot, according to the first prompt information returned by the node server, the method further includes the following steps:
the parking user terminal sends a registration request to the node server, and determines a first prime number and a second prime number according to second prompt information returned by the node server, wherein the first prime number and the second prime number are two prime numbers with different sizes;
and after the parking user terminal determines the private key in the first prime number and the second prime number, the product of the private key and the first prime number and the second prime number is taken out and left to obtain a public key corresponding to the private key, and the parking user identifier corresponding to the parking user terminal, the public key and the product are sent to the node server to be stored.
Preferably, after the parking user terminal sends the parking access request to the node server corresponding to the parking lot, according to the first prompt information returned by the node server, sending the first encrypted parameter obtained by encrypting the input parameter to the node server, including:
and after the parking user terminal sends a parking access request to a node server corresponding to the parking lot, according to first prompt information returned by the node server, the square of an input parameter is obtained by taking the remainder of the product, and the first encryption parameter is sent to the node server.
Preferably, the step of encrypting, by the parking user terminal, the private key and the input parameter corresponding to the parking user terminal according to the verification default value returned by the node server, and sending a second encrypted parameter obtained by the encryption to the node server includes:
and the parking user terminal calculates the product of the power P of the private key corresponding to the parking user terminal and the input parameter according to the verification default value P returned by the node server to obtain a second encryption parameter, and sends the second encryption parameter to the node server.
Preferably, the node server decrypts the first encryption parameter and the second encryption parameter to obtain a first decryption result and a second decryption result respectively, and includes:
the node server determines a public key corresponding to the parking user terminal through a parking user identifier corresponding to the parking user terminal, and obtains a first decryption result by taking the remainder of a value obtained by multiplying the P power of the public key by the first encryption parameter and the product;
and the node server takes the square of the second encryption parameter and the product for remainder to obtain a second decryption result.
Preferably, the obtaining a verification result based on the first decryption result and the second decryption result includes:
when the first decryption result is equal to the second decryption result, the verification result is successful;
and when the first decryption result is not equal to the second decryption result, the verification result is verification failure.
A second aspect of the present application provides a verification method for parking access, comprising:
after receiving a parking access request sent by a parking user terminal, a node server sends first prompt information to the parking user terminal, so that the parking user terminal returns a first encryption parameter, wherein the first encryption parameter is obtained by encrypting an input parameter;
the node server sends a verification default value to the parking user terminal, so that the parking user terminal returns a second encryption parameter, and the second encryption parameter is obtained by encrypting a private key corresponding to the parking user terminal and the input parameter through the verification default value;
the node server decrypts the first encryption parameter and the second encryption parameter respectively to obtain a first decryption result and a second decryption result, and sends a verification result obtained based on the first decryption result and the second decryption result to the parking user terminal, so that the parking user terminal accesses the node server to obtain parking information when the verification result is successful, wherein the first encryption parameter is decrypted through a public key corresponding to the parking user terminal.
A third aspect of the present application provides a parking user terminal, comprising:
the parking system comprises a first sending unit, a node server and a second sending unit, wherein the first sending unit is used for sending a parking access request to the node server corresponding to the parking lot, and then sending a first encrypted parameter obtained by encrypting an input parameter to the node server according to first prompt information returned by the node server;
the encryption unit is used for encrypting a private key corresponding to the parking user terminal and the input parameter according to a verification default value returned by the node server, and sending a second encrypted parameter obtained by encryption to the node server, so that the node server decrypts the first encrypted parameter and the second encrypted parameter respectively to obtain a first decryption result and a second decryption result, and obtains a verification result based on the first decryption result and the second decryption result, wherein the first encrypted parameter is decrypted through a public key corresponding to the parking user terminal;
and the access unit is used for accessing the node server to acquire the parking information when the verification result is that the verification is successful.
Optionally, the method further comprises:
the determining unit is used for sending a registration request to the node server and determining a first prime number and a second prime number according to second prompt information returned by the node server, wherein the first prime number and the second prime number are two prime numbers with different sizes;
and the second sending unit is used for obtaining a public key corresponding to the private key by taking the residue of the product of the private key and the first prime number as well as the second prime number after the private key is determined in the first prime number and the second prime number, and sending the parking user identifier corresponding to the parking user terminal, the public key and the product to the node server for storage.
A fourth aspect of the present application provides a node server, including:
the parking system comprises a first sending unit, a second sending unit and a control unit, wherein the first sending unit is used for sending first prompt information to a parking user terminal after receiving a parking access request sent by the parking user terminal so that the parking user terminal returns a first encryption parameter, and the first encryption parameter is obtained by encrypting an input parameter;
the second sending unit is used for sending a verification default value to the parking user terminal so that the parking user terminal returns a second encryption parameter, and the second encryption parameter is obtained by encrypting a private key corresponding to the parking user terminal and the input parameter through the verification default value;
and the decryption unit is used for decrypting the first encryption parameter and the second encryption parameter respectively to obtain a first decryption result and a second decryption result, and sending a verification result obtained based on the first decryption result and the second decryption result to the parking user terminal, so that the parking user terminal accesses the node server to obtain parking information when the verification result is successful, wherein the first encryption parameter is decrypted through a public key corresponding to the parking user terminal.
According to the technical scheme, the method has the following advantages:
the application provides a verification method for parking access, which comprises the following steps: after the parking user terminal sends a parking access request to a node server corresponding to the parking lot, according to first prompt information returned by the node server, sending a first encryption parameter obtained after the input parameter is encrypted to the node server; the parking user terminal encrypts a private key and an input parameter corresponding to the parking user terminal according to a verification default value returned by the node server, and sends a second encrypted parameter obtained by encryption to the node server, so that the node server decrypts the first encrypted parameter and the second encrypted parameter respectively to obtain a first decryption result and a second decryption result, and obtains a verification result based on the first decryption result and the second decryption result, wherein the first encrypted parameter is decrypted through a public key corresponding to the parking user terminal; and when the verification result is successful, the parking user terminal accesses the node server to acquire parking information.
According to the method and the system, when the parking user terminal sends the parking access request, the legalization verification of the user identity is carried out through the node server corresponding to the parking lot according to the parameters sent by the parking user terminal, and only when the verification is successful, the parking user terminal can access the node server to obtain parking information to complete parking, so that the safety of user information is guaranteed; moreover, the parking user terminal completes the identity verification on the premise of not revealing private key information, the private key cannot be revealed even if the parking user terminal is attacked in the identity verification process, the safety of user information is further ensured, and the technical problem that any access user can check parking user data and the safety is low because the access user does not perform identity verification in the conventional parking management system is solved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without inventive exercise.
Fig. 1 is a schematic flowchart of a first embodiment of an authentication method for parking access provided by the present application;
fig. 2 is a schematic flowchart of a second embodiment of a verification method for parking access according to the present application;
fig. 3 is a schematic structural diagram of a parking lot management system based on a block chain according to the present application;
fig. 4 is a schematic flowchart of a third embodiment of a verification method for parking access provided by the present application;
fig. 5 is a schematic structural diagram of an authentication device for parking access provided by the present application;
fig. 6 is another schematic structural diagram of an authentication device for parking access provided by the present application.
Detailed Description
In order to make the technical solutions of the present application better understood, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms "first," "second," "third," "fourth," and the like in the description and in the drawings of this application, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application described herein are, for example, capable of operation in sequences other than those illustrated or otherwise described herein.
For easy understanding, please refer to fig. 1, a first embodiment of the verification method for parking access provided by the present application includes:
step 101, after a parking user terminal sends a parking access request to a node server corresponding to a parking lot, according to first prompt information returned by the node server, sending a first encryption parameter obtained by encrypting an input parameter to the node server.
In the embodiment of the present application, the verification method for parking access is applied to a parking lot management system based on a block chain, please refer to fig. 3, where each parking service provider flag has one or more parking lot areas, each parking lot area can be regarded as a block, and each block is connected to form a parking lot block chain. In the parking lot management system, in the embodiment of the application, a node server is configured for each provider, and a provider client can upload respective parking service business logic protocols in a blockchain to complete uplink, so that data is permanently stored in the blockchain. The parking user can log in and access a certain node server through the parking user terminal, and in order to ensure the safety of user data, the parking user terminal can access the node server only after passing the verification. Specifically, the parking user terminal sends a parking access request to a node server corresponding to the parking lot, and after sending the parking access request to the node server, the parking user terminal receives first prompt information returned by the node server, where the first prompt information is used to prompt the parking user to input a private key. After the parking user terminal determines the input parameters input by the parking user on the interactive interface of the terminal, the parking user terminal can perform encryption operation on the input parameters to obtain first encryption parameters, and sends the first encryption parameters to the node server.
102, the parking user terminal encrypts a private key and an input parameter corresponding to the parking user terminal according to a verification default value returned by the node server, and sends a second encrypted parameter obtained by encryption to the node server, so that the node server decrypts the first encrypted parameter and the second encrypted parameter respectively to obtain a first decryption result and a second decryption result, and obtains a verification result based on the first decryption result and the second decryption result.
After the parking user terminal sends the first encryption parameter to the node server, the parking user terminal receives a verification default value returned by the node server, and in order to prevent the private key of the parking user terminal from being leaked, the parking user terminal conducts encryption operation on the private key and the input parameter corresponding to the parking user terminal through the verification default value to obtain a second encryption parameter, and sends the second encryption parameter to the node server, so that the node server conducts decryption on the first encryption parameter and the second encryption parameter respectively to obtain a first decryption result and a second decryption result, and obtains a verification result based on the first decryption result and the second decryption result, wherein the first encryption parameter is decrypted through a public key corresponding to the parking user terminal.
And 103, when the verification result is successful, the parking user terminal accesses the node server to acquire parking information.
And when the parking user terminal receives the verification result returned by the node server as successful verification, the node server can be accessed to acquire parking information to finish parking. It can be understood that after entering a certain node server, the parking user terminal can also switch to access other node servers to acquire parking information of other parking lots to complete parking arrangement.
In the embodiment of the application, when the parking user terminal sends the parking access request, the legalization verification of the user identity is carried out according to the parameters sent by the parking user terminal through the node server corresponding to the parking lot, and only when the verification is successful, the parking user terminal can access the node server to obtain the parking information to complete parking, so that the safety of the user information is ensured; moreover, the parking user terminal completes the identity verification on the premise of not revealing private key information, the private key cannot be revealed even if the parking user terminal is attacked in the identity verification process, the safety of user information is further ensured, and the technical problem that any access user can check parking user data and the safety is low because the access user does not perform identity verification in the conventional parking management system is solved.
The above is a first embodiment of the verification method for parking access provided by the present application, and the following is a second embodiment of the verification method for parking access provided by the present application.
For easy understanding, please refer to fig. 2, an embodiment two of the verification method for parking access provided by the present application includes:
step 201, the parking user terminal sends a registration request to the node server, and determines the first prime number and the second prime number according to the second prompt information returned by the node server.
The parking user terminal needs to perform encrypted registration before accessing each node server, and after sending a registration request to the node server, the parking user terminal receives second prompt information returned by the node server, wherein the second prompt information is used for prompting a user to determine two parameters, namely a first prime number and a second prime number, and the first prime number and the second prime number are two prime numbers with different sizes. For example, the second prompt message may be "please select two different prime numbers between (1, N"), and the parking user may randomly select two different prime numbers according to the second prompt message displayed on the interactive interface of the parking user terminal, where a specific value of N may be set according to an actual situation, and is not limited herein, and the values of the first prime number and the second prime number are preferably larger values.
Step 202, after determining the private key in the first prime number and the second prime number, the parking user terminal obtains a public key corresponding to the private key by taking the product of the private key and the first prime number and the second prime number, and sends the parking user identifier, the public key and the product corresponding to the parking user terminal to the node server for storage.
The parking user terminal determines a private key s from the first prime number a and the second prime number b, and after the parking user terminal selects the first prime number a or the second prime number b as the private key s, the product c of the private key s and the first prime number a and the second prime number b is subjected to remainder to obtain a public key g corresponding to the private key s, namely g is s% c, and% is a remainder operation symbol; this private key s is known only to the parking user terminal. And the parking user terminal sends the parking user identification (mobile phone number, identity ID, registration number and the like), the public key g and the product c corresponding to the parking user terminal to the node server for storage.
Step 203, after the parking user terminal sends the parking access request to the node server corresponding to the parking lot, according to the first prompt information returned by the node server, sending the first encrypted parameter obtained after the input parameter is encrypted to the node server.
In the verification process, after the parking user terminal sends a parking access request to the node server corresponding to the parking lot, first prompt information returned by the node server is received and used for prompting a user to input a private key, and the first prompt information can be' please be in (1, c-1)]To select a value ". The parking user terminal selects an input parameter m according to the first prompt message, and the registered user terminal determines that the input parameter m is one of a first prime number a and a second prime number b(when the private key is the first prime number, the input parameter m is the second prime number; when the private key is the second prime number, the input parameter m is the first prime number, so that the verification can be passed). And the parking user terminal carries out encryption operation on the input parameter m to obtain a first encryption parameter n and returns the first encryption parameter n to the node server. Specifically, the parking user terminal obtains a first encryption parameter n by taking the square of the input parameter m and the product c, that is, n is m2%c。
And step 204, the parking user terminal encrypts a private key and an input parameter corresponding to the parking user terminal according to a verification default value returned by the node server, and sends a second encrypted parameter obtained by encryption to the node server, so that the node server decrypts the first encrypted parameter and the second encrypted parameter respectively to obtain a first decryption result and a second decryption result, and obtains a verification result based on the first decryption result and the second decryption result.
After the parking user terminal sends the first encryption parameter n to the node server, the parking user terminal receives a verification default value P returned by the node server, and then calculates the product of the P power of a private key corresponding to the parking user terminal and an input parameter m according to the verification default value P returned by the node server to obtain a second encryption parameter k, namely k is m.spAnd sending the second encryption parameter k to the node server. And the first encryption parameter is decrypted through a public key corresponding to the parking user terminal.
Further, the values of the verification default value P include 0 and 1, which correspond to two different verification modes. The 0 mode (P ═ 0) is a self-test process, and also corresponds to a confusion mode; mode 1 (P ═ 1) is the decryption process. The parking user terminal passes through the two verification modes, and the verification can be successful only if the first decryption result and the second decryption result in the two modes are equal, but the parking user terminal does not know what mode the parking user terminal does.
Further, the node server decrypts the first encryption parameter and the second encryption parameter respectively to obtain a first decryption result and a second decryption result, and obtains a verification result based on the first decryption result and the second decryption result, which specifically includes: node server communicationDetermining a public key corresponding to the parking user terminal by the parking user identifier corresponding to the past parking user terminal, and obtaining a first decryption result of (nxg) by taking the residue of a value obtained by multiplying the power P of the public key by the first encryption parameter n and a product cp) % c, wherein the parking access request sent by the parking user terminal carries a parking user identifier corresponding to the parking user terminal; the node server takes the square of the second encryption parameter k and the product c to obtain a second decryption result k2%c。
And step 205, when the verification result is that the verification is successful, the parking user terminal accesses the node server to acquire the parking information.
When the first decryption result is equal to the second decryption result, the verification result is successful, that is, the parking user terminal knows the private key value, and the parking user terminal can access the node server to obtain parking information; and when the first decryption result is not equal to the second decryption result, the verification result is verification failure, and the parking user terminal cannot access the node server to acquire corresponding information. The interactive verification process has no backup record and adopts a traceless communication principle.
Further, when the parking user terminal selects the first prime number as the private key, and the input parameter when the parking user terminal accesses the node server is the second prime number, the verification is successful; or, when the parking user terminal selects the second prime number as the private key, the input parameter when the parking user terminal accesses the node server is the first prime number, the verification is successful, otherwise, the verification fails.
For example, the encryption process:
correspondingly, the parking user terminal calculates a product c of the first prime number and the second prime number as 17, and when the private key s is determined to be the first prime number, that is, s as 17, the public key g as s% c as 17.
And (3) decryption process:
if the input parameter m selected by the parking user terminal is 3, the first encryption parameter n is m2%c=9;
When P is 0, secondEncryption parameter k is ms0The node server decrypts the first encryption parameter to obtain a first decryption result of (n × g) ═ 30) 9, the second decryption result obtained by decrypting the second encryption parameter is k2% c is 9, the first decryption result and the second encryption result are equal;
when P is 1, the second encryption parameter k is ms1The first decryption result is (nxg) 171) 170, the second decryption result is k2And% c is 17, the first decryption result and the second encryption result are not equal, and the verification fails.
If the input parameter m selected by the parking user terminal is 19 (the second prime number), the first encryption parameter n is m2%c=38;
When P is 0, the second encryption parameter k is ms0When the node server decrypts the first encryption parameter, the first decryption result obtained is (n × g)0) 38, the second decryption result obtained by decrypting the second encryption parameter is k238, the first decryption result and the second encryption result are equal;
when P is 1, the second encryption parameter k is ms119 × 17, the first decryption result is (nxg)1) % c is 0, and the second decryption result is k2And when the% c is 0, the first decryption result is equal to the second encryption result, the verification is successful, and the identity of the parking user terminal is proved to be legal.
The above is an embodiment two of the verification method for parking access provided by the present application, and the following is an embodiment three of the verification method for parking access provided by the present application.
For easy understanding, please refer to fig. 4, a third embodiment of the verification method for parking access provided by the present application includes:
step 301, after receiving a parking access request sent by a parking user terminal, a node server sends first prompt information to the parking user terminal, so that the parking user terminal returns a first encryption parameter, and the first encryption parameter is obtained by encrypting an input parameter.
After receiving a parking access request sent by a parking user terminal, the node server sends first prompt information to the parking user terminal, prompts a user to input a private key, and enables the parking user terminal to return a first encryption parameter, wherein the first encryption parameter is obtained after the input parameter is encrypted.
And step 302, the node server sends the verification default value to the parking user terminal, so that the parking user terminal returns a second encryption parameter, and the second encryption parameter is obtained by encrypting a private key and an input parameter corresponding to the parking user terminal through the verification default value.
After receiving the first encryption parameter sent by the parking user terminal, the node server sends a verification default value P to the parking user terminal, so that the parking user terminal encrypts a private key and an input parameter corresponding to the parking user terminal through the verification default value to obtain a second encryption parameter, and returns the second encryption parameter to the node server.
And step 303, the node server decrypts the first encrypted parameter and the second encrypted parameter respectively to obtain a first decryption result and a second decryption result, and sends a verification result obtained based on the first decryption result and the second decryption result to the parking user terminal, so that the parking user terminal accesses the node server to obtain the parking information when the verification result is successful.
The node server decrypts the first encrypted parameter to obtain a first decryption result, decrypts the second encrypted parameter through a public key corresponding to the parking user terminal to obtain a second decryption result, and sends a verification result obtained based on the first decryption result and the second decryption result to the parking user terminal, so that the parking user terminal accesses the node server to obtain parking information when the verification result is successful.
In the embodiment of the application, the node server is used for carrying out user identity legalization verification on the parking user terminal, and only when the verification is successful, the node server allows the parking user terminal to access to obtain parking information, so that the safety of the user information is ensured; moreover, in the decryption verification process of the node server, the identity verification is completed on the premise that the private key information of the parking user terminal is not known, even if the node server is attacked in the identity verification process, the private key of the user cannot be revealed, the safety of the user information is further ensured, and the technical problems that the identity verification of an access user is not performed in the conventional parking management system, any access user can check the parking user data, and the safety is low are solved.
The third embodiment of the verification method for parking access provided by the present application is as follows, which is an embodiment of the verification device for parking access provided by the present application.
For ease of understanding, referring to fig. 5, the present application provides an embodiment of an authentication device for parking access, comprising:
a first sending unit 401, configured to send a parking access request to a node server corresponding to a parking lot, and then send a first encrypted parameter obtained by encrypting an input parameter to the node server according to first prompt information returned by the node server;
the encryption unit 402 is configured to encrypt a private key and an input parameter corresponding to the parking user terminal according to a verification default value returned by the node server, and send a second encrypted parameter obtained by the encryption to the node server, so that the node server decrypts the first encrypted parameter and the second encrypted parameter respectively to obtain a first decryption result and a second decryption result, and obtains a verification result based on the first decryption result and the second decryption result, where the first encrypted parameter is decrypted by a public key corresponding to the parking user terminal;
and an accessing unit 403, configured to access the node server to obtain parking information when the verification result is that the verification is successful.
As a further improvement, the method further comprises the following steps:
a determining unit 404, configured to send a registration request to the node server, and determine a first prime number and a second prime number according to second prompt information returned by the node server, where the first prime number and the second prime number are two prime numbers with different sizes;
and a second sending unit 405, configured to determine a private key in the first prime number and the second prime number, and then take the product of the private key and the first prime number and the second prime number to obtain a public key corresponding to the private key, and send the parking user identifier, the public key, and the product corresponding to the parking user terminal to the node server for storage.
As a further improvement, the first sending unit 401 is specifically configured to:
and after the parking access request is sent to a node server corresponding to the parking lot, according to first prompt information returned by the node server, the square of the input parameter and the product are subjected to residue taking to obtain a first encryption parameter, and the first encryption parameter is sent to the node server.
The above is one embodiment of an authentication device for parking access provided by the present application, and the following is another embodiment of an authentication device for parking access provided by the present application.
For ease of understanding, referring to fig. 6, the present application provides an embodiment of an authentication device for parking access, comprising:
a first sending unit 501, configured to send first prompt information to a parking user terminal after receiving a parking access request sent by the parking user terminal, so that the parking user terminal returns a first encryption parameter, where the first encryption parameter is obtained by encrypting an input parameter;
a second sending unit 502, configured to send the verification default to the parking user terminal, so that the parking user terminal returns a second encryption parameter, where the second encryption parameter is obtained by encrypting a private key and an input parameter corresponding to the parking user terminal through the verification default;
the decryption unit 503 is configured to decrypt the first encrypted parameter and the second encrypted parameter respectively to obtain a first decryption result and a second decryption result, and send a verification result obtained based on the first decryption result and the second decryption result to the parking user terminal, so that the parking user terminal accesses the node server to obtain the parking information when the verification result is successful, where the first encrypted parameter is decrypted by using a public key corresponding to the parking user terminal.
As a further improvement, the method further comprises the following steps:
a third sending unit 504, configured to send second prompt information to the parking user terminal after receiving the registration request sent by the parking user terminal, so that the parking user terminal determines the first prime number and the second prime number based on the second prompt information, and returns a parking user identifier corresponding to the parking user terminal, a public key, and a product of the first prime number and the second prime number, where the first prime number and the second prime number are two prime numbers of different sizes, and the public key is obtained by taking a remainder of the private key and the product.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be substantially implemented or contributed to by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a storage medium and includes instructions for executing all or part of the steps of the method described in the embodiments of the present application through a computer device (which may be a personal computer, a server, or a network device). And the aforementioned storage medium includes: a U disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions in the embodiments of the present application.

Claims (10)

1. A method of verification for parking access, comprising:
after a parking user terminal sends a parking access request to a node server corresponding to a parking lot, according to first prompt information returned by the node server, sending a first encryption parameter obtained after input parameters are encrypted to the node server;
the parking user terminal encrypts a private key and the input parameter corresponding to the parking user terminal according to a verification default value returned by the node server, and sends a second encrypted parameter obtained by encryption to the node server, so that the node server decrypts the first encrypted parameter and the second encrypted parameter respectively to obtain a first decryption result and a second decryption result, and obtains a verification result based on the first decryption result and the second decryption result, wherein the first encrypted parameter is decrypted through a public key corresponding to the parking user terminal;
and the parking user terminal accesses the node server to acquire parking information when the verification result is successful.
2. The method for verifying parking access according to claim 1, wherein after the parking user terminal sends a parking access request to a node server corresponding to a parking lot, according to a first prompt message returned by the node server, a first encrypted parameter obtained by encrypting an input parameter is sent to the node server, and before the method further comprises:
the parking user terminal sends a registration request to the node server, and determines a first prime number and a second prime number according to second prompt information returned by the node server, wherein the first prime number and the second prime number are two prime numbers with different sizes;
and after the parking user terminal determines the private key in the first prime number and the second prime number, the product of the private key and the first prime number and the second prime number is taken out and left to obtain a public key corresponding to the private key, and the parking user identifier corresponding to the parking user terminal, the public key and the product are sent to the node server to be stored.
3. The parking access verification method according to claim 2, wherein after the parking user terminal sends a parking access request to a node server corresponding to a parking lot, according to first prompt information returned by the node server, sending a first encrypted parameter obtained by encrypting an input parameter to the node server, includes:
and after the parking user terminal sends a parking access request to a node server corresponding to the parking lot, according to first prompt information returned by the node server, the square of an input parameter is obtained by taking the remainder of the product, and the first encryption parameter is sent to the node server.
4. The parking access verification method according to claim 2, wherein the parking user terminal encrypts a private key and the input parameter corresponding to the parking user terminal according to a verification default value returned by the node server, and sends a second encrypted parameter obtained by encryption to the node server, and the method includes:
and the parking user terminal calculates the product of the power P of the private key corresponding to the parking user terminal and the input parameter according to the verification default value P returned by the node server to obtain a second encryption parameter, and sends the second encryption parameter to the node server.
5. The verification method for parking access according to claim 4, wherein the node server decrypts the first encrypted parameter and the second encrypted parameter to obtain a first decrypted result and a second decrypted result, respectively, and comprises:
the node server determines a public key corresponding to the parking user terminal through a parking user identifier corresponding to the parking user terminal, and obtains a first decryption result by taking the remainder of a value obtained by multiplying the P power of the public key by the first encryption parameter and the product;
and the node server takes the square of the second encryption parameter and the product for remainder to obtain a second decryption result.
6. The verification method for parking access according to claim 2, wherein the obtaining a verification result based on the first decryption result and the second decryption result includes:
when the first decryption result is equal to the second decryption result, the verification result is successful;
and when the first decryption result is not equal to the second decryption result, the verification result is verification failure.
7. A method of verification for parking access, comprising:
after receiving a parking access request sent by a parking user terminal, a node server sends first prompt information to the parking user terminal, so that the parking user terminal returns a first encryption parameter, wherein the first encryption parameter is obtained by encrypting an input parameter;
the node server sends a verification default value to the parking user terminal, so that the parking user terminal returns a second encryption parameter, and the second encryption parameter is obtained by encrypting a private key corresponding to the parking user terminal and the input parameter through the verification default value;
the node server decrypts the first encryption parameter and the second encryption parameter respectively to obtain a first decryption result and a second decryption result, and sends a verification result obtained based on the first decryption result and the second decryption result to the parking user terminal, so that the parking user terminal accesses the node server to obtain parking information when the verification result is successful, wherein the first encryption parameter is decrypted through a public key corresponding to the parking user terminal.
8. A parking user terminal, comprising:
the parking system comprises a first sending unit, a node server and a second sending unit, wherein the first sending unit is used for sending a parking access request to the node server corresponding to the parking lot, and then sending a first encrypted parameter obtained by encrypting an input parameter to the node server according to first prompt information returned by the node server;
the encryption unit is used for encrypting a private key corresponding to the parking user terminal and the input parameter according to a verification default value returned by the node server, and sending a second encrypted parameter obtained by encryption to the node server, so that the node server decrypts the first encrypted parameter and the second encrypted parameter respectively to obtain a first decryption result and a second decryption result, and obtains a verification result based on the first decryption result and the second decryption result, wherein the first encrypted parameter is decrypted through a public key corresponding to the parking user terminal;
and the access unit is used for accessing the node server to acquire the parking information when the verification result is that the verification is successful.
9. The parking user terminal of claim 8, further comprising:
the determining unit is used for sending a registration request to the node server and determining a first prime number and a second prime number according to second prompt information returned by the node server, wherein the first prime number and the second prime number are two prime numbers with different sizes;
and the second sending unit is used for obtaining a public key corresponding to the private key by taking the residue of the product of the private key and the first prime number as well as the second prime number after the private key is determined in the first prime number and the second prime number, and sending the parking user identifier corresponding to the parking user terminal, the public key and the product to the node server for storage.
10. A node server, comprising:
the parking system comprises a first sending unit, a second sending unit and a control unit, wherein the first sending unit is used for sending first prompt information to a parking user terminal after receiving a parking access request sent by the parking user terminal so that the parking user terminal returns a first encryption parameter, and the first encryption parameter is obtained by encrypting an input parameter;
the second sending unit is used for sending a verification default value to the parking user terminal so that the parking user terminal returns a second encryption parameter, and the second encryption parameter is obtained by encrypting a private key corresponding to the parking user terminal and the input parameter through the verification default value;
and the decryption unit is used for decrypting the first encryption parameter and the second encryption parameter respectively to obtain a first decryption result and a second decryption result, and sending a verification result obtained based on the first decryption result and the second decryption result to the parking user terminal, so that the parking user terminal accesses the node server to obtain parking information when the verification result is successful, wherein the first encryption parameter is decrypted through a public key corresponding to the parking user terminal.
CN202010966555.7A 2020-09-15 2020-09-15 Verification method for parking access, parking user terminal and node server Active CN112039921B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010966555.7A CN112039921B (en) 2020-09-15 2020-09-15 Verification method for parking access, parking user terminal and node server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010966555.7A CN112039921B (en) 2020-09-15 2020-09-15 Verification method for parking access, parking user terminal and node server

Publications (2)

Publication Number Publication Date
CN112039921A true CN112039921A (en) 2020-12-04
CN112039921B CN112039921B (en) 2022-10-14

Family

ID=73589344

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010966555.7A Active CN112039921B (en) 2020-09-15 2020-09-15 Verification method for parking access, parking user terminal and node server

Country Status (1)

Country Link
CN (1) CN112039921B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112995896A (en) * 2021-02-26 2021-06-18 北京骑胜科技有限公司 Vehicle parking control method and device, vehicle, server, parking peg and system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2648171A1 (en) * 2012-04-06 2013-10-09 Zenpark System and method for managing parking space occupancy
CN105871920A (en) * 2016-06-08 2016-08-17 美的集团股份有限公司 Communication system and method of terminal and cloud server as well as terminal and cloud server
WO2017185913A1 (en) * 2016-04-29 2017-11-02 上海斐讯数据通信技术有限公司 Method for improving wireless local area network authentication mechanism
JP6590394B1 (en) * 2019-05-19 2019-10-16 株式会社ワイティーエム Parking lot management system
US20190392543A1 (en) * 2017-02-13 2019-12-26 Samsung Electronics Co., Ltd. System and method for managing access to parking zone

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2648171A1 (en) * 2012-04-06 2013-10-09 Zenpark System and method for managing parking space occupancy
WO2017185913A1 (en) * 2016-04-29 2017-11-02 上海斐讯数据通信技术有限公司 Method for improving wireless local area network authentication mechanism
CN105871920A (en) * 2016-06-08 2016-08-17 美的集团股份有限公司 Communication system and method of terminal and cloud server as well as terminal and cloud server
US20190392543A1 (en) * 2017-02-13 2019-12-26 Samsung Electronics Co., Ltd. System and method for managing access to parking zone
JP6590394B1 (en) * 2019-05-19 2019-10-16 株式会社ワイティーエム Parking lot management system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112995896A (en) * 2021-02-26 2021-06-18 北京骑胜科技有限公司 Vehicle parking control method and device, vehicle, server, parking peg and system
CN112995896B (en) * 2021-02-26 2023-04-28 北京骑胜科技有限公司 Vehicle parking control method, device, vehicle, server, parking pile and system

Also Published As

Publication number Publication date
CN112039921B (en) 2022-10-14

Similar Documents

Publication Publication Date Title
CN104270338B (en) Method and its system that a kind of electronic identity registration and certification are logged in
TWI497336B (en) Data security devices and computer program
CN112000975B (en) Key management system
CN110086608A (en) User authen method, device, computer equipment and computer readable storage medium
CN108243176B (en) Data transmission method and device
CN107920052B (en) Encryption method and intelligent device
CN111131416A (en) Business service providing method and device, storage medium and electronic device
CN111698088A (en) Key alternation method, key alternation device, electronic equipment and medium
CN110380859B (en) Quantum communication service station identity authentication method and system based on asymmetric key pool pair and DH protocol
CN110544090A (en) Digital currency hard wallet application implementation method, SIM card and system
CN113489710B (en) File sharing method, device, equipment and storage medium
CN117240625B (en) Tamper-resistant data processing method and device and electronic equipment
CN112600667B (en) Key negotiation method, device, equipment and storage medium
CN112039921B (en) Verification method for parking access, parking user terminal and node server
CN113890724A (en) Access authentication method and system for power Internet of things communication equipment
CN112491907A (en) Data transmission method, device, system, storage medium and electronic equipment
CN113472722A (en) Data transmission method, storage medium, electronic device and automatic ticket selling and checking system
CN111212058A (en) Method, device and system for logging in mobile phone verification code
CN113726515B (en) UKEY-based key processing method, storage medium and electronic device
CN114745115A (en) Information transmission method and device, computer equipment and storage medium
CN111132156B (en) Registration method of 5G user terminal, user terminal equipment and medium
US8612758B2 (en) System and method for inherently secure identification over insecure data communications networks
CN111404901A (en) Information verification method and device
CN114598478B (en) Data encryption method, device, electronic equipment and storage medium
CN112580003B (en) Permission control method and server based on BS architecture

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
GR01 Patent grant
GR01 Patent grant