









技术领域technical field
本公开涉及通信领域,具体地,涉及一种复制智能卡的方法、装置及计算机可读存储介质。The present disclosure relates to the field of communications, and in particular, to a method, an apparatus and a computer-readable storage medium for duplicating a smart card.
背景技术Background technique
相关技术中,MIFARE非接触式IC卡主要用于门禁系统访问控制卡、会员卡、以及一些小额支付卡。MIFARE卡的存储容量有1k字节和4k字节。其中最常见的MIFARE Classic 1K卡,简称M1卡。M1卡分为16个扇区,每个扇区分为4块,每块16个字节,以块为存取单位。每个扇区有独立的一组密钥及访问控制,用于控制数据的读写操作权限。In the related art, MIFARE contactless IC cards are mainly used for access control cards of access control systems, membership cards, and some small payment cards. The storage capacity of the MIFARE card is 1k bytes and 4k bytes. The most common MIFARE Classic 1K card, referred to as M1 card. The M1 card is divided into 16 sectors, each sector is divided into 4 blocks, each block is 16 bytes, and the block is the access unit. Each sector has an independent set of keys and access control to control the read and write permissions of data.
目前市场上带有NFC(Near Field Communication;近场通信)eSE(embeddedSecure Element;嵌入式安全模块)芯片的主流手机均支持MIFARE协议,技术上可以通过在eSE中动态加载应用实现对MIFARE协议的卡模拟。如果用户的M1卡使用了缺省密钥,就可以通过手机NFC读卡器模式或非接触式读卡器读取到卡片的所有数据,并在手机eSE中克隆出一张同样数据的卡片。这样,一张用户的M1卡就可以快速地被复制到任意台手机上,从而存在一定的风险隐患。At present, mainstream mobile phones with NFC (Near Field Communication; Near Field Communication) eSE (embedded Secure Element; embedded security module) chips on the market all support the MIFARE protocol. simulation. If the user's M1 card uses the default key, all data of the card can be read through the mobile phone NFC card reader mode or contactless card reader, and a card with the same data can be cloned in the mobile phone eSE. In this way, a user's M1 card can be quickly copied to any mobile phone, so there are certain hidden risks.
发明内容SUMMARY OF THE INVENTION
为克服相关技术中存在的问题,本公开提供一种复制智能卡的方法、装置及计算机可读存储介质。In order to overcome the problems existing in the related art, the present disclosure provides a method, an apparatus and a computer-readable storage medium for duplicating a smart card.
根据本公开实施例的第一方面,提供一种复制智能卡的方法,应用于服务器,所述方法包括:According to a first aspect of the embodiments of the present disclosure, there is provided a method for duplicating a smart card, which is applied to a server, and the method includes:
接收移动终端发送的对所述智能卡的复制请求;receiving a copy request to the smart card sent by the mobile terminal;
根据所述复制请求,获取所述智能卡的特征码;其中,所述特征码为利用算法和所述智能卡的数据计算得出;Obtain the feature code of the smart card according to the copy request; wherein, the feature code is calculated by using an algorithm and the data of the smart card;
根据所述特征码,确认所述智能卡是否满足复制条件;According to the feature code, confirm whether the smart card satisfies the copy condition;
将确认结果反馈给所述移动终端,以使所述移动终端根据所述确认结果复制或终止复制所述智能卡。The confirmation result is fed back to the mobile terminal, so that the mobile terminal duplicates or terminates duplicating the smart card according to the confirmation result.
可选地,所述获取所述智能卡的特征码,包括:Optionally, the acquiring the feature code of the smart card includes:
接收所述移动终端发送的所述智能卡的数据;receiving the data of the smart card sent by the mobile terminal;
利用算法和所述智能卡的数据计算得出所述特征码。The characteristic code is calculated by using an algorithm and the data of the smart card.
可选地,所述获取所述智能卡的特征码,包括:Optionally, the acquiring the feature code of the smart card includes:
获取所述复制请求中包括的所述特征码。Obtain the feature code included in the copy request.
可选地,所述确认所述移动终端是否满足复制条件,包括:Optionally, the confirming whether the mobile terminal satisfies the replication condition includes:
根据所述特征码,查找所述智能卡允许被复制的次数以及所述智能卡的当前复制次数;According to the feature code, look up the number of times the smart card is allowed to be copied and the current number of copies of the smart card;
当所述当前复制次数小于所述智能卡允许被复制的次数时,则允许所述移动终端复制所述智能卡;When the current number of copies is less than the number of times the smart card is allowed to be copied, allowing the mobile terminal to copy the smart card;
当所述当前复制次数不小于所述智能卡允许被复制的次数时,则禁止所述移动终端复制所述智能卡。When the current number of copies is not less than the number of times the smart card is allowed to be copied, the mobile terminal is prohibited from copying the smart card.
可选地,所述确认所述移动终端是否满足复制条件包括:Optionally, the confirming whether the mobile terminal satisfies the replication condition includes:
确认所述服务器没有预存所述特征码;Confirm that the server does not pre-store the feature code;
存储所述特征码;storing the feature code;
设置所述特征码对应的智能卡允许被复制的次数以及所述智能卡的当前复制次数。Set the number of times the smart card corresponding to the feature code is allowed to be copied and the current number of copies of the smart card.
可选地,还包括:Optionally, also include:
接收所述移动终端反馈的成功复制所述智能卡或删除所述智能卡的信息;receiving the information of successfully copying the smart card or deleting the smart card fed back by the mobile terminal;
更新所述智能卡的当前复制次数。The current number of copies of the smart card is updated.
可选地,所述确认所述移动终端是否满足复制条件,包括:Optionally, the confirming whether the mobile terminal satisfies the replication condition includes:
在预设的黑名单中查找所述特征码;Find the feature code in the preset blacklist;
智能当在所述黑名单中找到所述特征码时,则禁止所述移动终端复制所述智能卡。When the feature code is found in the blacklist, the mobile terminal is prohibited from duplicating the smart card.
根据本公开实施例的第二方面,提供一种复制智能卡的装置,应用于服务器,所述装置包括:According to a second aspect of the embodiments of the present disclosure, there is provided an apparatus for duplicating a smart card, which is applied to a server, and the apparatus includes:
第一接收模块,被配置为接收移动终端发送的对所述智能卡的复制请求;a first receiving module, configured to receive a copy request to the smart card sent by the mobile terminal;
获取模块,被配置为根据所述复制请求,获取所述智能卡的特征码;其中,所述特征码为利用算法和所述智能卡的数据计算得出;an acquisition module, configured to acquire the feature code of the smart card according to the copy request; wherein, the feature code is calculated by using an algorithm and the data of the smart card;
第一确认模块,被配置为根据所述特征码,确认所述移动终端是否满足复制条件;以及a first confirmation module, configured to confirm whether the mobile terminal satisfies the copy condition according to the feature code; and
反馈模块,被配置为将确认结果反馈给所述移动终端,以使所述移动终端根据所述确认结果复制或终止复制所述智能卡。The feedback module is configured to feed back the confirmation result to the mobile terminal, so that the mobile terminal duplicates or terminates duplicating the smart card according to the confirmation result.
可选地,所述获取模块包括:Optionally, the obtaining module includes:
接收子模块,被配置为接收所述移动终端发送的所述智能卡的数据;以及a receiving submodule, configured to receive the data of the smart card sent by the mobile terminal; and
计算子模块,被配置为利用算法和所述智能卡的数据计算得出所述特征码。The calculation sub-module is configured to calculate and obtain the feature code by using an algorithm and the data of the smart card.
可选地,所述获取模块还被配置为获取所述复制请求中包括的所述特征码。Optionally, the obtaining module is further configured to obtain the feature code included in the copy request.
可选地,所述第一确认模块包括:Optionally, the first confirmation module includes:
第一查找子模块,被配置为根据所述特征码,查找所述智能卡允许被复制的次数以及所述智能卡的当前复制次数;a first search sub-module, configured to search the number of times the smart card is allowed to be copied and the current number of times of copying of the smart card according to the feature code;
第一允许子模块,被配置为当所述当前复制次数小于所述智能卡允许被复制的次数时,则允许所述移动终端复制所述智能卡;以及a first allowing sub-module, configured to allow the mobile terminal to copy the smart card when the current number of copies is less than the number of times the smart card is allowed to be copied; and
第一禁止子模块,被配置为当所述当前复制次数不小于所述智能卡允许被复制的次数时,则禁止所述移动终端复制所述智能卡。The first prohibition submodule is configured to prohibit the mobile terminal from copying the smart card when the current number of times of copying is not less than the number of times the smart card is allowed to be copied.
可选地,所述第一确认模块包括:Optionally, the first confirmation module includes:
确认子模块,被配置为确认所述服务器没有预存所述特征码;A confirmation submodule, configured to confirm that the server does not pre-store the feature code;
存储子模块,被配置为存储所述特征码;以及a storage submodule configured to store the signature; and
设置子模块,被配置为设置所述特征码对应的智能卡允许被复制的次数以及所述智能卡的当前复制次数。The setting sub-module is configured to set the allowed number of times of copying of the smart card corresponding to the feature code and the current number of times of copying of the smart card.
可选地,还包括:Optionally, also include:
第二接收模块,被配置为接收所述移动终端反馈的成功复制所述智能卡或删除所述智能卡的信息;以及a second receiving module, configured to receive the information about successfully copying the smart card or deleting the smart card fed back by the mobile terminal; and
更新模块,被配置为更新所述智能卡的当前复制次数。An update module configured to update the current number of copies of the smart card.
可选地,所述第一确认模块包括:Optionally, the first confirmation module includes:
第二查找子模块,被配置为在预设的黑名单中查找所述特征码;智能以及The second search sub-module is configured to search for the feature code in a preset blacklist; intelligent and
第二禁止子模块,被配置为当在所述黑名单中找到所述特征码时,则禁止所述移动终端复制所述智能卡。The second prohibition sub-module is configured to prohibit the mobile terminal from copying the smart card when the feature code is found in the blacklist.
根据本公开实施例的第三方面,提供一种复制智能卡的装置,包括:According to a third aspect of the embodiments of the present disclosure, an apparatus for duplicating a smart card is provided, including:
处理器;processor;
用于存储处理器可执行指令的存储器;memory for storing processor-executable instructions;
其中,所述处理器被配置为:wherein the processor is configured to:
接收移动终端发送的对所述智能卡的复制请求;receiving a copy request to the smart card sent by the mobile terminal;
根据所述复制请求,获取所述智能卡的特征码;其中,所述特征码为利用算法和所述智能卡的数据计算得出;Obtain the feature code of the smart card according to the copy request; wherein, the feature code is calculated by using an algorithm and the data of the smart card;
根据所述特征码,确认所述智能卡是否满足复制条件;According to the feature code, confirm whether the smart card satisfies the copy condition;
将确认结果反馈给所述移动终端,以使所述移动终端根据所述确认结果复制或终止复制所述智能卡。The confirmation result is fed back to the mobile terminal, so that the mobile terminal duplicates or terminates duplicating the smart card according to the confirmation result.
根据本公开实施例的第四方面,提供一种计算机可读存储介质,其上存储有计算机程序指令,该程序指令被处理器执行时实现本公开第一方面所提供的复制智能卡的方法的步骤。According to a fourth aspect of the embodiments of the present disclosure, there is provided a computer-readable storage medium on which computer program instructions are stored, and when the program instructions are executed by a processor, implement the steps of the method for duplicating a smart card provided in the first aspect of the present disclosure .
本公开的实施例提供的技术方案可以包括以下有益效果:The technical solutions provided by the embodiments of the present disclosure may include the following beneficial effects:
采用上述复制智能卡的方法,通过在服务器中设置智能卡的复制条件,避免了所述智能卡被滥用或恶意复制的情况,解决了相关技术中智能卡容易被复制的技术问题,提升了智能卡复制业务的风险控制能力;同时,通过特征码来识别智能卡,服务器可以不需要保存智能卡的数据,避免泄露了用户的隐私数据。By adopting the above method for duplicating a smart card, by setting the duplication conditions of the smart card in the server, the situation that the smart card is abused or maliciously duplicated is avoided, the technical problem that the smart card is easily duplicated in the related art is solved, and the risk of the smart card duplication business is improved. At the same time, by identifying the smart card through the feature code, the server does not need to save the data of the smart card, so as to avoid leaking the user's private data.
本公开的其他特征和优点将在随后的具体实施方式部分予以详细说明。Other features and advantages of the present disclosure will be described in detail in the detailed description that follows.
附图说明Description of drawings
附图是用来提供对本公开的进一步理解,并且构成说明书的一部分,与下面的具体实施方式一起用于解释本公开,但并不构成对本公开的限制。在附图中:The accompanying drawings are used to provide a further understanding of the present disclosure, and constitute a part of the specification, and together with the following detailed description, are used to explain the present disclosure, but not to limit the present disclosure. In the attached image:
图1是根据一示例性实施例示出的一种复制智能卡的方法的流程图。Fig. 1 is a flow chart of a method for duplicating a smart card according to an exemplary embodiment.
图2是本公开根据一示例性实施例示出的一种实施环境的示意图。FIG. 2 is a schematic diagram of an implementation environment of the present disclosure according to an exemplary embodiment.
图3是根据另一示例性实施例示出的一种复制智能卡的方法的流程图。Fig. 3 is a flow chart of a method for duplicating a smart card according to another exemplary embodiment.
图4是根据一示例性实施例示出的一种复制智能卡的装置的框图。Fig. 4 is a block diagram of an apparatus for duplicating a smart card according to an exemplary embodiment.
图5是根据一示例性实施例示出的一种复制智能卡的装置的获取模块的框图。Fig. 5 is a block diagram of an acquisition module of an apparatus for duplicating a smart card according to an exemplary embodiment.
图6是根据一示例性实施例示出的一种复制智能卡的装置的第一确认模块的框图。Fig. 6 is a block diagram of a first confirmation module of an apparatus for duplicating a smart card according to an exemplary embodiment.
图7是根据另一示例性实施例示出的一种复制智能卡的装置的第一确认模块的框图。Fig. 7 is a block diagram of a first confirmation module of an apparatus for duplicating a smart card according to another exemplary embodiment.
图8是根据另一示例性实施例示出的一种复制智能卡的装置的框图。Fig. 8 is a block diagram of an apparatus for duplicating a smart card according to another exemplary embodiment.
图9是根据另一示例性实施例示出的一种复制智能卡的装置的第一确认模块的框图。Fig. 9 is a block diagram of a first confirmation module of an apparatus for duplicating a smart card according to another exemplary embodiment.
图10是根据一示例性实施例示出的一种复制智能卡的装置的框图。Fig. 10 is a block diagram of an apparatus for duplicating a smart card according to an exemplary embodiment.
具体实施方式Detailed ways
这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本公开相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本公开的一些方面相一致的装置和方法的例子。Exemplary embodiments will be described in detail herein, examples of which are illustrated in the accompanying drawings. Where the following description refers to the drawings, the same numerals in different drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the illustrative examples below are not intended to represent all implementations consistent with this disclosure. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present disclosure as recited in the appended claims.
图2是根据一示例性实施例示出的一种实施环境的示意图。如图1所示,该实施环境可以包括智能卡10、移动终端20和服务器30。该移动终端20可以是通过移动通信网络访问服务器30的用户设备,例如智能手机、平板电脑、笔记本电脑等用户设备,需要特别说明的是,该移动终端20具有读取智能卡10数据的功能模块,比如所述功能模块可以是NFC模块。图2以移动终端20是智能手机来示意。其中,所述智能卡10可以是非接触式IC卡,也可以是其它类型的智能卡,只要移动终端20能够通过对应的功能模块读取智能卡10的数据即可。Fig. 2 is a schematic diagram of an implementation environment according to an exemplary embodiment. As shown in FIG. 1 , the implementation environment may include a
图1是根据一示例性实施例示出的一种复制非接触式IC卡的方法的流程图,以解决相关技术中非接触式IC卡容易被复制的技术问题。本实施例示出的该网络连接方法可以应用于如图2所示的服务器,如图1所示,该方法可以包括以下步骤。FIG. 1 is a flow chart of a method for copying a contactless IC card according to an exemplary embodiment, so as to solve the technical problem that the contactless IC card is easily copied in the related art. The network connection method shown in this embodiment may be applied to the server shown in FIG. 2 , and as shown in FIG. 1 , the method may include the following steps.
步骤S11,移动终端向服务器发送对所述智能卡的复制请求。Step S11, the mobile terminal sends a copy request for the smart card to the server.
所述移动终端可以在读取了智能卡的数据后向所述服务器发送复制请求。The mobile terminal may send a copy request to the server after reading the data of the smart card.
步骤S12,服务器根据所述复制请求,获取所述智能卡的特征码;其中,所述特征码为利用算法和所述智能卡的数据计算得出。Step S12, the server obtains the feature code of the smart card according to the copy request; wherein, the feature code is calculated by using an algorithm and the data of the smart card.
特征码用来识别智能卡,不同的智能卡具有不同的特征码。通过特征码来识别智能卡,服务器可以不需要保存智能卡的数据,避免泄露了用户的隐私数据。所述特征码可以是通过以下两种方式获取:The feature code is used to identify the smart card, and different smart cards have different feature codes. By identifying the smart card by the feature code, the server does not need to save the data of the smart card, so as to avoid leaking the user's private data. The feature code can be obtained in the following two ways:
在一实施例中,所述移动终端在读取了智能卡的数据后向所述服务器发送该数据。可选地,所述智能卡的数据可以包括在所述复制请求中。所述服务器在可以在接收所述移动终端发送的所述智能卡的数据后,根据预设的算法(比如哈希算法)计算该数据对应的特征码。In one embodiment, after reading the data of the smart card, the mobile terminal sends the data to the server. Optionally, the data of the smart card may be included in the copy request. After receiving the data of the smart card sent by the mobile terminal, the server may calculate a feature code corresponding to the data according to a preset algorithm (eg, a hash algorithm).
在另一实施例中,所述移动终端在读取了智能卡的数据后,根据预设的算法(比如哈希算法)计算该数据对应的特征码,然后将该特征码发送给服务器。可选地,所述特征码可以包括在所述复制请求中。In another embodiment, after reading the data of the smart card, the mobile terminal calculates a feature code corresponding to the data according to a preset algorithm (such as a hash algorithm), and then sends the feature code to the server. Optionally, the feature code may be included in the copy request.
步骤S13,服务器根据所述特征码,确认所述智能卡是否满足复制条件。Step S13, the server confirms whether the smart card satisfies the copy condition according to the feature code.
其中,所述复制条件可以是:在服务器中预设黑名单,所述黑名单可以记录着不允许复制的智能卡对应的特征码;服务器通过在黑名单中查找是否存在步骤S12中获取的特征码,当在所述黑名单中没有找到该特征码时,即确认结果是所述移动终端满足复制条件,则允许所述移动终端复制所述智能卡;当在所述黑名单中找到所述特征码时,即确认结果是所述移动终端不满足复制条件,则禁止所述移动终端复制所述智能卡。可选地,在所述黑名单中没有找到该特征码时,还可以继续增加其他的复制条件,比如该智能卡允许被复制的次数等。Wherein, the copying condition may be: a blacklist is preset in the server, and the blacklist may record the feature codes corresponding to the smart cards that are not allowed to be copied; the server searches the blacklist whether there is the feature code obtained in step S12 , when the feature code is not found in the blacklist, that is, the confirmation result is that the mobile terminal satisfies the copy conditions, then the mobile terminal is allowed to copy the smart card; when the feature code is found in the blacklist When it is confirmed that the mobile terminal does not meet the copying conditions, the mobile terminal is prohibited from copying the smart card. Optionally, when the feature code is not found in the blacklist, other copying conditions may also be added, such as the number of times the smart card is allowed to be copied.
步骤S14,服务器将确认结果反馈给所述移动终端。Step S14, the server feeds back the confirmation result to the mobile terminal.
步骤S15,移动终端根据所述确认结果复制或终止复制所述智能卡。Step S15, the mobile terminal copies or terminates copying the smart card according to the confirmation result.
当所述确认结果是所述移动终端满足复制条件,则所述移动终端复制所述智能卡。当所述确认结果是所述移动终端不满足复制条件,则所述移动终端终止复制所述智能卡。When the confirmation result is that the mobile terminal satisfies the copy condition, the mobile terminal copies the smart card. When the confirmation result is that the mobile terminal does not meet the duplication condition, the mobile terminal terminates duplicating the smart card.
采用上述复制智能卡的方法,通过在服务器中设置智能卡的复制条件,避免了所述智能卡被滥用或恶意复制的情况,解决了相关技术中智能卡容易被复制的技术问题,提升了智能卡复制业务的风险控制能力;同时,通过特征码来识别智能卡,服务器可以不需要保存智能卡的数据,避免泄露了用户的隐私数据。By adopting the above method for duplicating a smart card, by setting the duplication conditions of the smart card in the server, the situation that the smart card is abused or maliciously duplicated is avoided, the technical problem that the smart card is easily duplicated in the related art is solved, and the risk of the smart card duplication business is improved. At the same time, by identifying the smart card through the feature code, the server does not need to save the data of the smart card, so as to avoid leaking the user's private data.
图3是根据另一示例性实施例示出的一种复制智能卡的方法的流程图。本实施例示出的该网络连接方法可以应用于如图2所示的服务器,如图3所示,该方法可以包括以下步骤。Fig. 3 is a flow chart of a method for duplicating a smart card according to another exemplary embodiment. The network connection method shown in this embodiment may be applied to the server shown in FIG. 2 , and as shown in FIG. 3 , the method may include the following steps.
步骤S31,移动终端向服务器发送对所述智能卡的复制请求。Step S31, the mobile terminal sends a copy request for the smart card to the server.
步骤S32,服务器根据所述复制请求,获取所述智能卡的特征码;其中,所述特征码为利用算法和所述智能卡的数据计算得出。Step S32, the server obtains the feature code of the smart card according to the copy request; wherein, the feature code is calculated by using an algorithm and the data of the smart card.
步骤S33,服务器根据所述特征码,确认所述服务器预存有所述特征码以及所述特征码对应的智能卡允许被复制的次数以及所述智能卡的当前复制次数。Step S33, the server confirms that the server pre-stores the feature code, the allowed number of times of copying of the smart card corresponding to the feature code, and the current number of times of copying the smart card according to the feature code.
可选地,当所述服务器没有预存所述特征码时,则所述服务器存储所述特征码,用户可以同时设置所述特征码对应的智能卡允许被复制的次数以及所述智能卡的当前复制次数。Optionally, when the server does not pre-store the feature code, the server stores the feature code, and the user can simultaneously set the number of times the smart card corresponding to the feature code is allowed to be copied and the current number of copies of the smart card. .
步骤S34,服务器根据所述特征码,确认所述智能卡是否满足复制条件。Step S34, the server confirms whether the smart card satisfies the copy condition according to the feature code.
其中,所述复制条件可以是:所述特征码对应的智能卡允许被复制的次数以及所述智能卡的当前复制次数;服务器根据所述特征码,查找对应的所述智能卡允许被复制的次数和智能卡的当前复制次数;当所述当前复制次数小于所述智能卡允许被复制的次数时,即确认结果是所述移动终端满足复制条件,则允许所述移动终端复制所述智能卡;当所述当前复制次数不小于所述智能卡允许被复制的次数时,即确认结果是所述移动终端不满足复制条件,则禁止所述移动终端复制所述智能卡。The copying condition may be: the number of times the smart card corresponding to the feature code is allowed to be copied and the current number of copies of the smart card; the server searches for the corresponding number of times the smart card is allowed to be copied and the number of times the smart card is allowed to be copied according to the feature code. When the current number of copies is less than the number of times the smart card is allowed to be copied, that is, the confirmation result is that the mobile terminal satisfies the copy conditions, then the mobile terminal is allowed to copy the smart card; when the current copy number is When the number of times is not less than the number of times the smart card is allowed to be copied, that is, the confirmation result is that the mobile terminal does not meet the copying conditions, then the mobile terminal is prohibited from copying the smart card.
步骤S35,服务器将确认结果反馈给所述移动终端。Step S35, the server feeds back the confirmation result to the mobile terminal.
步骤S36,移动终端根据所述确认结果复制或终止复制所述智能卡。Step S36, the mobile terminal copies or terminates copying the smart card according to the confirmation result.
步骤S37,移动终端成功复制所述智能卡或删除所述智能卡。Step S37, the mobile terminal successfully copies the smart card or deletes the smart card.
步骤S38,移动终端将成功复制或删除所述智能卡的信息反馈给服务器。Step S38, the mobile terminal feeds back the information that the smart card is successfully copied or deleted to the server.
步骤S39,服务器更新所述智能卡的当前复制次数。Step S39, the server updates the current number of replications of the smart card.
其中,用户可以主动从所述移动终端中删除所述智能卡,即删除复制的所述智能卡的数据。比如,当某一用户从移动终端中删除复制的所述智能卡的数据后,服务器将所述智能卡的当前复制次数减去一次;当某一移动终端成功复制的所述智能卡的数据后,服务器将所述智能卡的当前复制次数增加一次。The user can actively delete the smart card from the mobile terminal, that is, delete the copied data of the smart card. For example, after a certain user deletes the copied data of the smart card from the mobile terminal, the server subtracts the current number of copies of the smart card by one; when a mobile terminal successfully copies the data of the smart card, the server will The current number of copies of the smart card is incremented by one.
举例来讲,假设智能卡为门禁卡,用户希望家里的四口人都能使用门禁卡,此时,用户可以设置门禁卡允许被复制的次数为4次,这样家里的人只要使用自己的手机复制所述门禁卡,即相当于每人手持一张门禁卡。同时,由于该门禁卡的次数是4次,当用户家里的四口人的手机均复制成功后,则可以限制其他人员继续复制门禁卡,避免了家里的门禁卡被陌生人恶意复制的风险。For example, assuming that the smart card is an access control card, the user wants four members of the family to use the access control card. At this time, the user can set the number of times the access control card is allowed to be copied to 4 times, so that the family members only need to use their own mobile phones to copy the access control card. The access control card is equivalent to holding one access control card per person. At the same time, since the number of access control cards is 4 times, when the mobile phones of the four members of the user's home are successfully copied, other people can be restricted from continuing to copy the access control cards, avoiding the risk of malicious copying of the access control cards at home by strangers.
采用上述复制智能卡的方法,通过设置在服务器中设置智能卡的复制次数,避免了所述智能卡被随意复制的情况,进一步提升了智能卡复制业务的风险控制能力。By adopting the above method for duplicating a smart card, by setting the number of times of duplication of the smart card in the server, the situation that the smart card is randomly duplicated is avoided, and the risk control capability of the duplication business of the smart card is further improved.
图4是根据一示例性实施例示出的一种复制智能卡的装置的框图。该装置可以通过软件、硬件或者两者的结合实现成为服务器的部分或者全部。其中,该复制智能卡的装置400也可以配置于如图2所示的服务器中。如图4所示,该装置400可以包括:Fig. 4 is a block diagram of an apparatus for duplicating a smart card according to an exemplary embodiment. The apparatus can be implemented as part or all of the server through software, hardware or a combination of the two. Wherein, the
第一接收模块401,被配置为接收移动终端发送的对所述智能卡的复制请求;The
获取模块402,被配置为根据所述复制请求,获取所述智能卡的特征码;其中,所述特征码为利用算法和所述智能卡的数据计算得出;The obtaining
第一确认模块403,被配置为根据所述特征码,确认所述智能卡是否满足复制条件;以及a
反馈模块404,被配置为将确认结果反馈给所述移动终端,以使所述移动终端根据所述确认结果复制或终止复制所述智能卡。The
可选地,如图5所示,所述获取模块402可以包括:Optionally, as shown in FIG. 5 , the obtaining
接收子模块4021,被配置为接收所述移动终端发送的所述智能卡的数据;以及a receiving sub-module 4021, configured to receive the data of the smart card sent by the mobile terminal; and
计算子模块4022,被配置为利用算法和所述智能卡的数据计算得出所述特征码。The
可选地,所述获取模块402还被配置为获取所述复制请求中包括的所述特征码。Optionally, the obtaining
可选地,如图6所示,所述第一确认模块403可以包括:Optionally, as shown in FIG. 6 , the
第一查找子模块4031,被配置为根据所述特征码,查找所述智能卡允许被复制的次数以及所述智能卡的当前复制次数;The
第一允许子模块4032,被配置为当所述当前复制次数小于所述智能卡允许被复制的次数时,则允许所述移动终端复制所述智能卡;以及a first allowing sub-module 4032, configured to allow the mobile terminal to copy the smart card when the current number of times of copying is less than the number of times the smart card is allowed to be copied; and
第一禁止子模块4033,被配置为当所述当前复制次数不小于所述智能卡允许被复制的次数时,则禁止所述移动终端复制所述智能卡。The
可选地,如图7所示,所述第一确认模块403可以包括:Optionally, as shown in FIG. 7 , the
确认子模块4037,被配置为确认所述服务器没有预存所述特征码;
存储子模块4038,被配置为存储所述特征码;以及a
设置子模块4039,被配置为设置所述特征码对应的智能卡允许被复制的次数以及所述智能卡的当前复制次数。The setting sub-module 4039 is configured to set the number of times the smart card corresponding to the feature code is allowed to be copied and the current number of times of copying the smart card.
可选地,如图8所示,该装置400还可以包括:Optionally, as shown in FIG. 8 , the
第二接收模块409,被配置为接收所述移动终端发送的反馈的成功复制所述智能卡或删除所述智能卡的信息;以及The
更新模块410,被配置为更新所述智能卡的当前复制次数。The updating
可选地,如图9所示,所述第一确认模块403可以包括:Optionally, as shown in FIG. 9 , the
第二查找子模块4034,被配置为在预设的黑名单中查找所述特征码;以及The
第二禁止子模块4036,被配置为当在所述黑名单中找到所述特征码时,则禁止所述移动终端复制所述智能卡。The
图10是根据一示例性实施例示出的一种用于复制智能卡的装置1900的框图。例如,装置1900可以被提供为一服务器。参照图10,装置1900包括处理组件1922,其进一步包括一个或多个处理器,以及由存储器1932所代表的存储器资源,用于存储可由处理组件1922的执行的指令,例如应用程序。存储器1932中存储的应用程序可以包括一个或一个以上的每一个对应于一组指令的模块。此外,处理组件1922被配置为执行指令,以执行上述复制智能卡的方法。FIG. 10 is a block diagram of an
关于上述实施例中的装置,其中各个模块执行操作的具体方式已经在有关该方法的实施例中进行了详细描述,此处将不做详细阐述说明。Regarding the apparatus in the above-mentioned embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be described in detail here.
装置1900还可以包括一个电源组件1926被配置为执行装置1900的电源管理,一个有线或无线网络接口1950被配置为将装置1900连接到网络,和一个输入输出(I/O)接口1958。装置1900可以操作基于存储在存储器1932的操作系统,例如Windows ServerTM,MacOS XTM,UnixTM,LinuxTM,FreeBSDTM或类似。The
在示例性实施例中,还提供一种计算机可读存储介质,其上存储有计算机程序指令,该程序指令被处理器执行上述复制智能卡的方法的步骤。In an exemplary embodiment, there is also provided a computer-readable storage medium having computer program instructions stored thereon, the program instructions being executed by a processor to perform the steps of the above method for duplicating a smart card.
本领域技术人员在考虑说明书及实践本公开后,将容易想到本公开的其它实施方案。本申请旨在涵盖本公开的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本公开的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本公开的真正范围和精神由下面的权利要求指出。Other embodiments of the present disclosure will readily occur to those skilled in the art upon consideration of the specification and practice of the present disclosure. This application is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or techniques in the technical field not disclosed by the present disclosure . The specification and examples are to be regarded as exemplary only, with the true scope and spirit of the disclosure being indicated by the following claims.
应当理解的是,本公开并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本公开的范围仅由所附的权利要求来限制。It is to be understood that the present disclosure is not limited to the precise structures described above and illustrated in the accompanying drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201711269208.3ACN108021967B (en) | 2017-12-05 | 2017-12-05 | Method and device for copying intelligent card and computer readable storage medium |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201711269208.3ACN108021967B (en) | 2017-12-05 | 2017-12-05 | Method and device for copying intelligent card and computer readable storage medium |
| Publication Number | Publication Date |
|---|---|
| CN108021967A CN108021967A (en) | 2018-05-11 |
| CN108021967Btrue CN108021967B (en) | 2022-08-26 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201711269208.3AActiveCN108021967B (en) | 2017-12-05 | 2017-12-05 | Method and device for copying intelligent card and computer readable storage medium |
| Country | Link |
|---|---|
| CN (1) | CN108021967B (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN109885540B (en)* | 2019-02-12 | 2020-10-23 | 北京北信源信息安全技术有限公司 | File security monitoring method and device and computer |
| CN114172544B (en)* | 2021-10-20 | 2022-09-27 | 荣耀终端有限公司 | A method, electronic device and storage medium for duplicating a smart card |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2004318564A (en)* | 2003-04-17 | 2004-11-11 | Dainippon Printing Co Ltd | IC card and IC card program |
| CA2636304A1 (en)* | 2007-06-27 | 2008-12-27 | Research In Motion Limited | System and method for improving smart card reader reconnections |
| JP2014071783A (en)* | 2012-09-29 | 2014-04-21 | Idea Co Ltd | Information processing system |
| CN104618330A (en)* | 2014-12-26 | 2015-05-13 | 小米科技有限责任公司 | Business processing method and device and terminal |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2001306987A (en)* | 2000-04-25 | 2001-11-02 | Nec Corp | Card use approval method, card settlement system and card settlement device using portable telephone set |
| GB0220907D0 (en)* | 2002-09-10 | 2002-10-16 | Ingenia Holdings Ltd | Security device and system |
| CN2751360Y (en)* | 2004-09-08 | 2006-01-11 | 北京融通高科科技发展有限公司 | A CPU card meter |
| KR100798927B1 (en)* | 2006-12-06 | 2008-01-29 | 한국전자통신연구원 | Data storage device with smart card based copy protection, its data storage and transmission method |
| CN100547606C (en)* | 2007-08-30 | 2009-10-07 | 樊明延 | Method and device for enhancing information security and compatibility of active radio frequency identification system |
| US8052060B2 (en)* | 2008-09-25 | 2011-11-08 | Utc Fire & Security Americas Corporation, Inc. | Physical access control system with smartcard and methods of operating |
| WO2010063287A1 (en)* | 2008-12-06 | 2010-06-10 | Br-Technic V/Henrik Risbo Jeppesen | Radio frequency identification tag |
| CN102136079B (en)* | 2011-03-07 | 2014-08-20 | 中兴通讯股份有限公司 | Dynamic authentication method between reader and tag card and implementing device thereof |
| CN103854042B (en)* | 2014-03-14 | 2017-01-25 | 智坤(江苏)半导体有限公司 | RFID label reader-writer authentication and label anti-cloning method |
| CN105825134A (en)* | 2016-03-16 | 2016-08-03 | 中国联合网络通信集团有限公司 | Intelligent card processing method, intelligent card management server and terminal |
| CN107341534B (en)* | 2017-07-18 | 2020-11-24 | 南京唯捷豪信息科技有限公司 | Electronic card anti-copy method and device and management server |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2004318564A (en)* | 2003-04-17 | 2004-11-11 | Dainippon Printing Co Ltd | IC card and IC card program |
| CA2636304A1 (en)* | 2007-06-27 | 2008-12-27 | Research In Motion Limited | System and method for improving smart card reader reconnections |
| JP2014071783A (en)* | 2012-09-29 | 2014-04-21 | Idea Co Ltd | Information processing system |
| CN104618330A (en)* | 2014-12-26 | 2015-05-13 | 小米科技有限责任公司 | Business processing method and device and terminal |
| Title |
|---|
| IC卡技术;杨肇敏等;《电脑与信用卡》;19981115(第11期);22-27* |
| Publication number | Publication date |
|---|---|
| CN108021967A (en) | 2018-05-11 |
| Publication | Publication Date | Title |
|---|---|---|
| US8656454B2 (en) | Data store including a file location attribute | |
| EP3777082B1 (en) | Trusted platform module-based prepaid access token for commercial iot online services | |
| JP6412140B2 (en) | Make sure to allow access to remote resources | |
| JP5494496B2 (en) | Thin client-server system, thin client terminal, data management method, and computer-readable recording medium | |
| EP2966584B1 (en) | Information processing system, information processing apparatus, method of administrating license, and program | |
| WO2017143879A1 (en) | File permission management method and device | |
| US8190636B2 (en) | Method, apparatus and computer program product for providing object privilege modification | |
| US10021213B2 (en) | Systems and methods for adaptive cloning of mobile devices | |
| KR102125042B1 (en) | Node device constituting a block-chain network and an operation method of the node device | |
| US20230076870A1 (en) | Protections for sensitive content items in a content management system | |
| CN106534102A (en) | Device access method and device and electronic device | |
| CN115600236A (en) | Access control method and device, device, storage medium | |
| CN106599115B (en) | Data protection method, device and terminal | |
| CN108021967B (en) | Method and device for copying intelligent card and computer readable storage medium | |
| CN108683672B (en) | Authority management method and device | |
| JP2019054363A (en) | Server device, secret dispersion management system and secret dispersion management device | |
| US20160028718A1 (en) | Information processing apparatus, information processing method, and non-transitory computer readable medium | |
| JP5056481B2 (en) | Data management method and apparatus | |
| JP6045104B2 (en) | Data erasing program, data erasing method, computer having data erasing function and data erasing management server | |
| CN108664821B (en) | Card copying method, device and storage medium | |
| CN114519034A (en) | File operation method and related equipment | |
| CN108063771B (en) | Method and device for monitoring encrypted compressed file | |
| JP2016167242A (en) | Information terminal, information management system and control program of information terminal | |
| CN116822966B (en) | Risk data management methods and systems suitable for enterprises | |
| JP2012252535A (en) | Content management method, device, and program |
| 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 |