Local authentication method and device for charging equipment, computer equipment, readable storage medium and program product
By reading and decrypting the encrypted information of the near-field card in the charging device and performing local authentication, the problem of limited storage capacity of the charging device is solved, reliable charging and space savings in the case of disconnection of the network are achieved, and the convenience of the device is improved Sex and safety.
Patent Information
- Application Number
- CN202411207507.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-30
- Publication Date
- 2024-12-06
AI Technical Summary
In the existing charging management system, due to limited storage capacity of charging devices, they cannot effectively authenticate multiple users locally, and cannot meet the growing charging needs.
By reading the encrypted information of the near-field card in the charging device and decrypting it using the local cached public key, obtaining the validity period of the card for local authentication, ensuring that authorized charging can still be performed if the cloud platform or network cannot be connected. Use one public key to decrypt multiple card information, saving storage space.
It improves the reliability and convenience of charging equipment, ensures that users can still use authorized cards to charge when the network is disconnected, reduces their dependence on cloud platforms, and improves the security and space utilization of charging equipment.
Smart Images

Figure CN119089431A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of charging management systems, and in particular to a charging device local authentication method, device, computer device, readable storage medium and program product. Background Art
[0002] In the current charging management system, local authentication is a common means of security verification. The traditional method is to authenticate through the whitelist and user card information pre-stored in the charging pile. However, with the growing demand for charging and the continuous expansion of the user base, and the limited storage capacity of the charging equipment itself, the charging equipment can only authenticate a limited number of users and cannot meet the needs of the current charging system. Summary of the invention
[0003] Based on this, it is necessary to provide a charging device local authentication method, device, computer equipment, readable storage medium and program product that can improve local authentication efficiency in response to the above technical problems.
[0004] In a first aspect, the present application provides a local authentication method for a charging device, comprising:
[0005] When the user requests charging via a proximity card, reading the encrypted information of the proximity card;
[0006] When the encrypted information is successfully decrypted using the locally cached public key, the card validity period is obtained based on the encrypted information;
[0007] Local authentication of proximity cards based on card validity period.
[0008] In one embodiment, local authentication of a near-field card is performed based on the card validity period, including:
[0009] When the near-field card is within the card validity period, determining that the local authentication of the near-field card is passed;
[0010] When the near-field card is not within the card validity period, it is determined that the local authentication of the near-field card fails.
[0011] In one embodiment, the method further comprises:
[0012] When the charging device and the cloud platform are in communication, receive the public key issued by the cloud platform;
[0013] Save the public key locally and disconnect the communication between the charging device and the cloud platform.
[0014] In a second aspect, the present application also provides a charging device local authentication method, including:
[0015] When the user triggers an account registration operation on the cloud platform through the terminal, the card information is generated through the cloud platform, and the card information is encrypted using a private key stored on the cloud platform to obtain encrypted information;
[0016] Receive the encrypted information sent by the cloud platform and generate a near-field card based on the encrypted information;
[0017] The charging device is requested to charge via the near-field card to instruct the charging device to perform local authentication on the near-field card.
[0018] In one embodiment, the card information includes a card validity period; the method further comprises:
[0019] When the near-field card is within the expiration date of the card and the user has not sent a cancellation request to the cloud platform through the terminal, a renewal request is sent to the cloud platform to instruct the cloud platform to update the card information of the near-field card and encrypt the updated encrypted information;
[0020] Receive the updated encryption information sent by the cloud platform, and update the near-field card according to the updated encryption information.
[0021] In one embodiment, the method further comprises:
[0022] When the user sends a cancellation request to the cloud platform through the terminal and the near-field card is not within the card validity period, the cloud platform is instructed to release the binding relationship between the card information of the near-field card and the user, and the cancellation information fed back by the cloud platform is received.
[0023] In a third aspect, the present application also provides a local authentication device for a charging device, comprising:
[0024] An information reading module, used to read the encrypted information of the proximity card when the user requests charging through the proximity card;
[0025] An information decryption module, used to obtain the card validity period according to the encrypted information when the encrypted information is successfully decrypted by the locally cached public key;
[0026] The local authentication module is used to perform local authentication on the near-field card according to the card validity period.
[0027] In a fourth aspect, the present application further provides a local authentication device for a charging device, comprising:
[0028] The information encryption module is used to generate card information through the cloud platform when the user triggers the account registration operation to the cloud platform through the terminal, and encrypt the card information through the private key stored in the cloud platform to obtain encrypted information;
[0029] The card generation module is used to receive the encrypted information sent by the cloud platform and generate a near-field card according to the encrypted information;
[0030] The charging request module is used to request charging from the charging device through the near-field card to instruct the charging device to perform local authentication on the near-field card.
[0031] In a fifth aspect, the present application further provides a computer device, comprising a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the method steps of any one of the first aspect or the second aspect are implemented.
[0032] In a sixth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, which implements the method steps of any one of the first aspect or the second aspect when the computer program is executed by a processor.
[0033] In a seventh aspect, the present application further provides a computer program product, comprising a computer program, which, when executed by a processor, performs the method steps of any one of the first aspect or the second aspect.
[0034] The above-mentioned charging device local authentication method, device, computer equipment, readable storage medium and program product, when the user requests charging through the near-field card, reads the encrypted information of the near-field card, and when the encrypted information is successfully decrypted by the locally cached public key, obtains the card validity period according to the encrypted information, and locally authenticates the near-field card according to the card validity period. This can ensure that when the charging device cannot be connected to the cloud platform or the network is interrupted, the user can still use the authorized near-field card for charging, thereby enhancing the reliability and availability of the charging device. At the same time, by using a public key cached locally on the charging device, multiple card information encrypted by the cloud platform can be decrypted, without the need to pre-store user card information, saving charging device space, thereby improving the convenience of the charging device. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the drawings required for use in the embodiments of the present application or related technical descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0036] FIG1 is a diagram showing an application environment of a local authentication method for a charging device in one embodiment;
[0037] FIG2 is a schematic diagram of a flow chart of a local authentication method for a charging device in one embodiment;
[0038] FIG3 is a schematic diagram of a flow chart of a local authentication method for a charging device in one embodiment;
[0039] FIG4 is a schematic diagram of a flow chart of a local authentication method for a charging device in another embodiment;
[0040] FIG5 is a structural block diagram of a local authentication device for a charging device in one embodiment;
[0041] FIG6 is a structural block diagram of a local authentication device for a charging device in another embodiment;
[0042] FIG. 7 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0043] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0044] Before describing the embodiments of the present application, the concepts that may be involved in the embodiments of the present application are described below:
[0045] Authentication: The process of verifying the identity of a user or device to ensure that only legitimate users or devices can access system resources.
[0046] Local authentication: An authentication process performed at the physical location or network range of the user or device. In contrast to remote authentication, local authentication usually does not rely on network connectivity and verifies the user's identity directly on the local system or device. For example, when the charging device is disconnected from the cloud platform network, local authentication is performed through the charging device.
[0047] Near Field Communication Technology: NFC (Near Field Communication) is a short-range, high-frequency wireless communication technology.
[0048] Charging equipment: Equipment used to provide electrical energy to batteries or other energy storage devices, such as electric vehicle charging stations.
[0049] Terminal: A device or interface through which users interact with computer systems, such as mobile terminals such as smartphones and tablet computers.
[0050] Cloud platform: A platform that provides computing resources, storage resources, and software development and deployment environment based on the Internet.
[0051] Asymmetric encryption technology: an encryption method that uses a pair of keys (public key and private key) for encryption and decryption. The public key can be made public to anyone for use in encrypting data or verifying signatures; the private key is known only to the holder and is used to decrypt data or generate signatures.
[0052] Combined with the above concept description, the charging device local authentication method provided in the embodiment of the present application can be applied to the application environment shown in Figure 1. Among them, the charging device 102 communicates with the terminal 104 through the near field communication technology, and the terminal 104 communicates with the cloud platform 106 through the network. Among them, the charging device 102 is used to read the encrypted information of the near field card when the user triggers the request for charging through the near field card generated by the terminal 104, and when the encrypted information is successfully decrypted by the public key cached locally, the card validity period is obtained according to the encrypted information, and the near field card is locally authenticated according to the card validity period. The terminal 104 is used to generate card information through the cloud platform 106 when the user triggers the account registration operation to the cloud platform 106 through the terminal 104, and encrypt the card information through the private key stored in the cloud platform 106 to obtain the encrypted information, receive the encrypted information issued by the cloud platform 106, and generate a near field card according to the encrypted information, and request charging from the charging device 102 through the near field card to instruct the charging device 102 to perform local authentication on the near field card.
[0053] Among them, the charging device 102 can be but not limited to a charging pile. The terminal 102 can be but not limited to various personal computers, laptops, smart phones, tablet computers, Internet of Things devices and portable wearable devices. The Internet of Things devices can be smart speakers, smart TVs, smart air conditioners, smart car devices, projection devices, etc. Portable wearable devices can be smart watches, smart bracelets, head-mounted devices, etc. The head-mounted devices can be virtual reality (VR) devices, augmented reality (AR) devices, smart glasses, etc. The cloud platform 106 can be an independent physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides cloud computing services.
[0054] In an exemplary embodiment, as shown in FIG2 , a local authentication method for a charging device is provided, and the method is applied to the charging device 102 in FIG1 as an example for explanation, including the following steps 202 to 206 . Among them:
[0055] S202: When the user requests charging through the near-field card, the encrypted information of the near-field card is read.
[0056] Optionally, when a user requests charging through a near-field card (such as an NFC card), the user places the NFC card close to the charging device, and the charging device reads the information on the card through NFC technology, wherein the card information is encrypted by the cloud platform private key, and when the charging device reads the information, it reads the encrypted information.
[0057] S204: When the encrypted information is successfully decrypted using the locally cached public key, the card validity period is obtained according to the encrypted information.
[0058] Optionally, the charging device has a local cache of a public key corresponding to the cloud platform private key. Since the public key is cached locally on the charging device, when the charging device is disconnected from the cloud platform, the public key stored locally on the charging device can be used to decrypt multiple card information encrypted by the cloud platform private key. The decrypted information obtained is the real information of the near-field card. The card information includes the card validity period of the near-field card. When the charging device successfully decrypts the encrypted information, it extracts the card validity period from the decrypted information, and then performs local authentication based on the card validity period. It should be noted that if the charging device fails to decrypt the encrypted information, it is directly regarded as a local authentication failure.
[0059] S206: Perform local authentication on the near-field card according to the card validity period.
[0060] Optionally, during local authentication, the validity of the near-field card needs to be verified. If the verification passes, that is, the near-field card is within the validity period, it means that the authentication is passed and the charging device allows charging. If the verification fails, that is, the near-field card is not within the validity period, it means that the authentication fails and charging is not allowed. At this time, the charging device can prompt the user that the charging has failed.
[0061] In the above-mentioned local authentication method for charging equipment, when the user requests charging through the near-field card, the encrypted information of the near-field card is read, and when the encrypted information is successfully decrypted by the locally cached public key, the card validity period is obtained according to the encrypted information, and the near-field card is locally authenticated according to the card validity period. This ensures that when the charging device cannot be connected to the cloud platform or the network is interrupted, the user can still use the authorized near-field card for charging, thereby enhancing the reliability and availability of the charging device. At the same time, by using a public key cached locally on the charging device, multiple card information encrypted by the cloud platform can be decrypted, without the need to pre-store user card information, saving charging device space, thereby improving the convenience of the charging device.
[0062] In an exemplary embodiment, the step of locally authenticating the near-field card according to the card validity period includes: if the near-field card is within the card validity period, determining that the near-field card local authentication passes; if the near-field card is not within the card validity period, determining that the near-field card local authentication fails.
[0063] Optionally, when performing local authentication, the charging device needs to verify whether the near-field card is within the validity period. If the near-field card is currently within the validity period, it means that the local authentication is successful. If the near-field card is not currently within the validity period, it means that the local authentication fails.
[0064] In this embodiment, by locally authenticating the near-field card according to the card validity period in the decrypted information, the near-field card can be effectively managed and the safety of the charging device can be improved.
[0065] In an exemplary embodiment, the method further includes: when the charging device and the cloud platform are in communication, receiving a public key issued by the cloud platform; saving the public key locally, and disconnecting the communication between the charging device and the cloud platform.
[0066] Optionally, public key information is cached in the charging device. When the communication between the charging device and the cloud platform is normal (i.e., before the communication between the charging device and the cloud platform is disconnected), the public key corresponding to the private key is sent to the charging device through the cloud platform, ensuring that the charging device can successfully decrypt all card information encrypted by the cloud platform private key through a stored public key.
[0067] In this embodiment, by using asymmetric encryption technology, the confidentiality and integrity of data during transmission can be ensured, and by using a public key cached locally on the charging device, multiple card information encrypted by the cloud platform can be decrypted. There is no need to pre-store user card information, which saves space on the charging device and improves the convenience of the charging device.
[0068] In an exemplary embodiment, as shown in FIG3 , a local authentication method for a charging device is provided, which is described by taking the method applied to the terminal 104 in FIG1 as an example, and includes the following steps 302 to 306 . Among them:
[0069] S302: When the user triggers an account registration operation to the cloud platform through the terminal, the card information is generated through the cloud platform, and the card information is encrypted using a private key stored in the cloud platform to obtain encrypted information.
[0070] Optionally, when a user registers an account through the cloud platform, he / she needs to provide necessary personal information. The cloud platform generates card information based on the user's personal information, where the card information includes the card number and validity period. The cloud platform binds the generated card information to the user's account for deduction to ensure the exclusivity and security of the card information. Afterwards, the cloud platform encrypts the card information with the stored private key to obtain the encrypted information, and sends the encrypted information to the terminal.
[0071] S304: Receive the encrypted information sent by the cloud platform, and generate a near-field card according to the encrypted information.
[0072] Optionally, the terminal receives encrypted information sent by the cloud platform, and writes the information into a near-field card using NFC technology. For example, the terminal formats the decrypted information according to the data format of the near-field card, and writes the formatted data into a blank card using NFC technology to obtain a near-field card.
[0073] S306: Request charging from the charging device via the near field card to instruct the charging device to perform local authentication on the near field card.
[0074] Optionally, the user can request charging from the charging device through a near-field card in the terminal. For example, the user brings the near-field card close to the charging device, and the charging device can read the information on the card through NFC technology, and then locally authenticate the near-field card.
[0075] In this embodiment, when the user triggers an account registration operation to the cloud platform through a terminal, card information is generated through the cloud platform, and the card information is encrypted through a private key stored in the cloud platform to obtain encrypted information, the encrypted information issued by the cloud platform is received, and a near-field card is generated according to the encrypted information, and a charging request is made to the charging device through the near-field card to instruct the charging device to locally authenticate the near-field card. This ensures that when the charging device cannot be connected to the cloud platform or the network is interrupted, the user can still use the authorized near-field card for charging, thereby enhancing the reliability and availability of the charging device. At the same time, by using a public key cached locally on the charging device, multiple card information encrypted by the cloud platform can be decrypted, without the need to pre-store user card information, saving space on the charging device, thereby improving the convenience of the charging device.
[0076] In an exemplary embodiment, the card information includes the card validity period; the method also includes: when the near-field card is near the end of its validity period and the user has not sent a cancellation request to the cloud platform through the terminal, sending a renewal request to the cloud platform to instruct the cloud platform to update the card information of the near-field card and encrypt it to obtain updated encrypted information; receiving the updated encrypted information sent by the cloud platform, and updating the near-field card according to the updated encrypted information.
[0077] Optionally, when the near-field card is nearing the expiration date and the user has not cancelled the card, the terminal may automatically send a card renewal request to the cloud platform. After receiving the renewal request, the cloud platform updates the card information of the near-field card, re-encrypts the updated card information, and sends the encrypted card information to the terminal, so that the terminal updates the near-field card according to the updated encrypted information.
[0078] In this embodiment, the terminal automatically sends a renewal request to the cloud platform, which can ensure that the near-field card is always within the validity period, thereby improving the card management efficiency.
[0079] In an exemplary embodiment, the method also includes: when the user sends a cancellation request to the cloud platform through the terminal and the near-field card is not within the card validity period, instructing the cloud platform to release the binding relationship between the card information of the near-field card and the user, and receiving the cancellation information fed back by the cloud platform.
[0080] Optionally, if the user needs to cancel the near-field card, the user can send a card cancellation request to the cloud platform through the terminal. After the card expires, the cloud platform releases the binding relationship between the card information and the user, and informs the terminal that the cancellation is successful, thereby ensuring that the cancelled near-field cards have exceeded the card validity period.
[0081] In this embodiment, the binding relationship between expired near-field card information and the user is released through the cloud platform, which can protect user privacy, prevent potential risks, and effectively achieve resource management.
[0082] In an exemplary embodiment, as shown in FIG4 , a local authentication method for a charging device is provided, the method comprising the following steps:
[0083] When the charging device and the cloud platform are in communication, the public key issued by the cloud platform is received; the public key is saved locally, and the communication between the charging device and the cloud platform is disconnected.
[0084] When the user triggers an account registration operation to the cloud platform through the terminal, the card information is generated through the cloud platform, and the card information is encrypted by the private key stored in the cloud platform to obtain encrypted information.
[0085] Receive the encrypted information sent by the cloud platform and generate a near-field card based on the encrypted information.
[0086] The near-field card is used to request charging from the charging device, thereby instructing the charging device to perform local authentication on the near-field card.
[0087] When the user requests charging through a proximity card, the encrypted information of the proximity card is read.
[0088] When the encrypted information is successfully decrypted using the locally cached public key, the card validity period is obtained based on the encrypted information.
[0089] When the near-field card is within the card validity period, it is determined that the near-field card local authentication has passed; when the near-field card is not within the card validity period, it is determined that the near-field card local authentication has failed.
[0090] When the near-field card is nearing the expiration date and the user has not sent a cancellation request to the cloud platform through the terminal, a renewal request is sent to the cloud platform to instruct the cloud platform to update the card information of the near-field card and encrypt the updated encrypted information; the updated encrypted information sent by the cloud platform is received, and the near-field card is updated according to the updated encrypted information.
[0091] When the user sends a cancellation request to the cloud platform through the terminal and the near-field card is not within the card validity period, the cloud platform is instructed to release the binding relationship between the card information of the near-field card and the user, and the cancellation information fed back by the cloud platform is received.
[0092] In this embodiment, when the user requests charging through the near-field card, the card information of the near-field card is obtained, the card information is decrypted by using the public key locally cached by the charging device to obtain the decrypted information, and the near-field card is locally authenticated according to the decrypted information. This ensures that when the charging device cannot be connected to the cloud platform or the network is interrupted, the user can still use the authorized near-field card for charging, thereby enhancing the reliability and availability of the charging device. At the same time, by using the public key locally cached by the charging device to decrypt the card information, the dependence of the charging device on the cloud platform is reduced, thereby ensuring the security of the card information during transmission and storage, thereby improving the convenience of the charging device.
[0093] It should be understood that, although the steps in the flowcharts involved in the above embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above embodiments may include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0094] Based on the same inventive concept, the embodiment of the present application also provides a charging device local authentication device for implementing the above-mentioned charging device local authentication method. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above-mentioned method, so the specific limitations in one or more embodiments of the charging device local authentication device provided below can refer to the limitations of the charging device local authentication method above, and will not be repeated here.
[0095] In an exemplary embodiment, as shown in FIG5 , a local authentication device for a charging device is provided, comprising: an information reading module 510 , an information decryption module 520 and a local authentication module 530 , wherein:
[0096] The information reading module 510 is used to read the encrypted information of the near-field card when the user requests charging through the near-field card.
[0097] The information decryption module 520 is used to obtain the card validity period according to the encrypted information when the encrypted information is successfully decrypted by the locally cached public key.
[0098] The local authentication module 530 is used to perform local authentication on the near-field card according to the card validity period.
[0099] In an exemplary embodiment, the local authentication module 530 is further used to determine that the local authentication of the near-field card passes when the near-field card is within the card validity period; and to determine that the local authentication of the near-field card fails when the near-field card is not within the card validity period.
[0100] In an exemplary embodiment, the information decryption module 520 is also used to receive a public key issued by the cloud platform when the charging device and the cloud platform are in communication; save the public key locally, and disconnect the communication between the charging device and the cloud platform.
[0101] In an exemplary embodiment, as shown in FIG6 , a local authentication device for a charging device is provided, comprising: an information reading module 610 , an information decryption module 620 and a local authentication module 630 , wherein:
[0102] The information encryption module 610 is used to generate card information through the cloud platform when the user triggers the account registration operation to the cloud platform through the terminal, and encrypt the card information through the private key stored in the cloud platform to obtain encrypted information.
[0103] The card generation module 620 is used to receive the encrypted information sent by the cloud platform and generate a near-field card according to the encrypted information.
[0104] The charging request module 630 is used to request charging from the charging device through the near-field card, so as to instruct the charging device to perform local authentication on the near-field card.
[0105] In an exemplary embodiment, the card generation module 620 is also used to send a renewal request to the cloud platform when the near-field card is nearing the expiration date and the user has not sent a cancellation request to the cloud platform through the terminal, so as to instruct the cloud platform to update the card information of the near-field card and encrypt the updated encrypted information; receive the updated encrypted information sent by the cloud platform, and update the near-field card according to the updated encrypted information.
[0106] In an exemplary embodiment, the authentication module 530 is also used to instruct the cloud platform to release the binding relationship between the card information of the near-field card and the user when the user sends a cancellation request to the cloud platform through the terminal and the near-field card is not within the card validity period, and receive the cancellation information fed back by the cloud platform.
[0107] Each module in the above-mentioned local authentication device of the charging device can be implemented in whole or in part by software, hardware or a combination thereof. Each of the above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the corresponding operations of each of the above modules.
[0108] In an exemplary embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be shown in FIG7. The computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit, and an input device. The processor, the memory, and the input / output interface are connected via a system bus, and the communication interface, the display unit, and the input device are connected to the system bus via the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner may be implemented through WIFI, a mobile cellular network, near field communication (NFC) or other technologies. When the computer program is executed by the processor, a local authentication method for a charging device is implemented. The display unit of the computer device is used to form a visually visible picture, which may be a display screen, a projection device, or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the computer device shell, or an external keyboard, touchpad or mouse.
[0109] Those skilled in the art will understand that the structure shown in FIG. 7 is merely a block diagram of a partial structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.
[0110] In an exemplary embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the following steps when executing the computer program: when a user requests charging through a near-field card, reading the encrypted information of the near-field card; when the encrypted information is successfully decrypted through a locally cached public key, obtaining the card validity period according to the encrypted information; and locally authenticating the near-field card according to the card validity period.
[0111] In one embodiment, the local authentication of the near-field card according to the card validity period involved in the processor executing the computer program includes: when the near-field card is within the card validity period, determining that the local authentication of the near-field card passes; when the near-field card is not within the card validity period, determining that the local authentication of the near-field card fails.
[0112] In one embodiment, when the processor executes the computer program, the following steps are also implemented: when the charging device and the cloud platform are in communication, receiving the public key issued by the cloud platform; saving the public key locally, and disconnecting the communication between the charging device and the cloud platform.
[0113] In an exemplary embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the following steps when executing the computer program: when a user triggers an account registration operation to a cloud platform through a terminal, card information is generated through the cloud platform, and the card information is encrypted through a private key stored in the cloud platform to obtain encrypted information; the encrypted information sent by the cloud platform is received, and a near-field card is generated according to the encrypted information; and charging is requested from a charging device through the near-field card to instruct the charging device to locally authenticate the near-field card.
[0114] In one embodiment, the card information includes the card validity period; when the processor executes the computer program, the following steps are also implemented: when the near-field card is nearing the expiration date of the card and the user has not sent a cancellation request to the cloud platform through the terminal, a renewal request is sent to the cloud platform to instruct the cloud platform to update the card information of the near-field card and encrypt it to obtain updated encrypted information; the updated encrypted information sent by the cloud platform is received, and the near-field card is updated according to the updated encrypted information.
[0115] In one embodiment, when the processor executes the computer program, the following steps are also implemented: when the user sends a cancellation request to the cloud platform through the terminal and the near-field card is not within the card validity period, instruct the cloud platform to release the binding relationship between the card information of the near-field card and the user, and receive the cancellation information fed back by the cloud platform.
[0116] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the following steps are implemented: when a user requests charging through a near-field card, the encrypted information of the near-field card is read; when the encrypted information is successfully decrypted through a locally cached public key, the card validity period is obtained according to the encrypted information; and the near-field card is locally authenticated according to the card validity period.
[0117] In one embodiment, when the computer program is executed by a processor, the local authentication of the near-field card based on the card validity period is involved, including: when the near-field card is within the card validity period, determining that the local authentication of the near-field card passes; when the near-field card is not within the card validity period, determining that the local authentication of the near-field card fails.
[0118] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: when the charging device and the cloud platform are in communication, receiving the public key issued by the cloud platform; saving the public key locally, and disconnecting the communication between the charging device and the cloud platform.
[0119] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the following steps are implemented: when a user triggers an account registration operation to a cloud platform through a terminal, card information is generated through the cloud platform, and the card information is encrypted through a private key stored in the cloud platform to obtain encrypted information; the encrypted information sent by the cloud platform is received, and a near-field card is generated according to the encrypted information; and charging is requested from a charging device through the near-field card to instruct the charging device to locally authenticate the near-field card.
[0120] In one embodiment, the card information includes the card validity period; when the computer program is executed by the processor, the following steps are also implemented: when the near-field card is nearing the expiration date of the card and the user has not sent a cancellation request to the cloud platform through the terminal, a renewal request is sent to the cloud platform to instruct the cloud platform to update the card information of the near-field card and encrypt it to obtain updated encrypted information; the updated encrypted information sent by the cloud platform is received, and the near-field card is updated according to the updated encrypted information.
[0121] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: when the user sends a cancellation request to the cloud platform through the terminal and the near-field card is not within the card validity period, instruct the cloud platform to release the binding relationship between the card information of the near-field card and the user, and receive the cancellation information fed back by the cloud platform.
[0122] In one embodiment, a computer program product is provided, including a computer program, which, when executed by a processor, implements the following steps: when a user requests charging through a near-field card, reading encrypted information of the near-field card; when the encrypted information is successfully decrypted using a locally cached public key, obtaining a card validity period based on the encrypted information; and locally authenticating the near-field card based on the card validity period.
[0123] In one embodiment, when the computer program is executed by a processor, the local authentication of the near-field card based on the card validity period is involved, including: when the near-field card is within the card validity period, determining that the local authentication of the near-field card passes; when the near-field card is not within the card validity period, determining that the local authentication of the near-field card fails.
[0124] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: when the charging device and the cloud platform are in communication, receiving the public key issued by the cloud platform; saving the public key locally, and disconnecting the communication between the charging device and the cloud platform.
[0125] In one embodiment, a computer program product is provided, including a computer program, which implements the following steps when executed by a processor: when a user triggers an account registration operation to a cloud platform through a terminal, card information is generated through the cloud platform, and the card information is encrypted through a private key stored in the cloud platform to obtain encrypted information; the encrypted information sent by the cloud platform is received, and a near-field card is generated according to the encrypted information; and charging is requested from a charging device through the near-field card to instruct the charging device to locally authenticate the near-field card.
[0126] In one embodiment, the card information includes the card validity period; when the computer program is executed by the processor, the following steps are also implemented: when the near-field card is nearing the expiration date of the card and the user has not sent a cancellation request to the cloud platform through the terminal, a renewal request is sent to the cloud platform to instruct the cloud platform to update the card information of the near-field card and encrypt it to obtain updated encrypted information; the updated encrypted information sent by the cloud platform is received, and the near-field card is updated according to the updated encrypted information.
[0127] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: when the user sends a cancellation request to the cloud platform through the terminal and the near-field card is not within the card validity period, instruct the cloud platform to release the binding relationship between the card information of the near-field card and the user, and receive the cancellation information fed back by the cloud platform.
[0128] It should be noted that the user information (including but not limited to user identity information, user card information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.
[0129] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., but are not limited to this.
[0130] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.
[0131] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A local authentication method for charging equipment, It is characterized in that Applied to charging equipment; the method comprises: When a user requests charging via a proximity card, reading encrypted information of the proximity card; When the encrypted information is successfully decrypted using the locally cached public key, obtaining the card validity period according to the encrypted information; The near-field card is locally authenticated according to the card validity period.
2. The method according to claim 1, It is characterized in that The locally authenticating the near-field card according to the card validity period includes: In the case where the near-field card is within the card validity period, determining that the near-field card local authentication passes; When the near-field card is not within the validity period of the card, it is determined that the local authentication of the near-field card fails.
3. The method according to claim 1, It is characterized in that The method further comprises: When the charging device and the cloud platform are in communication, receiving a public key issued by the cloud platform; The public key is stored locally, and the communication between the charging device and the cloud platform is disconnected.
4. A local authentication method for charging equipment, It is characterized in that Applied to a terminal; the method comprises: When a user triggers an account registration operation on the cloud platform through the terminal, card information is generated through the cloud platform, and the card information is encrypted using a private key stored in the cloud platform to obtain encrypted information; Receiving the encrypted information sent by the cloud platform, and generating a near-field card according to the encrypted information; The near-field card is used to request charging from a charging device, so as to instruct the charging device to perform local authentication on the near-field card.
5. The method according to claim 4, It is characterized in that The card information includes a card validity period; the method further includes: When the near-field card is within the expiration date of the card and the user has not sent a cancellation request to the cloud platform through the terminal, sending a renewal request to the cloud platform to instruct the cloud platform to update the card information of the near-field card and encrypt the updated encrypted information; Receive the updated encryption information sent by the cloud platform, and update the near-field card according to the updated encryption information.
6. The method according to claim 5, It is characterized in that The method further comprises: When the user sends a cancellation request to the cloud platform through the terminal and the near-field card is not within the validity period of the card, the cloud platform is instructed to release the binding relationship between the card information of the near-field card and the user, and the cancellation information fed back by the cloud platform is received.
7. A local authentication device for a charging device, It is characterized in that The device comprises: An information reading module, used to read the encrypted information of the near-field card when the user requests charging through the near-field card; An information decryption module, used to obtain the card validity period according to the encrypted information when the encrypted information is successfully decrypted by the locally cached public key; The local authentication module is used to perform local authentication on the near-field card according to the validity period of the card.
8. A computer device comprising a memory and a processor, wherein the memory stores a computer program. It is characterized in that When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.
9. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
10. A computer program product comprising a computer program, It is characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
