CN110992533B - RFID card verification method, device, equipment and storage medium - Google Patents

RFID card verification method, device, equipment and storage medium Download PDF

Info

Publication number
CN110992533B
CN110992533B CN201911254040.8A CN201911254040A CN110992533B CN 110992533 B CN110992533 B CN 110992533B CN 201911254040 A CN201911254040 A CN 201911254040A CN 110992533 B CN110992533 B CN 110992533B
Authority
CN
China
Prior art keywords
verification
rfid card
verified
card
data
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.)
Active
Application number
CN201911254040.8A
Other languages
Chinese (zh)
Other versions
CN110992533A (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.)
Shenzhen TCL Digital Technology Co Ltd
Original Assignee
Shenzhen TCL Digital Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen TCL Digital Technology Co Ltd filed Critical Shenzhen TCL Digital Technology Co Ltd
Priority to CN201911254040.8A priority Critical patent/CN110992533B/en
Publication of CN110992533A publication Critical patent/CN110992533A/en
Application granted granted Critical
Publication of CN110992533B publication Critical patent/CN110992533B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
    • G07C9/00Individual registration on entry or exit
    • G07C9/00174Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys
    • G07C9/00309Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys operated with bidirectional data transmission between data carrier and locks
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/31User authentication
    • G06F21/34User authentication involving the use of external additional devices, e.g. dongles or smart cards
    • G06F21/35User authentication involving the use of external additional devices, e.g. dongles or smart cards communicating wirelessly
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/32Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
    • H04L9/3236Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials using cryptographic hash functions
    • H04L9/3239Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials using cryptographic hash functions involving non-keyed hash functions, e.g. modification detection codes [MDCs], MD5, SHA or RIPEMD
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
    • G07C9/00Individual registration on entry or exit
    • G07C9/00174Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys
    • G07C2009/00753Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys operated by active electrical keys
    • G07C2009/00769Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys operated by active electrical keys with data transmission performed by wireless means
    • G07C2009/00793Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys operated by active electrical keys with data transmission performed by wireless means by Hertzian waves
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
    • G07C9/00Individual registration on entry or exit
    • G07C9/00174Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys
    • G07C2009/00968Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys shape of the data carrier
    • G07C2009/00976Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys shape of the data carrier card

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Lock And Its Accessories (AREA)

Abstract

The invention discloses a method, a device, equipment and a storage medium for verifying an RFID card, wherein the method comprises the following steps: acquiring a card ID of an RFID card to be verified; calculating according to the card ID of the RFID card to be verified and the lock ID of the intelligent lock to obtain a verification key and first verification data; acquiring position information associated with the card ID of the RFID card to be verified; and verifying the RFID card to be verified according to the position information, the verification key and the first verification data. Through multiple data verification modes of the position information, the verification key and the verification data, the safety of the RFID card verification is improved, and the technical problem that the safety is low due to the fact that the existing RFID card verification only verifies the ID of the RFID card is solved.

Description

RFID card verification method, device, equipment and storage medium
Technical Field
The present invention relates to the field of RFID cards, and in particular, to a method, an apparatus, a device, and a storage medium for verifying an RFID card.
Background
The unlocking of the smart lock by a Radio Frequency Identification (RFID) card is a common unlocking method for a smart door lock. The current RFID authentication method is generally to check only the ID of the RFID card, and this method has low security and can be easily copied by a mobile phone with a Near Field Communication (NFC) function.
Disclosure of Invention
The invention mainly aims to provide a method, a device, equipment and a storage medium for verifying an RFID card, and aims to solve the technical problem of low safety caused by only verifying the ID of the RFID card in the conventional RFID card verification.
In order to achieve the above object, the present invention provides a method for verifying an RFID card, including the steps of:
acquiring a card ID of an RFID card to be verified;
calculating according to the card ID of the RFID card to be verified and the lock ID of the intelligent lock to obtain a verification key and first verification data;
acquiring position information associated with the card ID of the RFID card to be verified;
and verifying the RFID card to be verified according to the position information, the verification key and the first verification data.
Optionally, the step of verifying the RFID card to be verified according to the location information, the verification key, and the first verification data includes:
reading the data to be verified of the RFID card to be verified in the storage area corresponding to the position information through the verification key;
and if the data to be verified of the RFID card in the storage area corresponding to the position information is successfully read through the verification key, verifying the RFID card according to the consistency of the data to be verified and the first verification data.
Optionally, the step of verifying the RFID card according to the consistency between the data to be verified and the first verification data includes:
if the data to be verified is consistent with the first verification data, the verification is passed;
and if the data to be verified is inconsistent with the first verification data, the verification is not passed.
Optionally, after the step of reading the to-be-verified data in the data storage area corresponding to the location information by using the verification key, the method further includes:
and if the data to be verified of the RFID card to be verified in the storage area corresponding to the position information fails to be read through the verification key, the verification fails.
Optionally, before the step of obtaining the card ID of the RFID card to be authenticated, the method further includes:
acquiring the card ID of the RFID card to be verified;
calculating according to the card ID of the RFID card to be verified and the lock ID of the intelligent lock to obtain a verification key and first verification data;
writing the first verification data into the RFID card to be verified through a preset write-in key and acquiring the position information of a storage area written with the first verification data;
setting the verification key as a reading key for reading the first verification data from the storage area of the RFID card to be verified;
And storing the card ID of the RFID card to be verified and the position information of the first verification data in the storage area of the RFID card to be verified in the intelligent lock in an associated manner.
Optionally, after the step of writing the first verification data into the RFID card to be verified through a preset write key, the method further includes:
if the first verification data are not written into the RFID card to be verified through a preset writing key, displaying a safety control, wherein the safety control comprises a setting control for setting a verification mode of the RFID card to be verified as ID verification;
and if the setting control is triggered, setting the verification mode of the RFID card to be verified as ID verification.
Optionally, after the step of obtaining the card ID of the RFID card to be authenticated, the method further includes:
determining a verification mode of the RFID card according to the card ID;
if the verification mode of the RFID card is data verification, executing the following steps: calculating according to the card ID of the RFID card to be verified and the lock ID of the intelligent lock to obtain a verification key and first verification data;
if the verification mode of the RFID card is ID verification, determining whether the card ID is the authorized ID of the intelligent lock;
if yes, the verification is passed;
If not, the verification is not passed.
Further, to achieve the above object, the present invention also provides an RFID card verification apparatus, including:
the ID acquisition module is used for acquiring the card ID of the RFID card to be verified;
the calculation module is used for calculating according to the card ID of the RFID card to be verified and the lock ID of the intelligent lock to obtain a verification key and first verification data;
a position acquisition module for acquiring the position information associated with the card ID of the RFID card to be verified
And the verification module is used for verifying the RFID card to be verified according to the position information, the verification key and the first verification data.
Further, to achieve the above object, the present invention also provides an RFID card verification apparatus, which includes a memory, a processor, and an RFID card verification program stored on the memory and executable on the processor, wherein the RFID card verification program, when executed by the processor, implements the steps of the RFID card verification method as described above.
Further, to achieve the above object, the present invention also provides a storage medium having stored thereon an RFID card authentication program, which when executed by a processor implements the steps of the RFID card authentication method as described above.
The method comprises the steps of obtaining a card ID of an RFID card to be verified; calculating according to the card ID of the RFID card to be verified and the lock ID of the intelligent lock to obtain a verification key and first verification data; acquiring position information associated with the card ID of the RFID card to be verified; and verifying the RFID card to be verified according to the position information, the verification key and the first verification data. Through multiple data verification modes of the position information, the verification key and the verification data, the safety of the RFID card verification is improved, and the technical problem that the safety is low due to the fact that the existing RFID card verification only verifies the ID of the RFID card is solved.
Drawings
FIG. 1 is a schematic structural diagram of a hardware operating environment of an apparatus according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart illustrating a first embodiment of a RFID card verification method according to the present invention;
fig. 3 is a functional block diagram of an embodiment of an RFID card verification apparatus according to the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
It should be noted that, in the prior art, unlocking the smart lock by using a Radio Frequency Identification (RFID) card is a common unlocking method for the smart door lock. The current RFID authentication method is generally to check only the ID of the RFID card, and this method has low security and can be easily copied by a mobile phone with a Near Field Communication (NFC) function.
Based on the above defects, the present invention provides an RFID card verification device, and referring to fig. 1, fig. 1 is a schematic structural diagram of a device hardware operating environment according to an embodiment of the RFID card verification device of the present invention.
As shown in fig. 1, the RFID card verification apparatus may include: a processor 1001, e.g. a CPU, a communication bus 1002, a user interface 1003 to be analyzed, a network interface 1004, a memory 1005. The communication bus 1002 is used to implement connection communication among these components. The to-be-analyzed user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional to-be-analyzed user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory (e.g., a magnetic disk memory). The memory 1005 may alternatively be a memory device separate from the processor 1001 described above.
Those skilled in the art will appreciate that the hardware configuration of the RFID card verification device shown in fig. 1 does not constitute a limitation of the RFID card verification device, and may include more or fewer components than those shown, or some components in combination, or a different arrangement of components.
As shown in fig. 1, a memory 1005, which is a kind of storage medium, may include therein an operating system, a network communication module, a user interface module to be analyzed, and an RFID card authentication program. The operating system is a program for managing and controlling the RFID card verification equipment and software resources, and supports the operation of the network communication module, the user interface module to be analyzed, the RFID card verification program and other programs or software; the network communication module is used to manage and control the network interface 1004; the to-be-analyzed user interface module is used for managing and controlling the to-be-analyzed user interface 1003.
In the hardware structure of the RFID card verification device shown in fig. 1, the network interface 1004 is mainly used for connecting to a background server and performing data communication with the background server; the user interface to be analyzed 1003 is mainly used for connecting a client and performing data communication with the client; the processor 1001 may call the RFID card authentication program stored in the memory 1005 and perform the following operations:
acquiring a card ID of an RFID card to be verified;
calculating according to the card ID of the RFID card to be verified and the lock ID of the intelligent lock to obtain a verification key and first verification data;
acquiring position information associated with the card ID of the RFID card to be verified;
And verifying the RFID card to be verified according to the position information, the verification key and the first verification data.
Further, the step of verifying the RFID card to be verified according to the location information, the verification key, and the first verification data includes:
reading the data to be verified of the RFID card to be verified in the storage area corresponding to the position information through the verification key;
and if the data to be verified of the RFID card to be verified in the storage area corresponding to the position information is successfully read through the verification key, verifying the RFID card according to the consistency of the data to be verified and the first verification data.
Further, the step of verifying the RFID card according to the consistency of the data to be verified and the first verification data includes:
if the data to be verified is consistent with the first verification data, the verification is passed;
and if the data to be verified is inconsistent with the first verification data, the verification is not passed.
Further, after the step of reading the to-be-verified data in the data storage area corresponding to the location information by the to-be-verified RFID card through the verification key, the method further includes:
and if the data to be verified of the RFID card to be verified in the storage area corresponding to the position information fails to be read through the verification key, the verification fails.
Further, before the step of obtaining the card ID of the RFID card to be authenticated, the method further includes:
acquiring the card ID of the RFID card to be verified;
calculating according to the card ID of the RFID card to be verified and the lock ID of the intelligent lock to obtain a verification key and first verification data;
writing the first verification data into the RFID card to be verified through a preset write-in key and acquiring the position information of a storage area written with the first verification data;
setting the verification key as a reading key for reading the first verification data from the storage area of the RFID card to be verified;
and storing the card ID of the RFID card to be verified and the position information of the first verification data in the storage area of the RFID card to be verified in the intelligent lock in an associated manner.
Further, after the step of writing the first verification data into the RFID card to be verified through a preset write key, the method further includes:
if the first verification data are not written into the RFID card to be verified through a preset writing key, displaying a safety control, wherein the safety control comprises a setting control for setting a verification mode of the RFID card to be verified as ID verification;
and if the setting control is triggered, setting the verification mode of the RFID card to be verified as ID verification.
Further, after the step of obtaining the card ID of the RFID card to be authenticated, the method further includes:
determining the verification mode of the RFID card according to the card ID;
if the verification mode of the RFID card is data verification, executing the following steps: calculating according to the card ID of the RFID card to be verified and the lock ID of the intelligent lock to obtain a verification key and first verification data;
if the verification mode of the RFID card is ID verification, determining whether the card ID is the authorized ID of the intelligent lock;
if yes, the verification is passed;
if not, the verification is not passed.
The specific implementation of the RFID card verification apparatus of the present invention is substantially the same as the embodiments of the RFID card verification method described below, and is not described herein again.
The invention also provides an RFID card verification method.
Referring to fig. 2, fig. 2 is a flowchart illustrating a first embodiment of the RFID card verification method according to the present invention.
While a logical order is shown in the flow chart, in some cases, the steps shown or described may be performed in an order different than that shown or described herein.
In various embodiments of the RFID card verification method, the execution subject may be a smart lock or an RFID card verification device integrated with the smart lock, and for convenience of description, the execution subject is omitted for illustrating various embodiments. The RFID card verification method comprises the following steps:
Step S10, obtaining the card ID of the RFID card to be verified;
in the prior art, unlocking an intelligent lock through an RFID card is a common unlocking mode on an intelligent door lock. The current RFID authentication method is generally to check only the ID of the RFID card, and this method has low security and can be easily copied by a mobile phone with NFC function.
In order to solve the technical problem of low security of RFID card verification in the prior art, the embodiment of the invention provides an RFID card verification method, aiming at improving the intelligence of equipment through a dynamic CPU operation mode.
In this embodiment, when the user needs to unlock the lock, the to-be-authenticated RFID card may be brought close to or inserted into the smart lock so that the smart lock can read the card ID of the to-be-authenticated RFID card. Specifically, since the data storage area of the existing RFID card is a sector plus data block pattern, and the card ID of the RFID card is usually written in the 0 data block of the 0 sector of the RFID card, the card ID of the RFID card to be authenticated is also read from the 0 data block of the 0 sector of the RFID card to be authenticated when the card ID of the RFID card to be authenticated is read.
The verification method of the RFID card is not limited to be applied to the intelligent door lock, and can also be applied to other intelligent locks.
Step S20, calculating according to the card ID of the RFID card to be verified and the lock ID of the intelligent lock to obtain a verification key and first verification data;
In this embodiment, after the card ID of the RFID card to be authenticated is obtained, each smart lock has a corresponding lock ID, and based on the card ID of the RFID card to be authenticated and the lock ID of the current smart lock, the authentication key and the first authentication data for the RFID card to be authenticated to unlock the smart lock may be calculated by using a preset algorithm. The preset Algorithm includes, but is not limited to, MD5 Message Digest Algorithm (MD5 Message-Digest Algorithm), secure hash Algorithm (SHA-1, SHA-224, SHA-256, SHA-384, and SHA-512), and the like.
In addition, the number of the calculated verification keys is not particularly limited in this embodiment, that is, the number of the verification keys may be 2, or may be 1 or more.
Step S30, acquiring position information associated with the card ID of the RFID card to be verified;
in this embodiment, since the step of entering the information related to the RFID card to be authenticated into the smart lock is further included before the smart lock is opened by using the RFID card to be authenticated, that is, the step S10 is further included before: acquiring the card ID of the RFID card to be verified; calculating according to the card ID of the RFID card to be verified and the lock ID of the intelligent lock to obtain a verification key and first verification data; writing the first verification data into the RFID card to be verified through a preset write-in key and acquiring the position information of a storage area written with the first verification data; setting the verification key as a reading key for reading the first verification data from the storage area of the RFID card to be verified; and storing the card ID of the RFID card to be verified and the position information of the first verification data in the storage area of the RFID card to be verified in the intelligent lock in an associated manner. In the logging-in stage, the card ID of the RFID card to be verified and the position information of the first verification data in the storage area of the RFID card to be verified are stored in the intelligent lock in a correlation mode, so that after the card ID of the RFID card to be verified is obtained, the position information correlated with the card ID can be obtained.
Further, if the position information cannot be acquired in the smart lock according to the card ID of the RFID card to be verified, the verification fails.
And step S40, verifying the RFID card to be verified according to the position information, the verification key and the first verification data.
After the position information corresponding to the card ID is obtained, the verification key obtained through calculation can be used for reading the data to be verified of the RFID card to be verified in the position information, the legality of the RFID card is verified according to the consistency of the data to be verified and the first verification data, if the RFID card is verified to be legal, the card is considered to be legal, the intelligent lock is unlocked, if the RFID card is not verified to be legal, the card is considered to be illegal, the intelligent lock is not unlocked, and an alarm prompt is sent.
In the embodiment, the card ID of the RFID card to be verified is obtained; calculating according to the card ID of the RFID card to be verified and the lock ID of the intelligent lock to obtain a verification key and first verification data; acquiring position information associated with the card ID of the RFID card to be verified; and verifying the RFID card to be verified according to the position information, the verification key and the first verification data. Through multiple data verification modes of the position information, the verification key and the verification data, the safety of the RFID card verification is improved, and the technical problem that the safety is low due to the fact that the existing RFID card verification only verifies the ID of the RFID card is solved.
Further, a second embodiment of the RFID card verification method according to the present invention is provided, before the step S10, the method further includes:
step S11, obtaining the card ID of the RFID card to be verified;
in this embodiment, before the to-be-authenticated RFID card is used to unlock the smart lock, information related to the to-be-authenticated RFID card needs to be entered into the smart lock, specifically, the to-be-authenticated RFID card is brought close to or inserted into the smart lock so that the smart lock can read the card ID of the to-be-authenticated RFID card. Specifically, since the data storage area of the existing RFID card is a sector plus data block pattern, and the card ID of the RFID card is usually written in the 0 data block of the 0 sector of the RFID card, the card ID of the RFID card to be authenticated is also read from the 0 data block of the 0 sector of the RFID card to be authenticated when the card ID of the RFID card to be authenticated is read.
Step S12, calculating according to the card ID of the RFID card to be verified and the lock ID of the intelligent lock to obtain a verification key and first verification data;
corresponding to the verification process of the RFID card, in the entry process, the verification key and the first verification data for the RFID card to be verified to unlock the intelligent lock are calculated through the same preset algorithm as the verification process based on the card ID of the RFID card to be verified and the lock ID of the current intelligent lock. And for the same RFID card and the same intelligent lock, the verification key and the first verification data obtained by the input process are the same as those obtained by the verification process.
Step S13, writing the first verification data into the RFID card to be verified through a preset write-in key and acquiring the position information of a storage area written into the first verification data;
after the verification key and the first verification data are obtained through calculation, the first verification data are written into a blank storage area of the RFID card to be verified through a preset write-in key, and position information of the storage area is obtained. The preset write-in key is a special key preset by operation and maintenance personnel and used for writing data in a blank storage area of the RFID card to be verified.
In addition, the number of the calculated preset authentication keys is not particularly limited in this embodiment, that is, the number of the preset authentication keys may be 2, or may also be 1 or more.
Further, after step S13, the method further includes:
step S131, if the writing of the first verification data into the RFID card to be verified through a preset writing key fails, displaying a security control, wherein the security control comprises a setting control for setting a verification mode of the RFID card to be verified as ID verification;
step S132, if the setting control is triggered, setting the verification mode of the RFID card to be verified as ID verification.
Specifically, if the writing of the first verification data into the RFID card to be verified by the preset write key is successful, it indicates that the RFID card is a blank card or that the RFID card has an unused blank storage area, but if the writing of the first verification data into the RFID card to be verified by the preset write key fails, it indicates that the storage area of the RFID card is full and data cannot be written, and thus the card cannot use a data verification method that verifies the card by using the location information, the verification key, and the verification data, a security control may be displayed on the smart lock, a terminal associated with the smart lock, or a terminal associated with the RFID card, the security control includes a setting control for setting the verification mode of the RFID card to be verified as ID verification with lower security, and if the setting control is triggered, the verification method of the RFID card to be verified is set as ID verification, that is the smart lock stores the card ID of the RFID card to be verified as an authorized ID, and when the subsequent user uses the card to unlock, the verification unlocking is carried out only according to whether the ID of the card is an authorized ID.
In addition, the security control may further include a prompt message that "the current RFID card storage area is full, data verification with high security cannot be used, and the verification mode of the current RFID card may be set to ID verification with lower security".
Further, after step S10, the method further includes:
determining a verification mode of the RFID card according to the card ID; if the verification mode of the RFID card is data verification, executing step S20; if the verification mode of the RFID card is ID verification, determining whether the card ID is the authorized ID of the intelligent lock; if yes, the verification is passed, and the intelligent lock is unlocked; if not, the verification fails, and the intelligent lock is not unlocked.
Step S14, setting the verification key as a read key for reading the first verification data from the storage area of the RFID card to be verified;
step S15, store the card ID of the to-be-verified RFID card and the location information of the storage area of the first verification data in the to-be-verified RFID card in association with the smart lock.
In this embodiment, after the first verification data is written into the blank storage area of the RFID card to be verified, the calculated verification key is set in the RFID card as a read key for reading the first verification data from the storage area of the RFID card to be verified, and the card ID of the RFID card to be verified and the location information of the first verification data in the storage area of the RFID card to be verified are stored in the smart lock in an associated manner for unlocking verification of the smart lock.
Because the existing method for generating the key through the encryption algorithm to protect certain sectors in the RFID card from being copied is high in safety, the RFID card is not easy to be copied, but the card writing is needed, the card can only be used by a special card, a user needs to carry a plurality of cards when unlocking different locks, and the user experience is poor. But can write in the verification mode of opening the card of different intelligent locks in an RFID card through this embodiment, the user only needs a card to unblank to open different locks, has not only guaranteed the security of RFID card, has still promoted the convenience that the user opened a plurality of locks.
Further, a third embodiment of the RFID card verification method according to the present invention is provided, where the step S40 includes:
step S41, reading the data to be verified of the RFID card to be verified in the storage area corresponding to the position information through the verification key;
step S42, if the data to be verified of the RFID card to be verified in the storage area corresponding to the position information is successfully read through the verification key, verifying the RFID card according to the consistency of the data to be verified and the first verification data.
In this embodiment, after the location information associated with the card ID of the RFID card to be authenticated is successfully acquired, the authentication key obtained through calculation reads the data to be authenticated from the storage area corresponding to the location information of the RFID card to be authenticated.
Further, if the data to be verified of the RFID card to be verified in the storage area corresponding to the position information is read by the verification key and fails, the verification fails; and if the data to be verified is read successfully, verifying the RFID card according to the consistency of the read data to be verified and the first verification data.
Further, the step S42 includes:
if the data to be verified is consistent with the first verification data, the verification is passed;
and if the data to be verified is inconsistent with the first verification data, the verification is not passed.
Specifically, if the data to be verified read from the RFID card to be verified is consistent with the first verification data calculated according to the card ID of the RFID card to be verified and the lock ID of the smart lock, the verification of the RFID card to be verified is passed, and the smart lock is unlocked; if the RFID card to be verified is not consistent with the intelligent lock, the RFID card to be verified is not verified, and the intelligent lock is not unlocked.
According to the embodiment, the verification strength of the RFID card to be verified is increased by judging whether the data reading is successful and whether the verification data is consistent, so that the verification safety of the RFID card is further improved.
The invention also provides an RFID card verification device.
Referring to fig. 3, fig. 3 is a functional block diagram of a first embodiment of the RFID card verification apparatus according to the present invention. The RFID card verification device includes:
An ID acquisition module 10, configured to acquire a card ID of an RFID card to be verified;
the calculation module 20 is configured to calculate, according to the card ID of the RFID card to be authenticated and the lock ID of the smart lock, an authentication key and first authentication data;
a position obtaining module 30, configured to obtain position information associated with the card ID of the RFID card to be authenticated
And the verification module 40 is used for verifying the RFID card to be verified according to the position information, the verification key and the first verification data.
Further, the verification module includes:
the reading unit is used for reading the data to be verified of the RFID card to be verified in the storage area corresponding to the position information through the verification key;
and the consistency verification unit is used for verifying the RFID card according to the consistency of the data to be verified and the first verification data if the data to be verified of the RFID card in the storage area corresponding to the position information is successfully read through the verification key.
Further, the consistency verification unit includes:
the verification passing subunit is used for passing the verification if the data to be verified is consistent with the first verification data;
and the verification failure subunit is used for failing to verify if the data to be verified is inconsistent with the first verification data.
Further, the verification module further comprises:
and the verification failure unit is used for failing to verify if the data to be verified of the RFID card to be verified in the storage area corresponding to the position information is read by the verification key.
Further, the RFID card verification apparatus further includes:
a write-in ID acquisition module for acquiring the card ID of the RFID card to be verified;
the write-in calculation module is used for calculating according to the card ID of the RFID card to be verified and the lock ID of the intelligent lock to obtain a verification key and first verification data;
the write-in module is used for writing the first verification data into the RFID card to be verified through a preset write-in key and acquiring the position information of a storage area written in the first verification data;
the write setting module is used for setting the verification key as a reading key for reading the first verification data from the storage area of the RFID card to be verified;
and the write-in storage module is used for storing the card ID of the RFID card to be verified and the position information of the first verification data in the storage area of the RFID card to be verified in the intelligent lock in an associated manner.
Further, the RFID card verification apparatus further includes:
The safety prompting module is used for displaying a safety control if the first verification data is failed to be written into the RFID card to be verified through a preset writing key, wherein the safety control comprises a setting control for setting a verification mode of the RFID card to be verified as ID verification;
and the ID verification setting module is used for setting the verification mode of the RFID card to be verified as ID verification if the setting control is triggered.
Further, the RFID card verification apparatus further includes:
the determining module is used for determining the verification mode of the RFID card according to the card ID;
the verification module is further configured to, if the verification mode of the RFID card is data verification, execute the following steps: calculating according to the card ID of the RFID card to be verified and the lock ID of the intelligent lock to obtain a verification key and first verification data;
the ID verification module is used for determining whether the card ID is the authorized ID of the intelligent lock or not if the verification mode of the RFID card is ID verification;
the ID verification passing module is used for passing the verification if the ID verification passing module is used for passing the verification;
and the ID verification failure module is used for failing the verification if the ID verification failure module does not pass the verification.
The specific implementation of the RFID card verification apparatus of the present invention is substantially the same as the embodiments of the RFID card verification method described above, and will not be described herein again.
In addition, the embodiment of the invention also provides a storage medium.
The storage medium has stored thereon an RFID card verification program which, when executed by the processor, implements the steps of the RFID card verification method as described above.
The specific implementation of the storage medium of the present invention is substantially the same as the embodiments of the RFID card verification method described above, and will not be described herein again.
The present invention is described in connection with the accompanying drawings, but the present invention is not limited to the above embodiments, which are only illustrative and not restrictive, and those skilled in the art can make various changes without departing from the spirit and scope of the invention as defined by the appended claims, and all changes that come within the meaning and range of equivalency of the specification and drawings that are obvious from the description and the attached claims are intended to be embraced therein.

Claims (9)

1. A Radio Frequency Identification (RFID) card verification method is characterized by comprising the following steps:
acquiring a card ID of an RFID card to be verified;
calculating according to the card ID of the RFID card to be verified and the lock ID of the intelligent lock to obtain a verification key and first verification data;
Writing the first verification data into the RFID card to be verified through a preset write-in key and acquiring the position information of a storage area written with the first verification data;
setting the verification key as a reading key for reading the first verification data from the storage area of the RFID card to be verified;
storing the card ID of the RFID card to be verified and the position information of the first verification data in the storage area of the RFID card to be verified in the intelligent lock in a correlation mode;
acquiring position information associated with the card ID of the RFID card to be verified;
and verifying the RFID card to be verified according to the position information, the verification key and the first verification data.
2. The RFID card authentication method of claim 1, wherein the step of authenticating the RFID card to be authenticated based on the location information, the authentication key, and the first authentication data comprises:
reading the data to be verified of the RFID card to be verified in the storage area corresponding to the position information through the verification key;
and if the data to be verified of the RFID card to be verified in the storage area corresponding to the position information is successfully read through the verification key, verifying the RFID card according to the consistency of the data to be verified and the first verification data.
3. The RFID card authentication method according to claim 2, wherein the step of authenticating the RFID card according to the correspondence between the data to be authenticated and the first authentication data includes:
if the data to be verified is consistent with the first verification data, the verification is passed;
and if the data to be verified is inconsistent with the first verification data, the verification is not passed.
4. The RFID card authentication method according to claim 2, wherein after the step of reading the data to be authenticated in the data storage area corresponding to the location information by the authentication key, the method further comprises:
and if the data to be verified of the RFID card to be verified in the storage area corresponding to the position information fails to be read through the verification key, the verification fails.
5. The RFID card verification method of claim 1, wherein after the step of writing the first verification data to the RFID card to be verified by a preset write key, further comprising:
if the first verification data are not written into the RFID card to be verified through a preset writing key, displaying a safety control, wherein the safety control comprises a setting control for setting a verification mode of the RFID card to be verified as ID verification;
And if the setting control is triggered, setting the verification mode of the RFID card to be verified as ID verification.
6. The RFID card authentication method according to any one of claims 1 to 5, wherein the step of obtaining the card ID of the RFID card to be authenticated further comprises, after the step of obtaining the card ID of the RFID card to be authenticated:
determining a verification mode of the RFID card according to the card ID;
if the verification mode of the RFID card is data verification, executing the following steps: calculating according to the card ID of the RFID card to be verified and the lock ID of the intelligent lock to obtain a verification key and first verification data;
if the verification mode of the RFID card is ID verification, determining whether the card ID is the authorized ID of the intelligent lock;
if yes, the verification is passed;
if not, the verification is not passed.
7. An RFID card authentication device, comprising:
the ID acquisition module is used for acquiring the card ID of the RFID card to be verified;
the calculation module is used for calculating according to the card ID of the RFID card to be verified and the lock ID of the intelligent lock to obtain a verification key and first verification data;
the write-in module is used for writing the first verification data into the RFID card to be verified through a preset write-in key and acquiring the position information of a storage area written in the first verification data;
The setting module is used for setting the verification key as a reading key for reading the first verification data from the storage area of the RFID card to be verified;
the association module is used for associating and storing the card ID of the RFID card to be verified and the position information of the first verification data in the storage area of the RFID card to be verified to the intelligent lock;
the position acquisition module is used for acquiring position information associated with the card ID of the RFID card to be verified;
and the verification module is used for verifying the RFID card to be verified according to the position information, the verification key and the first verification data.
8. An RFID card verification device, characterized in that the RFID card verification device comprises a memory, a processor and an RFID card verification program stored on the memory and executable on the processor, which when executed by the processor implements the steps of the RFID card verification method according to any one of claims 1-6.
9. A storage medium having stored thereon an RFID card authentication program which, when executed by a processor, implements the steps of the RFID card authentication method according to any one of claims 1 to 6.
CN201911254040.8A 2019-12-09 2019-12-09 RFID card verification method, device, equipment and storage medium Active CN110992533B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911254040.8A CN110992533B (en) 2019-12-09 2019-12-09 RFID card verification method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911254040.8A CN110992533B (en) 2019-12-09 2019-12-09 RFID card verification method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN110992533A CN110992533A (en) 2020-04-10
CN110992533B true CN110992533B (en) 2022-06-10

Family

ID=70091673

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911254040.8A Active CN110992533B (en) 2019-12-09 2019-12-09 RFID card verification method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110992533B (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101102574A (en) * 2007-08-14 2008-01-09 华为技术有限公司 Terminal verification method and device
CN104519479A (en) * 2013-09-27 2015-04-15 中兴通讯股份有限公司 Methods for terminal to lock net and unlock net
CN105814591A (en) * 2014-10-22 2016-07-27 华为技术有限公司 Verification information transmission method and terminal
CN105827576A (en) * 2015-01-05 2016-08-03 珠海汇金科技股份有限公司 Unlocking method and system based on dynamic cipher lock
CN107038777A (en) * 2017-03-29 2017-08-11 云丁网络技术(北京)有限公司 A kind of safety communicating method and its intelligent door lock system based on intelligent door lock system
CN107735538A (en) * 2015-11-19 2018-02-23 闵瑜 A kind of electronic lock management method and system
CN107945324A (en) * 2017-11-14 2018-04-20 广东安居宝数码科技股份有限公司 Card writing method, card reading method and the device of access control system
CN108171830A (en) * 2017-12-21 2018-06-15 广东汇泰龙科技有限公司 A kind of hardware encryption method unlocked based on contactless card, system and intelligent cloud lock
CN108547514A (en) * 2018-04-13 2018-09-18 珠海格力电器股份有限公司 A kind of open method and device of intelligent door lock
CN109712293A (en) * 2018-12-28 2019-05-03 深圳市简工智能科技有限公司 Control method, mobile terminal and the readable storage medium storing program for executing of smart lock

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020024418A1 (en) * 1999-08-11 2002-02-28 Ayala Raymond F. Method for a key to selectively allow access to an enclosure
US9455839B2 (en) * 2014-07-30 2016-09-27 Master Lock Company Llc Wireless key management for authentication

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101102574A (en) * 2007-08-14 2008-01-09 华为技术有限公司 Terminal verification method and device
CN104519479A (en) * 2013-09-27 2015-04-15 中兴通讯股份有限公司 Methods for terminal to lock net and unlock net
CN105814591A (en) * 2014-10-22 2016-07-27 华为技术有限公司 Verification information transmission method and terminal
CN105827576A (en) * 2015-01-05 2016-08-03 珠海汇金科技股份有限公司 Unlocking method and system based on dynamic cipher lock
CN107735538A (en) * 2015-11-19 2018-02-23 闵瑜 A kind of electronic lock management method and system
CN107038777A (en) * 2017-03-29 2017-08-11 云丁网络技术(北京)有限公司 A kind of safety communicating method and its intelligent door lock system based on intelligent door lock system
CN107945324A (en) * 2017-11-14 2018-04-20 广东安居宝数码科技股份有限公司 Card writing method, card reading method and the device of access control system
CN108171830A (en) * 2017-12-21 2018-06-15 广东汇泰龙科技有限公司 A kind of hardware encryption method unlocked based on contactless card, system and intelligent cloud lock
CN108547514A (en) * 2018-04-13 2018-09-18 珠海格力电器股份有限公司 A kind of open method and device of intelligent door lock
CN109712293A (en) * 2018-12-28 2019-05-03 深圳市简工智能科技有限公司 Control method, mobile terminal and the readable storage medium storing program for executing of smart lock

Also Published As

Publication number Publication date
CN110992533A (en) 2020-04-10

Similar Documents

Publication Publication Date Title
US8015417B2 (en) Remote access system, gateway, client device, program, and storage medium
US20150033364A1 (en) Method and Apparatus for the Protection of Application Software
US9832230B2 (en) IC chip, information processing apparatus, system, method, and program
CN107430658B (en) Security software certification and verifying
US20080120726A1 (en) External storage device
EP2693789A1 (en) Mobile terminal encryption method, hardware encryption device and mobile terminal
CN102915415B (en) Safety control method and system of mobile terminal
KR20050021922A (en) Secure data management apparatus
US20160048673A1 (en) Secure electronic lock
US20080086645A1 (en) Authentication system and method thereof
CN104820805A (en) Method and device for burglary prevention of user identity identification card information
CN109977039A (en) HD encryption method for storing cipher key, device, equipment and readable storage medium storing program for executing
JP2011128771A (en) Information processing apparatus, information processing method and information processing program
US8151111B2 (en) Processing device constituting an authentication system, authentication system, and the operation method thereof
US20210370872A1 (en) Information processing apparatus, information processing method and non-transitory storage medium
KR101834181B1 (en) Access control system using certification schedule of multi certification device
US20080022364A1 (en) Authentication information management method for device embedded with microprocessor unit
CN110992533B (en) RFID card verification method, device, equipment and storage medium
US20160078235A1 (en) Device and management module
US10726160B2 (en) Localized pin management with reader verification and no disclosure
CN108122111B (en) Secure payment method, device, storage medium and computer equipment
KR101763184B1 (en) File recovery method using backup
JP4698502B2 (en) Terminal device authentication system, authentication method and program using mobile phone
KR101737082B1 (en) Image forming apparatus and method for executing user authentication using smart card
JP4885168B2 (en) External media control method, system and apparatus

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