CN114449505A - NFC label data transmission method - Google Patents

NFC label data transmission method Download PDF

Info

Publication number
CN114449505A
CN114449505A CN202210227701.3A CN202210227701A CN114449505A CN 114449505 A CN114449505 A CN 114449505A CN 202210227701 A CN202210227701 A CN 202210227701A CN 114449505 A CN114449505 A CN 114449505A
Authority
CN
China
Prior art keywords
data
platform
public key
hash
generate corresponding
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
CN202210227701.3A
Other languages
Chinese (zh)
Other versions
CN114449505B (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.)
Xindian Zhilian Beijing Technology Co ltd
Original Assignee
Xindian Zhilian Beijing 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 Xindian Zhilian Beijing Technology Co ltd filed Critical Xindian Zhilian Beijing Technology Co ltd
Priority to CN202210227701.3A priority Critical patent/CN114449505B/en
Publication of CN114449505A publication Critical patent/CN114449505A/en
Application granted granted Critical
Publication of CN114449505B publication Critical patent/CN114449505B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/03Protecting confidentiality, e.g. by encryption
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/04Key management, e.g. using generic bootstrapping architecture [GBA]
    • H04W12/041Key generation or derivation

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Storage Device Security (AREA)

Abstract

The embodiment of the invention relates to a transmission method of NFC label data, which comprises the following steps: reading anti-counterfeiting data of the NFC label and recording the anti-counterfeiting data as first plaintext data; encrypting the first plaintext data to generate first encrypted data; encrypting the first encrypted data to generate second encrypted data; performing hash calculation to generate first hash data; encoding the second encrypted data, the device public key and the first hash data to generate first transmission data for transmission; receiving second transmission data; decoding to generate second data; extracting third ciphertext data, a platform public key and second hash data; performing hash calculation on the third ciphertext data to generate third hash data; if the second hash data and the third hash data are matched, the third ciphertext data are decrypted to generate first decrypted data; decrypting the first decrypted data to generate second decrypted data; the second decrypted data is taken as the plaintext data at the time of reception. The invention can reduce the risk of anti-counterfeiting data transmission and improve the transmission safety.

Description

NFC label data transmission method
Technical Field
The invention relates to the technical field of data processing, in particular to a transmission method of NFC label data.
Background
The counterfeiting difficulty of counterfeit commodities can be improved by using Near Field Communication (NFC) tags as anti-counterfeiting tags for regular commodities circulating in the market. The anti-counterfeiting system based on the NFC label is composed of an NFC label processing device at the front end and an anti-counterfeiting data verification platform at the rear end, wherein after the anti-counterfeiting data on the NFC label are acquired by the NFC label processing device at the front end, the anti-counterfeiting data are transmitted to the rear end platform for verification through a data transmission link with the rear end platform. In some current anti-counterfeiting system applications, a verification mechanism of the NFC tag is only established between the NFC tag and the background, but a corresponding link protection mechanism is not established for a data transmission link between the NFC tag processing device and the backend platform, which undoubtedly brings a certain data security risk to the anti-counterfeiting system.
Disclosure of Invention
The present invention aims to overcome the defects in the prior art, and provides a method for transmitting NFC tag data, an electronic device, and a computer-readable storage medium, in which a data encryption transmission channel is established between an NFC tag processing device and an anti-counterfeit data verification platform. By the invention, the data transmission risk of the anti-counterfeiting system can be reduced.
In order to achieve the above object, a first aspect of the embodiments of the present invention provides a method for transmitting NFC tag data, where the method includes:
reading anti-counterfeiting data of the NFC label by the NFC label processing device and recording the anti-counterfeiting data as first plaintext data;
when first plain data are to be sent to a remote anti-counterfeiting data verification platform, firstly, judging whether a new device public and private key pair needs to be generated or not, if so, generating and processing the public and private key pair locally in the device to obtain a new pair of matched device public key and device private key and storing the new pair of matched device public key and device private key; based on the device private key, the first plaintext data is encrypted to generate corresponding first encrypted data; based on a locally stored platform public key, encrypting the first encrypted data to generate corresponding second encrypted data; performing hash calculation on the second encrypted data to generate corresponding first hash data; the second encrypted data, the device public key and the first hash data form first data; encoding the first data based on a Base64 encoding-decoding rule to generate corresponding first transmission data;
sending the first transmission data serving as security link data to the anti-counterfeiting data verification platform; receiving another safety link data sent back by the anti-counterfeiting data verification platform and recording the data as second transmission data;
decoding the second transmission data to generate corresponding second data based on the Base64 encoding-decoding rule; extracting third ciphertext data, a platform public key and second hash data from the second data; judging whether the extracted platform public key is consistent with a locally stored platform public key or not, and if not, updating the locally stored platform public key by using the extracted platform public key; performing hash calculation on the third ciphertext data to generate corresponding third hash data; if the second hash data is matched with the third hash data, the device private key is used for decrypting the third ciphertext data to generate corresponding first decrypted data; decrypting the first decrypted data by using the latest platform public key to generate corresponding second decrypted data; and the second decrypted data is used as the current plaintext data sent by the anti-counterfeiting data verification platform.
Preferably, before the NFC tag processing device reads the anti-counterfeiting data of the NFC tag and records the anti-counterfeiting data as the first plaintext data, the method further includes:
the NFC label processing device carries out public and private key pair generation processing in the device in advance to obtain a pair of matched device public key and device private key, stores the device public key and sends the device public key to the anti-counterfeiting data verification platform for storage;
and the anti-counterfeiting data verification platform performs public and private key pair generation processing in the local platform in advance to obtain a pair of matched platform public key and platform private key, stores the platform public key and sends the platform public key to the NFC label processing device for storage.
Preferably, the method further comprises:
when the anti-counterfeiting data verification platform receives the first transmission data sent by the NFC label processing device, decoding the first transmission data based on the Base64 encoding-decoding rule to generate corresponding third data; extracting fourth ciphertext data, a device public key and fourth hash data from the third data; judging whether the extracted device public key is consistent with the locally stored device public key or not, and if not, updating the locally stored device public key by using the extracted device public key; performing hash calculation on the fourth ciphertext data to generate corresponding fifth hash data; if the fourth hash data is matched with the fifth hash data, the platform private key is used for decrypting the fourth ciphertext data to generate corresponding third decrypted data; decrypting the third decrypted data by using the latest device public key to generate corresponding fourth decrypted data; and using the fourth decrypted data as current plaintext data sent by the NFC tag processing device.
Preferably, the method further comprises:
when the anti-counterfeiting data verification platform prepares to send second plaintext data to the NFC label processing device, firstly, whether a new platform public and private key pair needs to be generated is judged, and if so, the generation processing of the public and private key pair is carried out locally on the platform to obtain a new pair of matched platform public key and platform private key and the new pair of matched platform public key and platform private key is stored; based on the platform private key, the second plaintext data is encrypted to generate corresponding third encrypted data; on the basis of a locally stored device public key, the third encrypted data is encrypted to generate corresponding fourth encrypted data; performing hash calculation on the fourth encrypted data to generate corresponding sixth hash data; fourth data is formed by the fourth encrypted data, the platform public key and the sixth hash data; encoding the fourth data based on a Base64 encoding-decoding rule to generate corresponding third transmission data;
and sending the third transmission data as secure link data to the NFC tag processing device.
A second aspect of an embodiment of the present invention provides an electronic device, including: a memory, a processor, and a transceiver;
the processor is configured to be coupled to the memory, read and execute instructions in the memory, so as to implement the method steps of the first aspect;
the transceiver is coupled to the processor, and the processor controls the transceiver to transmit and receive messages.
A third aspect of embodiments of the present invention provides a computer-readable storage medium storing computer instructions that, when executed by a computer, cause the computer to perform the method of the first aspect.
The embodiment of the invention provides a transmission method of NFC label data, electronic equipment and a computer readable storage medium, wherein a data encryption transmission channel is established between an NFC label processing device and an anti-counterfeiting data verification platform. By the invention, a data transmission link between the NFC label processing device and the anti-counterfeiting data verification platform is protected, and the data transmission risk of the anti-counterfeiting system is reduced.
Drawings
Fig. 1 is a schematic diagram of a method for transmitting NFC tag data according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of an electronic device according to a second embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the present invention will be described in further detail with reference to the accompanying drawings, and it is apparent that the described embodiments are only a part of the embodiments of the present invention, not all of the embodiments. All other embodiments, which can be obtained by a person skilled in the art without making any creative effort based on the embodiments in the present invention, belong to the protection scope of the present invention.
The embodiment of the invention provides a transmission method of NFC label data, which is characterized in that a packaging/analyzing mechanism of secure link data is established between an NFC label processing device and an anti-counterfeiting data verification platform, and a data encryption transmission channel is established between the NFC label processing device and the anti-counterfeiting data verification platform through the mechanism; fig. 1 is a schematic diagram of a method for transmitting NFC tag data according to an embodiment of the present invention, where the method mainly includes the following steps:
before describing the steps in fig. 1, a public-private key data relationship between the NFC tag processing apparatus and the anti-counterfeit data verification platform is briefly described. Before the NFC tag processing device and the anti-counterfeit data verification platform transmit data without using a data encryption transmission channel, that is, before step 1, it is necessary that the NFC tag processing device and the anti-counterfeit data verification platform do not make a public key exchange based on the above-mentioned encapsulation/parsing machine for secure link data, specifically: the NFC label processing device performs public and private key pair generation processing in the device in advance to obtain a pair of matched device public key and device private key, stores the device public key and the device private key, and sends the device public key to the anti-counterfeiting data verification platform for storage; the anti-counterfeiting data verification platform carries out public and private key pair generation processing in the platform in advance to obtain a pair of matched platform public key and platform private key, and stores the platform public key, and sends the platform public key to the NFC label processing device for storage. After the public key exchange is completed, the encapsulation/parsing mechanism of the secure link data may be formally activated, and specific implementation steps are described in detail below.
Step 1, the NFC tag processing device reads the anti-counterfeiting data of the NFC tag and records the anti-counterfeiting data as first plaintext data.
Step 2, when preparing to send first plain text data to a remote anti-counterfeiting data verification platform, firstly judging whether a new device public and private key pair needs to be generated, if so, generating and processing the public and private key pair locally in the device to obtain a new pair of matched device public key and device private key and storing the new pair of matched device public key and device private key; based on the device private key, encrypting the first plaintext data to generate corresponding first encrypted data; based on a locally stored platform public key, the first encrypted data is encrypted to generate corresponding second encrypted data; carrying out hash calculation on the second encrypted data to generate corresponding first hash data; the second encrypted data, the device public key and the first hash data form first data; and encodes the first data based on Base64 encoding-decoding rules to generate corresponding first transmission data.
Here, when sending data from the NFC tag processing device to the anti-counterfeit data verification platform, the embodiment of the present invention performs double encryption on a plaintext to be sent by sequentially using the device private key on the device side and the platform public key on the platform side, thereby ensuring that data is not transmitted in a plaintext manner, and improving the security of data transmission; then, the double encryption result, namely the hash value of the second encryption data, namely the first hash data, is calculated, so that the integrity of data transmission is ensured; then performing Base64 encoding on the double encryption result, the device public key and the hash value, thereby improving the data compression efficiency and the transmission efficiency; and finally, sending the Base64 encoded data, namely the first transmission data to the anti-counterfeiting data verification platform.
Step 3, the first transmission data is used as security link data to be sent to an anti-counterfeiting data verification platform; and receiving another safety link data sent back by the anti-counterfeiting data verification platform and recording the data as second transmission data.
After the NFC tag processing device completes data transmission to the anti-counterfeit data verification platform in step 3, the corresponding anti-counterfeit data verification platform may perform analysis by using a reverse flow to the processing flow in step 2 during data reception. Specifically, the method comprises the following steps: when the anti-counterfeiting data verification platform receives first transmission data sent by the NFC label processing device, decoding the first transmission data based on a Base64 encoding-decoding rule to generate corresponding third data; extracting fourth ciphertext data, a device public key and fourth hash data from the third data; judging whether the extracted device public key is consistent with the locally stored device public key or not, and if not, updating the locally stored device public key by using the extracted device public key; performing hash calculation on the fourth ciphertext data to generate corresponding fifth hash data; if the fourth hash data is matched with the fifth hash data, the platform private key is used for decrypting the fourth ciphertext data to generate corresponding third decrypted data; decrypting the third decrypted data by using the latest device public key to generate corresponding fourth decrypted data; and the fourth decrypted data is used as the current plaintext data sent by the NFC tag processing device.
Here, when the anti-counterfeiting data verification platform receives data from the NFC tag processing device in the embodiment of the present invention, Base64 decoding is performed on the received data first; extracting a double encryption result (fourth ciphertext data), a device public key and a hash value (fourth hash data) from the Base64 decoding data, namely the third data according to a convention format (double encryption result + device public key + hash value); performing hash operation identical to that of the device side based on the double encryption result (fourth ciphertext data) to obtain a corresponding calculation result (fifth hash data); the fourth hash data and the fifth hash data should be matched under the condition of no error, if the fourth hash data and the fifth hash data are not matched, the false data possibly exists, and the anti-counterfeiting data verification platform should immediately stop the subsequent data analysis operation; when the fourth and fifth hash data are matched, according to the inverse operation of the calculation process of the above two encryption results, the anti-counterfeiting data verification platform performs two-time decryption on the two encryption results (fourth ciphertext data) by using the platform private key at the platform side and the device public key at the device side in sequence, and the obtained two-time decryption result is the plaintext analyzed by the anti-counterfeiting data verification platform during data reception.
And the anti-counterfeiting data verification platform executes corresponding processing steps according to the analyzed plaintext, and when data needs to be sent back to the NFC tag processing device, the security link data encapsulation is also carried out on the plaintext to be transmitted. The data receiving and sending mechanism at the anti-counterfeiting data verification platform side in the embodiment of the invention is similar to the data receiving and sending mechanism at the NFC label processing device side. And (3) when the anti-counterfeiting data verification platform needs to send data to the NFC label processing device, packaging by adopting the same flow as the processing flow in the step (2). Specifically, the method comprises the following steps: when the anti-counterfeiting data verification platform prepares to send second plaintext data to the NFC label processing device, firstly, whether a new platform public and private key pair needs to be generated is judged, and if so, the public and private key pair generation processing is carried out locally on the platform to obtain a new pair of matched platform public key and platform private key and the new pair of matched platform public key and platform private key is stored; based on the platform private key, the second plaintext data is encrypted to generate corresponding third encrypted data; on the basis of the locally stored device public key, the third encrypted data is encrypted to generate corresponding fourth encrypted data; performing hash calculation on the fourth encrypted data to generate corresponding sixth hash data; fourth data is composed of fourth encrypted data, a platform public key and sixth hash data; encoding the fourth data based on the Base64 encoding-decoding rule to generate corresponding third transmission data; and sending the third transmission data as the safety link data to the NFC label processing device.
Here, when data is sent from the anti-counterfeiting data verification platform to the NFC tag processing device, the platform private key on the platform side and the device public key on the device side are sequentially used to perform double encryption on a plaintext to be sent, so that it is ensured that data is not transmitted in a plaintext manner, and the security of data transmission is improved; then, the double encryption result, namely the hash value of the fourth encryption data, namely the sixth hash data, is calculated, so that the integrity of data transmission is ensured; then, Base64 encoding is carried out on the double encryption result, the platform public key and the hash value, so that the data compression efficiency is improved, and the transmission efficiency is improved; and finally, sending the Base64 encoded data, namely the third transmission data to the anti-counterfeiting data verification platform.
Step 4, decoding the second transmission data to generate corresponding second data based on the Base64 encoding-decoding rule; extracting third ciphertext data, a platform public key and second hash data from the second data; judging whether the extracted platform public key is consistent with a locally stored platform public key or not, and if not, updating the locally stored platform public key by using the extracted platform public key; performing hash calculation on the third ciphertext data to generate corresponding third hash data; if the second hash data is matched with the third hash data, the device private key is used for decrypting the third ciphertext data to generate corresponding first decrypted data; decrypting the first decrypted data by using the latest platform public key to generate corresponding second decrypted data; and the second decrypted data is used as the current plaintext data sent by the anti-counterfeiting data verification platform.
Here, when the NFC tag processing apparatus according to the embodiment of the present invention receives data from the anti-counterfeit data verification platform, Base64 decoding is performed on the received data first; extracting a double encryption result (third ciphertext data), a device public key and a hash value (second hash data) from the Base64 decoding data (namely the second data) according to a convention format (double encryption result + device public key + hash value); performing the same hash operation as the platform side based on the double encryption result (third ciphertext data) to obtain a corresponding calculation result (third hash data); the second and third hash data should be matched without error, if the second and third hash data are not matched, it indicates that the NFC tag processing apparatus may receive a piece of fraudulent data, and the NFC tag processing apparatus should immediately stop the subsequent data parsing operation; when the second hash data and the third hash data are matched, according to the inverse operation of the platform side double encryption result calculation process, the NFC tag processing device sequentially uses a device private key at the device side and a platform public key at the platform side to perform double decryption on the double encryption result (third ciphertext data), and the obtained double decryption result is a plaintext analyzed by the NFC tag processing device during data receiving.
Fig. 2 is a schematic structural diagram of an electronic device according to a second embodiment of the present invention. The electronic device may be a terminal device or a server for implementing the method according to the embodiment of the present invention, or may be a terminal device or a server connected to the terminal device or the server for implementing the method according to the embodiment of the present invention. As shown in fig. 2, the electronic device may include: a processor 301 (e.g., a CPU), a memory 302, a transceiver 303; the transceiver 303 is coupled to the processor 301, and the processor 301 controls the transceiving operation of the transceiver 303. Various instructions may be stored in memory 302 for performing various processing functions and implementing the processing steps described in the foregoing method embodiments. Preferably, the electronic device according to an embodiment of the present invention further includes: a power supply 304, a system bus 305, and a communication port 306. The system bus 305 is used to implement communication connections between the elements. The communication port 306 is used for connection communication between the electronic device and other peripherals.
The system bus 305 mentioned in fig. 2 may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The system bus may be divided into an address bus, a data bus, a control bus, and the like. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus. The communication interface is used for realizing communication between the database access device and other equipment (such as a client, a read-write library and a read-only library). The Memory may include a Random Access Memory (RAM) and may also include a Non-Volatile Memory (Non-Volatile Memory), such as at least one disk Memory.
The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), a Graphics Processing Unit (GPU), and the like; but also Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components.
It should be noted that the embodiment of the present invention also provides a computer-readable storage medium, which stores instructions that, when executed on a computer, cause the computer to execute the method and the processing procedure provided in the above-mentioned embodiment.
The embodiment of the present invention further provides a chip for executing the instructions, where the chip is configured to execute the processing steps described in the foregoing method embodiment.
The embodiment of the invention provides a transmission method of NFC label data, electronic equipment and a computer readable storage medium, wherein a data encryption transmission channel is established between an NFC label processing device and an anti-counterfeiting data verification platform. By the invention, a data transmission link between the NFC label processing device and the anti-counterfeiting data verification platform is protected, and the data transmission risk of the anti-counterfeiting system is reduced.
Those of skill would further appreciate that the various illustrative components and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied in hardware, a software module executed by a processor, or a combination of the two. A software module may reside in Random Access Memory (RAM), memory, Read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
The above-mentioned embodiments are intended to illustrate the objects, technical solutions and advantages of the present invention in further detail, and it should be understood that the above-mentioned embodiments are merely exemplary embodiments of the present invention, and are not intended to limit the scope of the present invention, and any modifications, equivalent substitutions, improvements and the like made within the spirit and principle of the present invention should be included in the scope of the present invention.

Claims (6)

1. A method for transmitting NFC tag data, the method comprising:
reading anti-counterfeiting data of the NFC label by the NFC label processing device and recording the anti-counterfeiting data as first plaintext data;
when first plain data are to be sent to a remote anti-counterfeiting data verification platform, firstly, judging whether a new device public and private key pair needs to be generated or not, if so, generating and processing the public and private key pair locally in the device to obtain a new pair of matched device public key and device private key and storing the new pair of matched device public key and device private key; based on the device private key, the first plaintext data is encrypted to generate corresponding first encrypted data; based on a locally stored platform public key, the first encrypted data is encrypted to generate corresponding second encrypted data; performing hash calculation on the second encrypted data to generate corresponding first hash data; the second encrypted data, the device public key and the first hash data form first data; encoding the first data based on a Base64 encoding-decoding rule to generate corresponding first transmission data;
sending the first transmission data serving as security link data to the anti-counterfeiting data verification platform; receiving another safety link data sent back by the anti-counterfeiting data verification platform and recording the data as second transmission data;
decoding the second transmission data to generate corresponding second data based on the Base64 encoding-decoding rule; extracting third ciphertext data, a platform public key and second hash data from the second data; judging whether the extracted platform public key is consistent with a locally stored platform public key or not, and if not, updating the locally stored platform public key by using the extracted platform public key; performing hash calculation on the third ciphertext data to generate corresponding third hash data; if the second hash data is matched with the third hash data, the device private key is used for decrypting the third ciphertext data to generate corresponding first decrypted data; decrypting the first decrypted data by using the latest platform public key to generate corresponding second decrypted data; and the second decrypted data is used as the current plaintext data sent by the anti-counterfeiting data verification platform.
2. The method for transmitting the data of the NFC tag according to claim 1, wherein before the NFC tag processing apparatus reads the anti-fake data of the NFC tag as the first plaintext data, the method further includes:
the NFC label processing device carries out public and private key pair generation processing in the device in advance to obtain a pair of matched device public key and device private key, stores the device public key and the device private key, and sends the device public key to the anti-counterfeiting data verification platform for storage;
and the anti-counterfeiting data verification platform performs public and private key pair generation processing in the local platform in advance to obtain a pair of matched platform public key and platform private key, stores the platform public key and sends the platform public key to the NFC label processing device for storage.
3. The method for transmitting NFC tag data according to claim 2, further comprising:
when the anti-counterfeiting data verification platform receives the first transmission data sent by the NFC label processing device, decoding the first transmission data based on the Base64 encoding-decoding rule to generate corresponding third data; extracting fourth ciphertext data, a device public key and fourth hash data from the third data; judging whether the extracted device public key is consistent with the locally stored device public key or not, and if not, updating the locally stored device public key by using the extracted device public key; performing hash calculation on the fourth ciphertext data to generate corresponding fifth hash data; if the fourth hash data is matched with the fifth hash data, the platform private key is used for decrypting the fourth ciphertext data to generate corresponding third decrypted data; decrypting the third decrypted data by using the latest device public key to generate corresponding fourth decrypted data; and using the fourth decrypted data as current plaintext data sent by the NFC tag processing device.
4. The method for transmitting NFC tag data according to claim 2, further comprising:
when the anti-counterfeiting data verification platform prepares to send second plaintext data to the NFC label processing device, firstly, whether a new platform public and private key pair needs to be generated is judged, and if so, the generation processing of the public and private key pair is carried out locally on the platform to obtain a new pair of matched platform public key and platform private key and the new pair of matched platform public key and platform private key is stored; based on the platform private key, encrypting the second plaintext data to generate corresponding third encrypted data; on the basis of a locally stored device public key, the third encrypted data is encrypted to generate corresponding fourth encrypted data; performing hash calculation on the fourth encrypted data to generate corresponding sixth hash data; fourth data is formed by the fourth encrypted data, the platform public key and the sixth hash data; encoding the fourth data based on a Base64 encoding-decoding rule to generate corresponding third transmission data;
and sending the third transmission data as secure link data to the NFC tag processing device.
5. An electronic device, comprising: a memory, a processor, and a transceiver;
the processor is used for being coupled with the memory, reading and executing the instructions in the memory to realize the method steps of any one of claims 1-4;
the transceiver is coupled to the processor, and the processor controls the transceiver to transmit and receive messages.
6. A computer-readable storage medium having stored thereon computer instructions which, when executed by a computer, cause the computer to perform the method of any of claims 1-4.
CN202210227701.3A 2022-03-08 2022-03-08 NFC label data transmission method, device and storage medium Active CN114449505B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210227701.3A CN114449505B (en) 2022-03-08 2022-03-08 NFC label data transmission method, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210227701.3A CN114449505B (en) 2022-03-08 2022-03-08 NFC label data transmission method, device and storage medium

Publications (2)

Publication Number Publication Date
CN114449505A true CN114449505A (en) 2022-05-06
CN114449505B CN114449505B (en) 2022-07-29

Family

ID=81360066

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210227701.3A Active CN114449505B (en) 2022-03-08 2022-03-08 NFC label data transmission method, device and storage medium

Country Status (1)

Country Link
CN (1) CN114449505B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117221877A (en) * 2023-09-03 2023-12-12 广东高芯国际物联网科技有限公司 Safety verification and transmission method applied to frequency radio field data

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104270244A (en) * 2014-09-12 2015-01-07 广东安居宝数码科技股份有限公司 NFC encryption method and system
US20200015081A1 (en) * 2018-07-09 2020-01-09 Idemia France Method for secure transmission of cryptographic data
US20200119917A1 (en) * 2018-10-12 2020-04-16 Medici Ventures, Inc. Doubly-encrypted secret parts allowing for assembly of a secret using a subset of the doubly-encrypted secret parts
CN112637836A (en) * 2020-12-18 2021-04-09 珠海格力电器股份有限公司 Data processing method and device, electronic equipment and storage medium
CN114070614A (en) * 2021-11-15 2022-02-18 中国工商银行股份有限公司 Identity authentication method, device, equipment, storage medium and computer program product

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104270244A (en) * 2014-09-12 2015-01-07 广东安居宝数码科技股份有限公司 NFC encryption method and system
US20200015081A1 (en) * 2018-07-09 2020-01-09 Idemia France Method for secure transmission of cryptographic data
US20200119917A1 (en) * 2018-10-12 2020-04-16 Medici Ventures, Inc. Doubly-encrypted secret parts allowing for assembly of a secret using a subset of the doubly-encrypted secret parts
CN112637836A (en) * 2020-12-18 2021-04-09 珠海格力电器股份有限公司 Data processing method and device, electronic equipment and storage medium
CN114070614A (en) * 2021-11-15 2022-02-18 中国工商银行股份有限公司 Identity authentication method, device, equipment, storage medium and computer program product

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117221877A (en) * 2023-09-03 2023-12-12 广东高芯国际物联网科技有限公司 Safety verification and transmission method applied to frequency radio field data
CN117221877B (en) * 2023-09-03 2024-03-29 广东高芯国际物联网科技有限公司 Safety verification and transmission method applied to frequency radio field data

Also Published As

Publication number Publication date
CN114449505B (en) 2022-07-29

Similar Documents

Publication Publication Date Title
CN100566255C (en) Improve the method and system of safety of intelligent key equipment
CN112600665B (en) Hidden communication method, device and system based on block chain and encryption technology
EP2382536A2 (en) System and methods for encryption with authentication integrity
CN110611670A (en) API request encryption method and device
CN113806772A (en) Information encryption transmission method and device based on block chain
CN113259132B (en) Data transmission encryption and decryption method and device, computer equipment and storage medium
CN115580396B (en) Tight trace query system and method
CN113515766A (en) File transmission method and device
CN114449505B (en) NFC label data transmission method, device and storage medium
CN114244530A (en) Resource access method and device, electronic equipment and computer readable storage medium
CN114499875A (en) Service data processing method and device, computer equipment and storage medium
CN113344561A (en) Digital currency vehicle wallet payment secure encryption communication method and system
CN105187219A (en) Method for preventing tampering of identity information in real name authentication
CN113517982B (en) Password generation method, password execution method and terminal
CN114449504B (en) NFC label verification method, electronic device and storage medium
CN114978769B (en) Unidirectional leading-in device, unidirectional leading-in method, unidirectional leading-in medium and unidirectional leading-in equipment
CN110708273B (en) Data encryption and decryption method and data encryption and decryption system
CN116707778A (en) Data hybrid encryption transmission method and device and electronic equipment
CN115225365B (en) Data security transmission method, platform and system based on cryptographic algorithm
CN112291189B (en) Method, device, equipment and storage medium for sending and checking ciphertext
CN112699366B (en) Cross-platform login-free secure communication method and device and electronic equipment
CN112825093B (en) Security baseline checking method, host, server, electronic device and storage medium
CN114531246A (en) Data downloading method and device
CN114065302A (en) Data processing method, device, equipment, medium and block chain network
CN114500072B (en) Message data transmission method and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant