On-off record method, chip, electronic tag, server, system, and commodity
By generating and encrypting the on/off status ciphertext in the RFID tag, and using dynamic URL and tag UID encryption, the problem of the on/off status of RFID chips being easily read and modified in existing technologies is solved, achieving higher anti-counterfeiting effect and security.
Patent Information
- Application Number
- CN202510565389.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-30
- Publication Date
- 2026-11-06
AI Technical Summary
The on/off status of existing RFID chips can be easily read and modified, causing the anti-counterfeiting function to fail and making it impossible to effectively prevent chip recycling or mass duplication.
By generating an initial random number on the RFID tag and detecting the on/off status, an encrypted on/off status ciphertext is generated and mapped to a dynamic URL. The tag UID is used as a key factor for encryption, and a combination of block cipher algorithm, XOR algorithm and shift algorithm is used to prevent the status from being directly read and modified.
It improves the anti-counterfeiting capabilities of RFID tags, reduces the possibility of chip content being counterfeited, and increases the difficulty of reuse and counterfeiting by decrypting and verifying the antenna's on/off status through the server.
Smart Images

Figure CN123050459A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of chip and anti-counterfeiting technology, specifically to a method for recording the on / off status of an RFID tag, an RFID chip, an electronic tag, a server, an electronic tag anti-counterfeiting system, and a product. Background Technology
[0002] NFC anti-counterfeiting tags use NFC technology to intelligently interact with products, verifying their authenticity and legitimacy. Consumers simply need to bring an NFC-enabled smartphone close to the tag to read detailed product information, such as manufacturer, production date, and place of origin. After this information is decrypted, the system automatically determines the product's authenticity. However, NFC anti-counterfeiting tags can still be reused by transferring the entire tag, thus losing their anti-counterfeiting function.
[0003] In response, patent document CN107679612A discloses an anti-tamper dual-frequency RFID tag and its manufacturing method, including a connected UHF tag antenna and an NFC coil antenna. When the dual-frequency RFID tag structure is attached to the goods, if it is peeled off, the connection area will immediately disconnect, thus achieving the anti-tamper function. The chip on the dual-frequency RFID tag structure has a globally unique identification code. When the goods are opened, the tag cannot be copied. The information inside the dual-frequency RFID tag structure can be read through the NFC function of a mobile phone, and a prompt message will be received indicating whether it has been tampered with.
[0004] However, current RFID chips that can detect the on / off state of the antenna simply save the electrical connection status between the detection pins and record it directly into the chip. This makes it easy to read directly and change back to the normal state, thus enabling the recycling or mass replication of used chips (or tags). Summary of the Invention
[0005] In view of the deficiencies in the prior art, the purpose of this invention is to provide a connection / disconnection recording method, chip, electronic tag, server, system, and product.
[0006] A method for recording the on / off status of an RFID tag according to the present invention includes:
[0007] Step 1: After the RFID tag is powered on, a random number generator is used to generate the current random number;
[0008] Step 2: Detect the on / off status of the status recording antenna. Using the initial random number generated during RFID tag initialization by a true random number generator and the detected on / off status of the status recording antenna, generate encrypted on / off status ciphertext and store it in the on / off storage area of the RFID tag.
[0009] Step 3: Based on the current random number, the ciphertext of the on / off state in the on / off storage area is encrypted and mapped to the mapping area of the URL to obtain the dynamic URL.
[0010] Furthermore, it also includes:
[0011] Step 4: Obtain access requests for the dynamic URL from the reader or external device, decrypt the dynamic URL, and obtain the on / off status of the status recording antenna and the initial random number;
[0012] And / or, step 3 further includes: feeding back the dynamic URL to the reader or external device.
[0013] Furthermore, step 4 also includes: comparing the decrypted initial random number with the stored initial random number corresponding to the true random number generator; if the two are the same, the on / off state obtained by decryption is considered reliable; if the two are different, the on / off state obtained by decryption is considered unreliable.
[0014] And / or, step 4 further includes: comparing the decrypted on / off state with the stored changes in the historical on / off state of the corresponding RFID tag; when there is no historical on / off state and the decrypted on / off state is on, determining that the RFID tag is in an initialization state; when the on / off state is the same as the historical on / off state, determining that the RFID tag is in a hold state; when the on / off state is different from the historical on / off state, determining that the RFID tag is in a reuse state.
[0015] And / or, in step 4, decrypting the dynamic URL includes: obtaining the current random number from the mapping area of the dynamic URL as a key factor to parse the dynamic URL, obtaining the tag UID, using the tag UID as a key factor to parse the on / off state ciphertext, and obtaining the initial random number and on / off state.
[0016] Furthermore, prior to step 1, the following is also included:
[0017] Step 0: Before the RFID tag leaves the factory, the mapping area and the disconnection state ciphertext are set by custom instructions, and the initial random number and the on / off state are encrypted and displayed in the mapping area of the URL to obtain the dynamic URL.
[0018] Furthermore, the method of encrypting the initial random number and the on / off state includes: encrypting the initial random number and the on / off state using at least one of the block cipher algorithm, XOR algorithm, and shift algorithm.
[0019] Furthermore, in step 2, the method for generating the encrypted on / off status ciphertext includes: using the tag UID as a key factor to encrypt the initial random number and the detected on / off status to obtain the on / off status ciphertext;
[0020] And / or, in step 3, the encryption operation includes: using the current random number as a key factor to encrypt the on / off state ciphertext, and mapping the encryption result to the mapping area of the URL to obtain a dynamic URL.
[0021] An RFID chip according to the present invention includes: an analog radio frequency front-end, a storage unit, and a digital logic unit;
[0022] The digital logic unit includes:
[0023] True random number generator: generates an initial random number during RFID chip initialization, and the initial random number is encrypted and stored in the on / off storage area of the storage unit;
[0024] State transition module: detects the on / off status of the state recording antenna, and generates encrypted on / off status ciphertext by using the initial random number generated by the true random number generator during RFID tag initialization and the detected on / off status of the state recording antenna, and stores it in the on / off storage area of the storage unit.
[0025] Dynamic URL module: Based on the current random number, the ciphertext of the on / off status in the on / off storage area is encrypted and mapped to the URL mapping area to obtain a dynamic URL;
[0026] The radio frequency analog front end includes:
[0027] Random number generator: Generates a random number after the RFID tag is powered on.
[0028] Furthermore, in the state transition module, the method for generating the encrypted on / off state ciphertext includes: using the tag UID as a key factor to encrypt the initial random number and the detected on / off state to obtain the on / off state ciphertext;
[0029] And / or, in the dynamic URL module, the encryption operation includes: using the current random number as a key factor to encrypt the on / off state ciphertext, and mapping the encryption result to the mapping area of the URL to obtain the dynamic URL.
[0030] Furthermore, before the RFID tag leaves the factory, the dynamic URL module sets the correspondence between the mapping area and the disconnection state ciphertext through customized instructions, and displays the initial random number and the on / off state encrypted in the URL mapping area to obtain the dynamic URL.
[0031] Furthermore, the dynamic URL module encrypts the initial random number and the on / off status by encrypting the initial random number and the on / off status using at least one of block cipher algorithms, XOR algorithms, and shift algorithms.
[0032] An electronic tag according to the present invention includes the aforementioned RFID chip.
[0033] Furthermore, the RFID electronic tag also includes: a read / write antenna and a status recording antenna;
[0034] The read / write antenna is electrically connected to the radio frequency analog front end and is used to obtain energy from the reader and transmit signals with the tag.
[0035] The status recording antenna is electrically connected to the digital logic unit.
[0036] According to a server provided by the present invention, the server obtains the current random number from the dynamic URL mapping area and parses the dynamic URL according to the received access request for the dynamic URL to obtain the on / off state ciphertext, and decrypts the on / off state ciphertext to obtain the on / off state of the state recording antenna and the initial random number.
[0037] Furthermore, the access request originates from a reader or external device;
[0038] And / or, the server further includes: comparing the decrypted initial random number with the initial random number of the corresponding true random number generator stored in the server; if the two are the same, the decrypted on / off state is considered reliable; if the two are different, the decrypted on / off state is considered unreliable.
[0039] And / or, the server further includes: comparing the decrypted on / off state with the historical on / off state changes of the corresponding RFID tag stored in the server; when there is no historical on / off state and the decrypted on / off state is on, determining that the RFID tag is in an initialization state; when the on / off state is the same as the historical on / off state, determining that the RFID tag is in a hold state; when the on / off state is different from the historical on / off state, determining that the RFID tag is in a reuse state.
[0040] And / or, the server obtains the current random number from the mapping area of the dynamic URL as a key factor to parse the dynamic URL, obtains the tag UID, and uses the tag UID as a key factor to parse the on / off state ciphertext to obtain the initial random number and the on / off state.
[0041] An electronic tag anti-counterfeiting system according to the present invention includes: the electronic tag, a server, and / or a reader or external device;
[0042] The reader or external device powers on the electronic tag and obtains and accesses the dynamic URL;
[0043] The server decrypts the dynamic URL based on the received access request to the dynamic URL, and obtains the on / off status of the status recording antenna and the initial random number.
[0044] A product provided according to the present invention includes the aforementioned electronic tag.
[0045] Compared with the prior art, the present invention has the following beneficial effects:
[0046] This invention generates encrypted on / off status ciphertext using an initial random number and the detected on / off status, and stores it in a designated location in the RFID chip's memory, thereby preventing the on / off status from being directly read and modified.
[0047] This invention encrypts the current random number and on / off status ciphertext and maps it to a URL to obtain a dynamic URL, thereby avoiding the problem of easily spoofed web pages when using a fixed URL and reducing the possibility of chip content being directly obtained and spoofed.
[0048] In addition, the server can decrypt dynamic URLs to obtain the on / off status of the electronic tag's status recording antenna and the initial random number, thus providing intuitive feedback on the on / off status of the status recording antenna to the user.
[0049] Furthermore, the server can compare the decrypted on / off status and initial random number with the historical on / off status and initial random number stored on the server, thereby further determining the authenticity of the decryption result and further increasing the difficulty of reusing and counterfeiting electronic tags. Attached Figure Description
[0050] Other features, objects, and advantages of the present invention will become more apparent from the following detailed description of non-limiting embodiments with reference to the accompanying drawings:
[0051] Figure 1 This is a flowchart illustrating the on / off recording method of the present invention.
[0052] Figure 2 This is a schematic diagram of the RFID chip of the present invention. Detailed Implementation
[0053] The present invention will now be described in detail with reference to specific embodiments. These embodiments will help those skilled in the art to further understand the present invention, but do not limit the invention in any way. It should be noted that those skilled in the art can make several changes and improvements without departing from the concept of the present invention. These all fall within the protection scope of the present invention.
[0054] Example 1
[0055] like Figure 1As shown, the present invention provides a method for recording the on / off status of an RFID tag, comprising:
[0056] Step 0 (RFID Tag / Chip Initialization): Before the RFID tag / chip leaves the factory, the position and length of the dynamic URL mapping area, as well as the correspondence between the mapping area and the ciphertext of the on / off status, are set through customized instructions. The initial random number and the on / off status are encrypted and displayed in the URL mapping area, thus obtaining the initial dynamic URL. The initial random number of the RFID tag / chip is then stored (in a location outside the RFID tag) for subsequent decryption. After this step, the instruction becomes invalid, meaning it can only be mapped once.
[0057] Step 1: After the RFID tag is powered on, a random number generator is used to generate a current random number. The initial random number and the current random number in this application can be 16-bit random numbers, and this application does not impose any restrictions on this.
[0058] Step 2: Detect the on / off status of the status recording antenna. Using an initial random number generated during RFID tag initialization and the detected on / off status of the status recording antenna, generate encrypted on / off status ciphertext and store it in the RFID tag's on / off storage area. The method for generating the encrypted on / off status ciphertext includes: using the tag UID as a key factor to encrypt the initial random number and the detected on / off status. The encryption method for the initial random number and on / off status includes: encrypting the initial random number and the on / off status using at least one of block cipher algorithms, XOR algorithms, and shift algorithms. A block cipher algorithm divides the plaintext data sequence into blocks of fixed length, then encrypts each block using the same algorithm under the same key control, thus transforming each plaintext block into a fixed-length ciphertext block. The block cipher algorithm can be SM7 or the Advanced Encryption Standard (AES) algorithm.
[0059] The XOR shift method for the initial random number and on / off status includes: For ease of data retrieval, the initial random number and on / off status are written in ASCII code. The ASCII code is converted to HEX code, and the HEX code is cyclically shifted right / left and then XORed bitwise. The decryption process is as follows: The HEX code is XORed bitwise and cyclically shifted left / right, then converted back to ASCII code. The bitwise XOR calculation includes: the last three bits of the data segment are key selection bits and do not participate in the XOR. The XOR value is determined by the last three bits. The key composition is: a fixed value + truncated chip UID. Cyclic shift (left shift): The last three bits of the Hex value are key selection bits and do not participate in the shift. The number of bits shifted is determined by the last three bits. For example, in a 16-bit counter value 1111_1010_0101_0011, the last three bits are 011, so the remaining bits are cyclically shifted left by 4 bits, resulting in 1010_0101_0111_1011. For example, the 16-bit counter value is 1111_1010_0101_0010. The last three bits are 010. Therefore, the remaining bits are shifted 3 bits to the left. The value after shifting is 1101_0010_1011_1010.
[0060] Since there is a one-to-one correspondence between the tag UID and the RFID tag, and there will be no duplicates, this embodiment uses the tag UID of each RFID tag as the key factor for encryption. If the same tag UID is used by different RFID tags, it is easy to detect different on / off states under the same tag UID, thereby detecting that the RFID tag has been copied or reused.
[0061] Step 3: The current random number and the on / off status ciphertext in the on / off storage area are encrypted and mapped to the mapping area of the original URL to obtain the dynamic URL, which is then fed back to the reader. The encryption operation includes: using the current random number as a key factor to encrypt the on / off status ciphertext, and mapping the encryption result to the mapping area of the URL to obtain the dynamic URL. The obtained dynamic URL can be fed back to the reader or an external device. The reader is a dedicated reading and writing device for this RFID tag, capable of reading and writing to the RFID tag's storage unit; while the external device can be the user's own smart device, such as a mobile phone or tablet, capable of reading from the RFID tag's storage unit.
[0062] Furthermore, in this embodiment of the invention, the instruction for obtaining the on / off status of the detection state recording antenna can be implemented using general instructions. The read block instruction is one of the general instructions specified in the 15693 protocol. Obtaining a URL in common scenarios such as mobile phones is also achieved by reading storage area information using a read block. General instructions have fixed codes; for example, the read instruction is cmd20. As long as the cmd code is 20 and meets the protocol requirements for length, transmission time, and other information, it is a general read instruction. This embodiment of the invention can include a logical judgment in the read instruction. Based on the storage address information in the instruction, when the address is a non-on / off storage area, it is a normal read instruction; when the address is an on / off storage area, the read value is the on / off status ciphertext of the on / off storage area, thereby triggering the mapping function, which can send information such as a random number encrypted value of the on / off storage area to the reader or external device. In short, normally obtaining values from non-user storage areas can only be achieved through customized instructions, but this embodiment of the invention can achieve the function of mapping values from non-user storage areas by modifying the storage address information of the general read instruction, and conforms to the 15693 protocol specification.
[0063] At this point, the on / off recording process of the RFID tag has been completed. An encrypted on / off status ciphertext is generated by using an initial random number and the detected on / off status, and stored in a designated location in the RFID chip's memory, thereby preventing the on / off status from being directly read and modified.
[0064] Based on this, by accessing the dynamic URL, the judgment result of the corresponding RFID tag can be obtained:
[0065] Step 4: Based on the access request for the dynamic URL from the reader or external device, decrypt the dynamic URL to obtain the on / off status of the antenna and the initial random number. The decrypted initial random number is compared with the stored initial random number from the corresponding true random number generator. If they are the same, the decrypted on / off status is considered reliable; if they are different, the decrypted on / off status is considered unreliable. The decrypted on / off status is compared with the stored changes in the historical on / off status of the corresponding RFID tag. If there is no historical on / off status and the decrypted on / off status is on, the RFID tag is determined to be in the initialization state. If the on / off status is the same as the historical on / off status (i.e., the antenna remains on or off), the RFID tag is determined to be in the holding state. If the on / off status differs from the historical on / off status (i.e., the antenna changes from on to off, or from off to on), the RFID tag is determined to be in the multiplexing state. The reuse status indicates that the RFID tag has been damaged and reused. Before opening the package, the user scans the RFID tag. Under normal circumstances, the historical on / off status of the RFID tag should always be on. However, if the status is "damaged and reused", the historical on / off status of the RFID tag will show a change from a historical on state to the current off state (damaged and not repaired) or from a historical off state to the current on state (damaged and repaired). Both of these situations indicate that the RFID tag has been reused.
[0066] Decrypting a dynamic URL involves: obtaining the current random number from the dynamic URL's mapping area as a key factor to parse the dynamic URL, obtaining the tag UID, and using the tag UID as a key factor to parse the on / off state ciphertext, obtaining the initial random number and the on / off state.
[0067] This embodiment provides a dynamic URL generation process:
[0068] When the RFID chip's random number generator receives a URL reading command from the reader, it generates at least one current random number. Following at least one preset algorithm, this current random number is processed at least once with the on / off status ciphertext, and then mapped to the mapping area of the original URL to obtain a dynamic URL. The original URL is stored in the RFID chip's storage unit.
[0069] The calculation method can be an existing algorithm or a custom algorithm, and this embodiment does not limit it.
[0070] Specifically, the digital logic unit of the RFID chip can perform a single operation on a current random number and the ciphertext of the on / off status according to a preset algorithm. Alternatively, the digital logic unit can perform multiple operations on the same current random number and the ciphertext of the on / off status according to a preset algorithm. Furthermore, the digital logic unit can perform multiple operations on multiple current random numbers and the ciphertext of the on / off status according to multiple preset algorithms. This results in a more random dynamic URL, effectively improving the security and reliability of the RFID tag transmission URL generated by the RFID chip.
[0071] Based on the above technical solution, optionally, the preset algorithm is a symmetric encryption algorithm, which may include block cipher algorithms, XOR algorithms, or shift algorithms.
[0072] Specifically, a block cipher algorithm divides a plaintext data sequence into blocks of fixed length, then encrypts each block using the same algorithm under the control of the same key, thereby transforming each plaintext block into a fixed-length ciphertext block. The block cipher algorithm can be the SM7 algorithm or the Advanced Encryption Standard (AES) algorithm. Other algorithms or custom algorithms can also be used; this embodiment does not limit this. At least one preset algorithm can be at least one of a block cipher algorithm, an XOR algorithm, and a shift algorithm.
[0073] Based on the above technical solution, in one embodiment, at least one preset algorithm includes a preset algorithm; at least one current random number includes at least two current random numbers.
[0074] This embodiment provides another dynamic URL generation process:
[0075] Upon receiving a URL read instruction from the reader, at least one current random number is generated. According to a first order, at least two current random numbers are sequentially processed with the on / off status ciphertext using a preset algorithm, mapping them to the original URL to obtain a dynamic URL; wherein the first order is the arrangement of the at least two current random numbers.
[0076] Specifically, the first order can be the order in which the digital logic unit of the RFID chip generates at least two current random numbers, or it can be the reverse order in which the digital logic unit of the RFID chip generates the current random numbers. This embodiment does not limit the order.
[0077] For example, if at least two current random numbers include a1, a2, and a3, and are arranged in the order a1, a2, a3, then the digital logic unit of the RFID chip first calculates a1 with the on / off state ciphertext using a preset algorithm to obtain the first updated URL. Then, it calculates a2 with the first updated URL using the same preset algorithm to obtain the second updated URL. Finally, it calculates a3 with the second updated URL using the same preset algorithm to obtain the dynamic URL. This further enhances the randomness of the dynamic URL, thereby improving the security and reliability of the RFID tag's transmission of dynamic URLs. Furthermore, the current random numbers generated each time a dynamic URL is transmitted may be different, ensuring that each transmitted dynamic URL is unique and difficult to crack, thus enabling more secure transmission of dynamic URLs.
[0078] In another implementation, at least one preset algorithm includes at least two preset algorithms; at least one current random number includes one current random number.
[0079] This embodiment provides another dynamic URL generation process:
[0080] Upon receiving a URL read instruction from the reader, at least one current random number is generated. According to a second order, the current random number and the ciphertext of the on / off status are processed sequentially using at least two preset algorithms to map to the original URL, resulting in a dynamic URL; wherein the second order is the arrangement of the at least two preset algorithms.
[0081] Specifically, at least two preset algorithms can be stored in the RFID chip in various orders. When generating a dynamic URL, the digital logic unit of the RFID chip randomly selects one of the preset algorithm orders as the second order. Alternatively, the digital logic unit of the RFID chip randomly sorts at least two preset algorithms to obtain a second order. In this way, the digital logic unit of the RFID chip, according to the second order, sequentially performs calculations on a current random number and the on / off state ciphertext according to at least two preset algorithms, resulting in a more random dynamic URL, which helps to further improve the security of dynamic URL transmission.
[0082] For example, at least two algorithms, including b1, b2, and b3, are stored in the RFID chip in several sequences: b1, b2, b3; b1, b3, b2; b2, b1, b3; b2, b3, b1; b3, b1, b2; b3, b2, b1. When the digital logic unit of the RFID chip generates a dynamic URL, one of these sequences is randomly selected as the second sequence. For example, if b3, b2, b1 is selected as the second sequence, the digital logic unit of the RFID chip first performs an operation on the current random number and the on / off state ciphertext using algorithm b3 to obtain the URL after the first update; then it performs an operation on the current random number and the URL after the first update using algorithm b2 to obtain the URL after the second update; finally, it performs an operation on the current random number and the URL after the second update using algorithm b1 to obtain the dynamic URL.
[0083] In another embodiment, at least one preset algorithm includes at least two preset algorithms; at least one current random number includes at least two current random numbers.
[0084] This embodiment provides another dynamic URL generation process:
[0085] Upon receiving a URL read instruction from the reader, at least one current random number is generated. Based on a first order and a second order, at least two current random numbers are sequentially processed with the on / off status ciphertext using a preset algorithm, mapping them to the original URL to obtain a dynamic URL; wherein the first order is the arrangement of at least two current random numbers; and the second order is the arrangement of at least two preset algorithms.
[0086] For example, if at least two current random numbers include a1, a2, and a3, and are arranged in the order a3, a2, a1, and at least two algorithms include b1, b2, and b3, and the second order is b2, b1, b3, then the digital logic unit of the RFID chip first performs a calculation on the current random number a1 and the on / off state ciphertext according to the preset algorithm b2 to obtain the URL after the first update; then it performs a calculation on the current random number a2 and the URL after the first update according to the preset algorithm b1 to obtain the URL after the second update; finally, it performs a calculation on the current random number a3 and the URL after the second update according to the preset algorithm b3 to obtain the dynamic URL.
[0087] Thus, the current number of random numbers is large, and there are many types of preset algorithms. The current random numbers are generated randomly, and the second order of the preset algorithms is also random, which further enhances the randomness of the generated dynamic URL, thereby effectively improving the security and reliability of the RFID tag transmission URL formed by the RFID chip.
[0088] Based on the above technical solutions, optionally, after generating at least one current random number, the dynamic URL generation method further includes:
[0089] Each time a current random number is generated, the read / write count stored in the RFID chip is incremented by one, so that the reader associated with the RFID tag formed by the RFID chip can obtain the updated read / write count.
[0090] Specifically, after the digital logic unit of the RFID chip generates at least one current random number, it can store it in the form of a read count. That is, each time a current random number is generated (at least one current random number can be generated at a time), the digital logic unit of the RFID chip increments the read count stored in the RFID chip, thereby recording the number of reads by the reader. The reader paired with the RFID tag formed by the RFID chip can obtain the updated read count, which facilitates the reader's verification of the read count. It can also promptly detect when other readers have read the tag, thus improving the security performance of the RFID tag.
[0091] Based on the above technical solutions, in another embodiment, optionally, a dynamic URL is generated based on at least one current random number and the ciphertext of the on / off state, including:
[0092] Perform at least one operation on the special value corresponding to the RFID chip and at least one current random number, and combine the result of the operation with the on / off status ciphertext to form a dynamic URL.
[0093] The special value is stored in the RFID chip, and each RFID chip corresponds to a special value.
[0094] Specifically, the special value corresponding to the RFID chip is subjected to at least one operation with at least one current random number. For example, the special value is added to at least one current random number at least once. The sum is then combined with the on / off status ciphertext to form a new dynamic URL. Subsequently, the RFID tag formed by the RFID chip can send the special value, the current random number, and the dynamic URL to the reader, allowing the server to decipher the on / off status ciphertext. When performing multiple operations, the operation method can be the same or different each time; this embodiment does not impose any limitations.
[0095] Optionally, the special value corresponding to the RFID chip is processed at least once with at least one current random number, and the result of the processing is combined with the ciphertext of the on / off status to form a dynamic URL, including:
[0096] Perform at least one operation on the special value corresponding to the RFID chip and at least one current random number. Combine the result of the operation, at least one of the following: the special value, at least one current random number, and the number of times the current random number was generated, with the on / off status ciphertext to form a dynamic URL.
[0097] Specifically, when forming a dynamic URL, the dynamic URL can be composed of the calculated result, a special value, at least one current random number, and the ciphertext of the on / off status. This allows the reader to decipher the ciphertext of the on / off status based on the calculated result, the special value, at least one current random number, and the dynamic URL. Alternatively, the dynamic URL can be composed of the calculated result, a special value, at least one current random number, the number of times the current random number is generated, and the ciphertext of the on / off status. This allows the reader to decipher the ciphertext of the on / off status based on the calculated result, the special value, at least one current random number, and the dynamic URL, and to perform anti-counterfeiting verification based on the number of times the current random number is generated. The number of times the current random number is generated is the same as the number of read / write operations mentioned above.
[0098] Optionally, the current random number includes a first random number code and a second random number code;
[0099] Perform at least one operation on the specific value corresponding to the RFID chip and at least one current random number, and combine the result of the operation with the ciphertext of the on / off status to form a dynamic URL, including:
[0100] Perform at least one operation on a special value and at least one first random number code, and combine the result of the operation, at least one of the special value, at least one current random number, and the number of times the current random number is generated, with the on / off state ciphertext to form a dynamic URL.
[0101] Specifically, the first and second random number codes have the same number of bits, for example. By setting the current random number to include both the first and second random number codes, and only the first random number code participates in the calculation while the second random number code does not, the security of dynamic URLs can be improved.
[0102] For example, if the server's URL is "http: / / www.aaaaaa.com.cn / ", the first random number code is "5678", and the second random number code is "E0AE", then the first random number code "5678" is operated on with a special value to obtain the result. The on / off status ciphertext, at least one current random number, and the result are then combined to form a dynamic URL. For example, if the result is 8213AD91, the dynamic URL could be "http: / / www.aaaaaa.com.cn / 5678E0AE8213AD91".
[0103] The dynamic URL can also include the RFID chip's identification code and the number of times the current random number was generated (the read / write count mentioned above). For example, if the RFID chip's identification code is "E0AE202403301518" and the number of times the current random number was generated (read / write count) is "1234", then the generated dynamic URL could be "http: / / www.aaaaaa.com.cn / E0AE20240330151812345678E0AE8213AD91".
[0104] Example 2
[0105] like Figure 2 As shown, this invention provides an RFID chip, including: an analog radio frequency front-end, a storage unit, and a digital logic unit. Before the RFID tag / chip leaves the factory, the position and length of the mapping area of the dynamic URL, as well as the correspondence between the mapping area and the ciphertext of the on / off state, are set by customized instructions. An initial random number and the on / off state are encrypted and displayed in the URL mapping area to obtain the initial dynamic URL. The initial random number of the RFID tag / chip is recorded in a server for subsequent decryption. Afterward, this instruction becomes invalid, meaning it can only be mapped once. The initial random number and the current random number in this application can be 16-bit random numbers; this application does not impose any limitation on this.
[0106] The RF analog front-end is used for communication with the reader or external devices. The RF analog front-end includes a rectifier circuit, voltage regulator circuit, clock circuit, modulation circuit, demodulation circuit, reset circuit, tuning capacitor, and random number generator. The random number generator generates a current random number after the RFID tag is powered on. The digital logic unit includes a true random number generator, a state transition module, and a dynamic URL module. It also includes an oscillation circuit, filter circuit, amplifier circuit, modulation circuit, demodulation circuit, analog-to-digital converter, and digital-to-analog converter. The true random number generator generates an initial random number during RFID chip initialization. This initial random number is recorded in the server and then encrypted and stored in the on / off storage area of the storage unit. The reader is a dedicated reading and writing device for this RFID tag, capable of reading and writing to the RFID tag's storage unit; while the external device can be the user's own smart device, such as a mobile phone or tablet, capable of reading from the RFID tag's storage unit.
[0107] The state transition module detects the on / off status of the state recording antenna. Using an initial random number generated during RFID tag initialization by a true random number generator and the detected on / off status of the state recording antenna, it generates encrypted on / off status ciphertext and stores it in the on / off storage area of the storage unit. The method for generating the encrypted on / off status ciphertext includes: using the tag UID as a key factor to encrypt the initial random number and the detected on / off status. The method for encrypting the initial random number and the on / off status includes: encrypting the initial random number and the on / off status using at least one of a block cipher algorithm, an XOR algorithm, and a shift algorithm. A block cipher algorithm divides the plaintext data sequence into blocks of fixed length, and then encrypts each block using the same algorithm under the same key control, thereby transforming each plaintext block into a fixed-length ciphertext block. The block cipher algorithm can be either the SM7 algorithm or the Advanced Encryption Standard (AES) algorithm.
[0108] The XOR shift method for the initial random number and on / off status includes: For ease of data retrieval, the initial random number and on / off status are written in ASCII code. The ASCII code is converted to HEX code, and the HEX code is cyclically shifted right / left and then XORed bitwise. The decryption process is as follows: The HEX code is XORed bitwise and cyclically shifted left / right, then converted back to ASCII code. The bitwise XOR calculation includes: the last three bits of the data segment are key selection bits and do not participate in the XOR. The XOR value is determined by the last three bits. The key composition is: a fixed value + truncated chip UID. Cyclic shift (left shift): The last three bits of the Hex value are key selection bits and do not participate in the shift. The number of bits shifted is determined by the last three bits. For example, in a 16-bit counter value 1111_1010_0101_0011, the last three bits are 011, so the remaining bits are cyclically shifted left by 4 bits, resulting in 1010_0101_0111_1011. For example, the 16-bit counter value is 1111_1010_0101_0010. The last three bits are 010. Therefore, the remaining bits are shifted 3 bits to the left. The value after shifting is 1101_0010_1011_1010.
[0109] Since there is a one-to-one correspondence between the tag UID and the RFID tag, and there will be no duplicates, this embodiment uses the tag UID of each RFID tag as the key factor for encryption. If the same tag UID is used by different RFID tags, it is easy to detect different on / off states under the same tag UID, thereby detecting that the RFID tag has been copied or reused.
[0110] The dynamic URL module encrypts the current random number and the on / off status ciphertext in the on / off storage area, then maps them to the URL mapping area to obtain the dynamic URL. The digital logic unit feeds back the dynamic URL to the reader or external device through the radio frequency analog front end.
[0111] At this point, the RFID chip has completed the on / off recording process for the status recording antenna. An encrypted on / off status ciphertext is generated using an initial random number and the detected on / off status, and stored in a designated location in the RFID chip's memory, thereby preventing the on / off status from being directly read and modified.
[0112] Based on this, the reader or external device can obtain the corresponding judgment result from the server by accessing this dynamic URL:
[0113] The server decrypts the dynamic URL upon receiving an access request, obtaining the on / off status of the antenna and an initial random number. The decrypted initial random number is compared with the initial random number from the corresponding true random number generator stored on the server. If they match, the decrypted on / off status is considered reliable; otherwise, it is considered unreliable. The decrypted on / off status is then compared with the historical on / off status changes of the corresponding RFID tag stored on the server. If there are no historical on / off statuses and the decrypted on / off status is "on," the RFID tag is determined to be in an initial state. If the on / off status is the same as a historical on / off status (i.e., the antenna remains on or off), the RFID tag is determined to be in a held state. If the on / off status differs from a historical on / off status (i.e., the antenna changes from on to off, or vice versa), the RFID tag is determined to be in a multiplexed state. Decrypting a dynamic URL involves: obtaining the current random number from the dynamic URL's mapping area as a key factor to parse the dynamic URL, obtaining the tag UID, and using the tag UID as a key factor to parse the on / off state ciphertext, obtaining the initial random number and the on / off state.
[0114] This embodiment provides a dynamic URL generation process:
[0115] When the RFID chip's random number generator receives a URL reading command from the reader, it generates at least one current random number. Following at least one preset algorithm, this current random number is processed at least once with the on / off status ciphertext, and then mapped to the mapping area of the original URL to obtain a dynamic URL. The original URL is stored in the RFID chip's storage unit.
[0116] The calculation method can be an existing algorithm or a custom algorithm, and this embodiment does not limit it.
[0117] Specifically, the digital logic unit of the RFID chip can perform a single operation on a current random number and the ciphertext of the on / off status according to a preset algorithm. Alternatively, the digital logic unit can perform multiple operations on the same current random number and the ciphertext of the on / off status according to a preset algorithm. Furthermore, the digital logic unit can perform multiple operations on multiple current random numbers and the ciphertext of the on / off status according to multiple preset algorithms. This results in a more random dynamic URL, effectively improving the security and reliability of the RFID tag transmission URL generated by the RFID chip.
[0118] Based on the above technical solution, optionally, the preset algorithm is a symmetric encryption algorithm, which may include block cipher algorithms, XOR algorithms, or shift algorithms.
[0119] Specifically, a block cipher algorithm divides a plaintext data sequence into blocks of fixed length, then encrypts each block using the same algorithm under the control of the same key, thereby transforming each plaintext block into a fixed-length ciphertext block. The block cipher algorithm can be the SM7 algorithm or the Advanced Encryption Standard (AES) algorithm. Other algorithms or custom algorithms can also be used; this embodiment does not limit this. At least one preset algorithm can be at least one of a block cipher algorithm, an XOR algorithm, and a shift algorithm.
[0120] Based on the above technical solution, in one embodiment, at least one preset algorithm includes a preset algorithm; at least one current random number includes at least two current random numbers.
[0121] This embodiment provides another dynamic URL generation process:
[0122] Upon receiving a URL read instruction from the reader, at least one current random number is generated. According to a first order, at least two current random numbers are sequentially processed with the on / off status ciphertext using a preset algorithm, mapping them to the original URL to obtain a dynamic URL; wherein the first order is the arrangement of the at least two current random numbers.
[0123] Specifically, the first order can be the order in which the digital logic unit of the RFID chip generates at least two current random numbers, or it can be the reverse order in which the digital logic unit of the RFID chip generates the current random numbers. This embodiment does not limit the order.
[0124] For example, if at least two current random numbers include a1, a2, and a3, and are arranged in the order a1, a2, a3, then the digital logic unit of the RFID chip first calculates a1 with the on / off state ciphertext using a preset algorithm to obtain the first updated URL. Then, it calculates a2 with the first updated URL using the same preset algorithm to obtain the second updated URL. Finally, it calculates a3 with the second updated URL using the same preset algorithm to obtain the dynamic URL. This further enhances the randomness of the dynamic URL, thereby improving the security and reliability of the RFID tag's transmission of dynamic URLs. Furthermore, the current random numbers generated each time a dynamic URL is transmitted may be different, ensuring that each transmitted dynamic URL is unique and difficult to crack, thus enabling more secure transmission of dynamic URLs.
[0125] In another implementation, at least one preset algorithm includes at least two preset algorithms; at least one current random number includes one current random number.
[0126] This embodiment provides another dynamic URL generation process:
[0127] Upon receiving a URL read instruction from the reader, at least one current random number is generated. According to a second order, the current random number and the ciphertext of the on / off status are processed sequentially using at least two preset algorithms to map to the original URL, resulting in a dynamic URL; wherein the second order is the arrangement of the at least two preset algorithms.
[0128] Specifically, at least two preset algorithms can be stored in the RFID chip in various orders. When generating a dynamic URL, the digital logic unit of the RFID chip randomly selects one of the preset algorithm orders as the second order. Alternatively, the digital logic unit of the RFID chip randomly sorts at least two preset algorithms to obtain a second order. In this way, the digital logic unit of the RFID chip, according to the second order, sequentially performs calculations on a current random number and the on / off state ciphertext according to at least two preset algorithms, resulting in a more random dynamic URL, which helps to further improve the security of dynamic URL transmission.
[0129] For example, at least two algorithms, including b1, b2, and b3, are stored in the RFID chip in several sequences: b1, b2, b3; b1, b3, b2; b2, b1, b3; b2, b3, b1; b3, b1, b2; b3, b2, b1. When the digital logic unit of the RFID chip generates a dynamic URL, one of these sequences is randomly selected as the second sequence. For example, if b3, b2, b1 is selected as the second sequence, the digital logic unit of the RFID chip first performs an operation on the current random number and the on / off state ciphertext using algorithm b3 to obtain the URL after the first update; then it performs an operation on the current random number and the URL after the first update using algorithm b2 to obtain the URL after the second update; finally, it performs an operation on the current random number and the URL after the second update using algorithm b1 to obtain the dynamic URL.
[0130] In another embodiment, at least one preset algorithm includes at least two preset algorithms; at least one current random number includes at least two current random numbers.
[0131] This embodiment provides another dynamic URL generation process:
[0132] Upon receiving a URL read instruction from the reader, at least one current random number is generated. Based on a first order and a second order, at least two current random numbers are sequentially processed with the on / off status ciphertext using a preset algorithm, mapping them to the original URL to obtain a dynamic URL; wherein the first order is the arrangement of at least two current random numbers; and the second order is the arrangement of at least two preset algorithms.
[0133] For example, if at least two current random numbers include a1, a2, and a3, and are arranged in the order a3, a2, a1, and at least two algorithms include b1, b2, and b3, and the second order is b2, b1, b3, then the digital logic unit of the RFID chip first performs a calculation on the current random number a1 and the on / off state ciphertext according to the preset algorithm b2 to obtain the URL after the first update; then it performs a calculation on the current random number a2 and the URL after the first update according to the preset algorithm b1 to obtain the URL after the second update; finally, it performs a calculation on the current random number a3 and the URL after the second update according to the preset algorithm b3 to obtain the dynamic URL.
[0134] Thus, the current number of random numbers is large, and there are many types of preset algorithms. The current random numbers are generated randomly, and the second order of the preset algorithms is also random, which further enhances the randomness of the generated dynamic URL, thereby effectively improving the security and reliability of the RFID tag transmission URL formed by the RFID chip.
[0135] Based on the above technical solutions, optionally, after generating at least one current random number, the dynamic URL generation method further includes:
[0136] Each time a current random number is generated, the read / write count stored in the RFID chip is incremented by one, so that the reader associated with the RFID tag formed by the RFID chip can obtain the updated read / write count.
[0137] Specifically, after the digital logic unit of the RFID chip generates at least one current random number, it can store it in the form of a read count. That is, each time a current random number is generated (at least one current random number can be generated at a time), the digital logic unit of the RFID chip increments the read count stored in the RFID chip, thereby recording the number of reads by the reader. The reader paired with the RFID tag formed by the RFID chip can obtain the updated read count, which facilitates the reader's verification of the read count. It can also promptly detect when other readers have read the tag, thus improving the security performance of the RFID tag.
[0138] Based on the above technical solutions, in another embodiment, optionally, a dynamic URL is generated based on at least one current random number and the ciphertext of the on / off state, including:
[0139] Perform at least one operation on the special value corresponding to the RFID chip and at least one current random number, and combine the result of the operation with the on / off status ciphertext to form a dynamic URL.
[0140] The special value is stored in the RFID chip, and each RFID chip corresponds to a special value.
[0141] Specifically, the special value corresponding to the RFID chip is subjected to at least one operation with at least one current random number. For example, the special value is added to at least one current random number at least once. The sum is then combined with the on / off status ciphertext to form a new dynamic URL. Subsequently, the RFID tag formed by the RFID chip can send the special value, the current random number, and the dynamic URL to the reader, allowing the server to decipher the on / off status ciphertext. When performing multiple operations, the operation method can be the same or different each time; this embodiment does not impose any limitations.
[0142] Optionally, the special value corresponding to the RFID chip is processed at least once with at least one current random number, and the result of the processing is combined with the ciphertext of the on / off status to form a dynamic URL, including:
[0143] Perform at least one operation on the special value corresponding to the RFID chip and at least one current random number. Combine the result of the operation, at least one of the following: the special value, at least one current random number, and the number of times the current random number was generated, with the on / off status ciphertext to form a dynamic URL.
[0144] Specifically, when forming a dynamic URL, the dynamic URL can be composed of the calculated result, a special value, at least one current random number, and the ciphertext of the on / off status. This allows the reader to decipher the ciphertext of the on / off status based on the calculated result, the special value, at least one current random number, and the dynamic URL. Alternatively, the dynamic URL can be composed of the calculated result, a special value, at least one current random number, the number of times the current random number is generated, and the ciphertext of the on / off status. This allows the reader to decipher the ciphertext of the on / off status based on the calculated result, the special value, at least one current random number, and the dynamic URL, and to perform anti-counterfeiting verification based on the number of times the current random number is generated. The number of times the current random number is generated is the same as the number of read / write operations mentioned above.
[0145] Optionally, the current random number includes a first random number code and a second random number code;
[0146] Perform at least one operation on the specific value corresponding to the RFID chip and at least one current random number, and combine the result of the operation with the ciphertext of the on / off status to form a dynamic URL, including:
[0147] Perform at least one operation on a special value and at least one first random number code, and combine the result of the operation, at least one of the special value, at least one current random number, and the number of times the current random number is generated, with the on / off state ciphertext to form a dynamic URL.
[0148] Specifically, the first and second random number codes have the same number of bits, for example. By setting the current random number to include both the first and second random number codes, and only the first random number code participates in the calculation while the second random number code does not, the security of dynamic URLs can be improved.
[0149] For example, if the server's URL is "http: / / www.aaaaaa.com.cn / ", the first random number code is "5678", and the second random number code is "E0AE", then the first random number code "5678" is operated on with a special value to obtain the result. The on / off status ciphertext, at least one current random number, and the result are then combined to form a dynamic URL. For example, if the result is 8213AD91, the dynamic URL could be "http: / / www.aaaaaa.com.cn / 5678E0AE8213AD91".
[0150] The dynamic URL can also include the RFID chip's identification code and the number of times the current random number was generated (the read / write count mentioned above). For example, if the RFID chip's identification code is "E0AE202403301518" and the number of times the current random number was generated (read / write count) is "1234", then the generated dynamic URL could be "http: / / www.aaaaaa.com.cn / E0AE20240330151812345678E0AE8213AD91".
[0151] Example 3
[0152] This embodiment is based on Embodiment 2, and uses an RFID chip in an electronic tag. The electronic tag includes an RFID chip, a read / write antenna, and a status recording antenna.
[0153] The read / write antenna is electrically connected to the RF analog front-end to obtain power from the reader and establish a communication connection. The status recording antenna is electrically connected to the digital logic unit, which detects the on / off state of the status recording antenna. When the reader approaches the read / write antenna, the antenna converts the received electromagnetic signal into an electrical signal and transmits it to the RF analog front-end, thereby powering up the RFID chip and obtaining the instruction to acquire a dynamic URL. The digital logic unit includes a random number generator, a state transition module, and a dynamic URL module. It executes the corresponding work according to the instruction and ultimately feeds back the dynamic URL to the reader. The reader is a dedicated read / write device for this RFID tag, capable of reading and writing to the RFID tag's storage unit.
[0154] In this embodiment, the electronic tag can be placed at the openable structure of the product. Specifically, the status recording antenna is connected to both sides of the openable structure, so that the status recording antenna is destroyed when the product is opened.
[0155] Example 4
[0156] This embodiment provides a server corresponding to the RFID tag on / off recording method of Embodiment 1.
[0157] The server, upon receiving an access request for a dynamic URL from a reader or external device, retrieves the current random number from the dynamic URL mapping area to parse the dynamic URL, obtaining the on / off status ciphertext. It then decrypts the on / off status ciphertext to obtain the on / off status of the recording antenna and the initial random number. Specifically, the server retrieves the current random number from the dynamic URL mapping area as a key factor to parse the dynamic URL, obtaining the tag UID. It then uses the tag UID as a key factor to parse the on / off status ciphertext, obtaining the initial random number and the on / off status. The reader is a dedicated reading and writing device for this RFID tag, capable of reading and writing to the RFID tag's storage unit; the external device can be the user's own smart device, such as a mobile phone or tablet, capable of reading from the RFID tag's storage unit.
[0158] The decrypted initial random number is compared with the initial random number from the corresponding true random number generator stored on the server. If they are the same, the decrypted on / off status is considered reliable; if they are different, the decrypted on / off status is considered unreliable. The decrypted on / off status is compared with the historical on / off status changes of the corresponding RFID tag stored on the server. If there is no historical on / off status and the decrypted on / off status is "on," the RFID tag is determined to be in an initialized state. If the on / off status is the same as the historical on / off status, the RFID tag is determined to be in a maintained state. If the on / off status differs from the historical on / off status, the RFID tag is determined to be in a reused state.
[0159] Example 5
[0160] This embodiment is based on Embodiment 3 and applies it to an electronic tag anti-counterfeiting system. The electronic tag anti-counterfeiting system includes: the electronic tag of Embodiment 2, as well as a server, and / or a reader or external device.
[0161] The reader or external device powers on the electronic tag and obtains and accesses the dynamic URL. The reader is a dedicated reading and writing device for the RFID tag, capable of reading and writing to the tag's storage unit; the external device can be the user's own smart device, such as a mobile phone or tablet, capable of reading from the RFID tag's storage unit.
[0162] The server decrypts the received access request for a dynamic URL to obtain the on / off status of the status recording antenna and an initial random number. Specifically, it retrieves the current random number from the dynamic URL's mapping area as a key factor to parse the dynamic URL, obtaining a tag UID. The tag UID is then used as a key factor to parse the on / off status ciphertext, yielding the initial random number and the on / off status. The server compares the decrypted initial random number with the initial random number from the corresponding true random number generator stored on the server. If they match, the decrypted on / off status is considered reliable; otherwise, it is considered unreliable.
[0163] In one embodiment of Example 4, the electronic tag anti-counterfeiting system includes an electronic tag and a server. An external device can power on the electronic tag and obtain and access a dynamic URL. The server decrypts the dynamic URL based on the access request received from the user's external device to obtain the on / off status of the status recording antenna and an initial random number.
[0164] In another embodiment of Example 4, the electronic tag anti-counterfeiting system includes electronic tags and readers or external devices, while the server can be built by the user. The server decrypts the dynamic URL based on the access request received from the reader, obtaining the on / off status of the status recording antenna and an initial random number.
[0165] Preferably, in another embodiment of Example 4, the electronic tag anti-counterfeiting system includes an electronic tag, a reader or external device, and a server. The electronic tag is powered on by the reader or external device, and a dynamic URL is acquired and accessed. The server decrypts the dynamic URL according to the received access request to the dynamic URL, and obtains the on / off status of the status recording antenna and the initial random number.
[0166] In the description of this application, it should be understood that the terms "upper", "lower", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer", etc., indicate the orientation or positional relationship based on the orientation or positional relationship shown in the accompanying drawings. They are only for the convenience of describing this application and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation. Therefore, they should not be construed as limitations on this application.
[0167] Specific embodiments of the present invention have been described above. It should be understood that the present invention is not limited to the specific embodiments described above, and those skilled in the art can make various changes or modifications within the scope of the claims, which do not affect the essence of the present invention. Unless otherwise specified, the embodiments and features described in this application can be arbitrarily combined with each other.
Claims
1. A method of on-off record of an RFID tag, characterized by, include: Step 1: After the RFID tag is powered on, a random number generator is used to generate the current random number; Step 2: Detect the on / off status of the status recording antenna. Using the initial random number generated during RFID tag initialization by a true random number generator and the detected on / off status of the status recording antenna, generate encrypted on / off status ciphertext and store it in the on / off storage area of the RFID tag. Step 3: Based on the current random number, the ciphertext of the on / off state in the on / off storage area is encrypted and mapped to the mapping area of the URL to obtain the dynamic URL.
2. The method for recording the on / off state of an RFID tag according to claim 1, characterized in that, Also includes: Step 4: Obtain access requests for the dynamic URL from the reader or external device, decrypt the dynamic URL, and obtain the on / off status of the status recording antenna and the initial random number; And / or, step 3 further includes: feeding back the dynamic URL to the reader or external device.
3. The method for recording the on / off status of an RFID tag according to claim 2, characterized in that, Step 4 further includes: comparing the decrypted initial random number with the stored initial random number corresponding to the true random number generator; if the two are the same, the on / off state obtained by decryption is considered reliable; if the two are different, the on / off state obtained by decryption is considered unreliable. And / or, step 4 further includes: comparing the decrypted on / off state with the stored changes in the historical on / off state of the corresponding RFID tag; when there is no historical on / off state and the decrypted on / off state is on, determining that the RFID tag is in an initialization state; when the on / off state is the same as the historical on / off state, determining that the RFID tag is in a hold state; when the on / off state is different from the historical on / off state, determining that the RFID tag is in a reuse state. And / or, in step 4, decrypting the dynamic URL includes: obtaining the current random number from the mapping area of the dynamic URL as a key factor to parse the dynamic URL, obtaining the tag UID, using the tag UID as a key factor to parse the on / off state ciphertext, and obtaining the initial random number and on / off state.
4. The method for recording the on / off state of an RFID tag according to claim 1, characterized in that, The steps preceding step 1 also include: Step 0: Before the RFID tag leaves the factory, the mapping area and the disconnection state ciphertext are set by custom instructions, and the initial random number and the on / off state are encrypted and displayed in the mapping area of the URL to obtain the dynamic URL.
5. The method for recording the on / off state of an RFID tag according to claim 4, characterized in that, Methods for encrypting the initial random number and the on / off state include: encrypting the initial random number and the on / off state using at least one of block cipher algorithms, XOR algorithms, and shift algorithms.
6. The method for recording the on / off state of an RFID tag according to claim 1, characterized in that, In step 2, the method for generating the encrypted on / off status ciphertext includes: using the tag UID as the key factor to encrypt the initial random number and the detected on / off status to obtain the on / off status ciphertext; And / or, in step 3, the encryption operation includes: using the current random number as a key factor to encrypt the on / off state ciphertext, and mapping the encryption result to the mapping area of the URL to obtain a dynamic URL.
7. An RFID chip, characterized in that, include: Radio frequency analog front-end, memory unit, and digital logic unit; The digital logic unit includes: True random number generator: generates an initial random number during RFID chip initialization, and the initial random number is encrypted and stored in the on / off storage area of the storage unit; State transition module: detects the on / off status of the state recording antenna, and generates encrypted on / off status ciphertext by using the initial random number generated by the true random number generator during RFID tag initialization and the detected on / off status of the state recording antenna, and stores it in the on / off storage area of the storage unit. Dynamic URL module: Based on the current random number, the ciphertext of the on / off status in the on / off storage area is encrypted and mapped to the URL mapping area to obtain a dynamic URL; The radio frequency analog front end includes: Random number generator: Generates a random number after the RFID tag is powered on.
8. The RFID chip according to claim 7, characterized in that, In the state transition module, the method for generating the encrypted on / off state ciphertext includes: using the tag UID as a key factor to encrypt the initial random number and the detected on / off state to obtain the on / off state ciphertext; And / or, in the dynamic URL module, the encryption operation includes: using the current random number as a key factor to encrypt the on / off state ciphertext, and mapping the encryption result to the mapping area of the URL to obtain the dynamic URL.
9. The RFID chip according to claim 7, characterized in that, Before the RFID tag leaves the factory, the dynamic URL module sets the correspondence between the mapping area and the disconnection state ciphertext through customized instructions, and displays the initial random number and the on / off state encrypted in the URL mapping area to obtain the dynamic URL.
10. The RFID chip according to claim 9, characterized in that, The dynamic URL module encrypts the initial random number and the on / off status by using at least one of the following methods: encrypting the initial random number and the on / off status using a block cipher algorithm, an XOR algorithm, and a shift algorithm.
11. An electronic tag, characterized in that, Includes the RFID chip as described in any one of claims 7-10.
12. The electronic tag according to claim 11, characterized in that, The RFID electronic tag also includes: a read / write antenna and a status recording antenna; The read / write antenna is electrically connected to the radio frequency analog front end and is used to obtain energy from the reader and transmit signals with the reader. The status recording antenna is electrically connected to the digital logic unit.
13. A server, characterized in that, The server, based on the received access request for the dynamic URL, obtains the current random number from the dynamic URL mapping area, parses the dynamic URL to obtain the on / off status ciphertext, and decrypts the on / off status ciphertext to obtain the on / off status of the status recording antenna and the initial random number.
14. The server according to claim 13, characterized in that, The access request originates from the reader or an external device; And / or, the server further includes: comparing the decrypted initial random number with the initial random number of the corresponding true random number generator stored in the server; if the two are the same, the decrypted on / off state is considered reliable; if the two are different, the decrypted on / off state is considered unreliable. And / or, the server further includes: comparing the decrypted on / off state with the historical on / off state changes of the corresponding RFID tag stored in the server; when there is no historical on / off state and the decrypted on / off state is on, determining that the RFID tag is in an initialization state; when the on / off state is the same as the historical on / off state, determining that the RFID tag is in a hold state; when the on / off state is different from the historical on / off state, determining that the RFID tag is in a reuse state. And / or, the server obtains the current random number from the mapping area of the dynamic URL as a key factor to parse the dynamic URL, obtains the tag UID, and uses the tag UID as a key factor to parse the on / off state ciphertext to obtain the initial random number and the on / off state.
15. An electronic tag anti-counterfeiting system, characterized in that, include: The electronic tag of claim 11 or 12, and the server of claim 13 or 14, and / or, reader or external device; The reader or external device powers on the electronic tag and obtains and accesses the dynamic URL; The server decrypts the dynamic URL based on the received access request to the dynamic URL, and obtains the on / off status of the status recording antenna and the initial random number.
16. A commodity, characterized in that, Including the electronic tag as described in claim 11 or 12.
Citation Information
Patent Citations
Anti-detaching double-frequency RFID tag and manufacturing method thereof
CN107679612A
