CN104301886A - A short message reading method and system, terminal, and wearable device - Google Patents
A short message reading method and system, terminal, and wearable device Download PDFInfo
- Publication number
- CN104301886A CN104301886A CN201410564209.0A CN201410564209A CN104301886A CN 104301886 A CN104301886 A CN 104301886A CN 201410564209 A CN201410564209 A CN 201410564209A CN 104301886 A CN104301886 A CN 104301886A
- Authority
- CN
- China
- Prior art keywords
- wearable device
- terminal
- key
- authentication information
- note
- 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.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W12/00—Security arrangements; Authentication; Protecting privacy or anonymity
- H04W12/50—Secure pairing of devices
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W12/00—Security arrangements; Authentication; Protecting privacy or anonymity
- H04W12/02—Protecting privacy or anonymity, e.g. protecting personally identifiable information [PII]
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/30—Authentication, i.e. establishing the identity or authorisation of security principals
- G06F21/31—User authentication
- G06F21/34—User authentication involving the use of external additional devices, e.g. dongles or smart cards
- G06F21/35—User authentication involving the use of external additional devices, e.g. dongles or smart cards communicating wirelessly
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W12/00—Security arrangements; Authentication; Protecting privacy or anonymity
- H04W12/30—Security of mobile devices; Security of mobile applications
- H04W12/33—Security of mobile devices; Security of mobile applications using wearable devices, e.g. using a smartwatch or smart-glasses
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/12—Messaging; Mailboxes; Announcements
- H04W4/14—Short messaging services, e.g. short message services [SMS] or unstructured supplementary service data [USSD]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W84/00—Network topologies
- H04W84/18—Self-organising networks, e.g. ad-hoc networks or sensor networks
Landscapes
- Engineering & Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
Description
技术领域technical field
本发明涉及通信领域,具体涉及一种短信读取方法及系统、终端、可穿戴设备。The present invention relates to the communication field, in particular to a short message reading method and system, a terminal, and a wearable device.
背景技术Background technique
短信服务以其简单方便的编辑方式和广大的使用范围受到广大用户的欢迎,也被其他第三方应用所采用,如一些网站的推送短信,通知短信。例如,12306的订票通知也是通过短信来发送的。在短信业务被广泛应用的同时,短信的私密性以及安全性也需要得到保障。Short message service is welcomed by the majority of users for its simple and convenient editing method and wide range of use, and is also adopted by other third-party applications, such as push text messages and notification text messages of some websites. For example, the booking notification of 12306 is also sent by SMS. While the short message service is widely used, the privacy and security of the short message also need to be guaranteed.
以手机短信验证码为例,手机短信验证是企业给消费者(用户)的一个凭证,通过手机短信内容的验证码来验证身份。目前普遍用于各大网上交易系统(如网上银行、快捷支付等)、以及网站注册、找回密码等安全相关的验证。Take the SMS verification code as an example. The SMS verification is a certificate for the enterprise to the consumer (user), and the identity is verified through the verification code of the SMS content. At present, it is widely used in major online transaction systems (such as online banking, fast payment, etc.), as well as security-related verifications such as website registration and password retrieval.
当前验证码校验方式是用户通过填写自己的手机号码,点击“获取验证码”,网站或者第三方应用程序按规则生成短信验证码,并将用户的手机号码和验证码内容通过短信验证接口发送到验证码短信平台,验证码短信平台对经过一系列的判断并通过之后(账户余额、内容是否合规、手机号码是否合规、手机号码所属的运营商),将验证码提交到相应运营商的服务器,运营商将验证码短信下发到用户的手机。The current verification code verification method is that the user fills in his mobile phone number, clicks "Get Verification Code", the website or third-party application generates a SMS verification code according to the rules, and sends the user's mobile phone number and verification code content through the SMS verification interface Go to the verification code SMS platform, and the verification code SMS platform will submit the verification code to the corresponding operator after a series of judgments (account balance, whether the content is compliant, whether the mobile phone number is compliant, and the operator to which the mobile phone number belongs) server, and the operator sends a text message with the verification code to the user's mobile phone.
而手机接收到验证码短信后,以明文的方式展现在手机使用者面前,缺少进一步的用户身份校验。整个体系中,手机号码成为用户身份的唯一校验。虽然很多系统提供在输入校验码之后的其他身份验证过程(如输入密码、预留信息等),但如果其他非法使用者了解这些信息,一样无法避免被盗用的风险。而且很多系统有通过验证码找回密码的功能,使得验证码的地位高于其他密码,而当用户手机丢失、被盗或是SIM卡号被盗用时,不法分子可以通过SIM卡获取相关的验证码而对用户的各类账户进行验证、解绑等操作,使得用户的利益受到损害。目前,仅可以通过及时挂失手机号码的方式使得丢失的SIM卡无法收到验证码,但在挂失前无法避免此类情况的发生,无法规避手机验证码被非终端用户本人获取的风险,无法保证用户各类账户在验证码验证时的安全性。After the mobile phone receives the text message of the verification code, it is displayed in plain text in front of the mobile phone user, lacking further user identity verification. In the whole system, the mobile phone number becomes the only verification of the user's identity. Although many systems provide other identity verification processes (such as entering passwords, reserved information, etc.) after entering the verification code, if other illegal users understand the information, the risk of being stolen cannot be avoided. Moreover, many systems have the function of retrieving the password through the verification code, which makes the verification code higher than other passwords. When the user's mobile phone is lost, stolen or the SIM card number is stolen, criminals can obtain the relevant verification code through the SIM card. However, operations such as verification and unbinding of various accounts of users will damage the interests of users. At present, it is only possible to report the loss of the mobile phone number in time so that the lost SIM card cannot receive the verification code, but this kind of situation cannot be avoided before the loss is reported, and the risk of the mobile phone verification code being obtained by non-end users cannot be avoided, and there is no guarantee The security of various user accounts during verification code verification.
发明内容Contents of the invention
本发明需要解决的技术问题是提供一种短信读取方法及系统、终端、可穿戴设备,规避短信被非终端用户本人获取的风险,保护用户的利益不受损害。The technical problem to be solved by the present invention is to provide a short message reading method, system, terminal, and wearable device, so as to avoid the risk of short messages being acquired by non-terminal users and protect the interests of users from being damaged.
为了解决上述技术问题,本发明提供了一种短信读取方法,应用于终端侧,包括:In order to solve the above technical problems, the present invention provides a short message reading method, which is applied to the terminal side, including:
终端收到短信后,随机产生一密钥,对该短信加密;After receiving the SMS, the terminal randomly generates a key to encrypt the SMS;
所述终端将所述密钥和与所述终端绑定的可穿戴设备的认证信息发送至所述可穿戴设备进行认证;The terminal sends the key and the authentication information of the wearable device bound to the terminal to the wearable device for authentication;
所述终端接收到所述可穿戴设备返回的认证成功的消息,所述消息中携带有所述密钥;The terminal receives an authentication success message returned by the wearable device, and the message carries the key;
所述终端根据所述密钥对所述短信解密,并显示给用户。The terminal decrypts the short message according to the key, and displays it to the user.
进一步地,在终端收到短信之前,所述方法还包括:Further, before the terminal receives the short message, the method also includes:
所述终端与所述可穿戴设备进行近场通讯配对后,获取所述可穿戴设备的认证信息,与所述可穿戴设备绑定;所述认证信息包括:所述可穿戴设备的设备号。After the terminal is paired with the wearable device through near field communication, it acquires authentication information of the wearable device and binds it with the wearable device; the authentication information includes: the device number of the wearable device.
进一步地,所述短信为第三方平台发送的验证码短信;所述密钥的有效期大于所述验证码短信的有效期;所述方法还包括:Further, the short message is a verification code short message sent by a third-party platform; the validity period of the key is greater than the validity period of the verification code short message; the method also includes:
在所述终端收到短信后,判断所述短信是否为所述第三方平台发送的验证码短信,如果是,则随机产生一密钥,对该验证码短信加密。After the terminal receives the short message, it is judged whether the short message is a verification code short message sent by the third-party platform, and if so, a key is randomly generated to encrypt the verification code short message.
为了解决上述技术问题,本发明还提供了一种短信读取方法,应用于可穿戴设备侧,包括:In order to solve the above technical problems, the present invention also provides a short message reading method, which is applied to the wearable device side, including:
可穿戴设备接收到终端发送的密钥与可穿戴设备的认证信息;The wearable device receives the key and the authentication information of the wearable device sent by the terminal;
所述可穿戴设备根据所述认证信息对所述终端进行认证,认证通过后,将所述密钥返回至终端。The wearable device authenticates the terminal according to the authentication information, and returns the key to the terminal after passing the authentication.
进一步地,在所述可穿戴设备接收到终端发送的密钥与可穿戴设备的认证信息之前,所述方法还包括:Further, before the wearable device receives the key sent by the terminal and the authentication information of the wearable device, the method further includes:
所述可穿戴设备与所述终端进行近场通讯配对后,向所述终端发送所述可穿戴设备的认证信息,与所述终端绑定。After the wearable device is paired with the terminal through near field communication, it sends the authentication information of the wearable device to the terminal, and binds with the terminal.
进一步地,所述认证信息包括:所述可穿戴设备的设备号;所述可穿戴设备根据所述认证信息对所述终端进行认证,包括:Further, the authentication information includes: the device number of the wearable device; the wearable device authenticates the terminal according to the authentication information, including:
所述可穿戴设备判断所述可穿戴设备的设备号是否能与本机设备号匹配上,如果是,则认证通过,否则认证不通过。The wearable device judges whether the device number of the wearable device matches the local device number, and if yes, the authentication passes, otherwise the authentication fails.
为了解决上述技术问题,本发明还提供了一种终端,包括:In order to solve the above technical problems, the present invention also provides a terminal, including:
第一接收模块,用于接收短信,并发送至加密模块;The first receiving module is used to receive short messages and send them to the encryption module;
加密模块,用于在所述接收模块接收到所述短信后,随机产生一密钥,对该短信加密;An encryption module, configured to randomly generate a key to encrypt the short message after the receiving module receives the short message;
认证模块,用于将所述密钥和与所述终端绑定的可穿戴设备的认证信息发送至所述可穿戴设备进行认证;An authentication module, configured to send the key and the authentication information of the wearable device bound to the terminal to the wearable device for authentication;
第二接收模块,用于接收可穿戴设备返回的认证成功的消息,所述消息中携带有密钥;The second receiving module is configured to receive a successful authentication message returned by the wearable device, the message carrying a key;
解密模块,用于根据所述可穿戴设备返回的认证成功的消息中携带的密钥对所述短信解密,并显示给用户。A decryption module, configured to decrypt the short message according to the key carried in the successful authentication message returned by the wearable device, and display it to the user.
进一步地,还包括:Further, it also includes:
绑定模块,用于在所述接收模块接收到短信之前,与所述可穿戴设备进行近场通讯配对,获取所述可穿戴设备的认证信息,与所述可穿戴设备绑定;所述认证信息包括:所述可穿戴设备的设备号。The binding module is used to perform near-field communication pairing with the wearable device before the receiving module receives the short message, obtain the authentication information of the wearable device, and bind with the wearable device; the authentication The information includes: the device number of the wearable device.
进一步地,所述短信为第三方平台发送的验证码短信;所述密钥的有效期大于所述验证码短信的有效期;Further, the short message is a verification code short message sent by a third-party platform; the validity period of the key is greater than the validity period of the verification code short message;
所述加密模块,还用于在所述接收模块接收到所述短信后,判断所述短信是否为所述第三方平台发送的验证码短信,如果是,则随机产生一密钥,对该验证码短信加密。The encryption module is also used to judge whether the short message is a verification code short message sent by the third-party platform after the receiving module receives the short message, and if so, randomly generate a key to verify the short message Code SMS encryption.
为了解决上述技术问题,本发明还提供了一种可穿戴设备,包括:In order to solve the above technical problems, the present invention also provides a wearable device, including:
接收模块,用于接收终端发送的密钥与可穿戴设备的认证信息;The receiving module is used to receive the key sent by the terminal and the authentication information of the wearable device;
认证模块,用于根据所述认证信息对所述终端进行认证;an authentication module, configured to authenticate the terminal according to the authentication information;
发送模块,用于在认证通过后,将所述密钥返回至终端。The sending module is used to return the key to the terminal after the authentication is passed.
进一步地,还包括:Further, it also includes:
绑定模块,用于在所述接收模块接收到终端发送的密钥与可穿戴设备的认证信息之前,与所述终端进行近场通讯配对后,向所述终端发送所述可穿戴设备的认证信息,与所述终端绑定。A binding module, configured to send the authentication of the wearable device to the terminal after performing near-field communication pairing with the terminal before the receiving module receives the key and the authentication information of the wearable device sent by the terminal information, bound to the terminal.
进一步地,所述认证信息包括:所述可穿戴设备的设备号;Further, the authentication information includes: the device number of the wearable device;
所述认证模块,用于根据所述认证信息对所述终端进行认证,包括:The authentication module is configured to authenticate the terminal according to the authentication information, including:
判断所述可穿戴设备的设备号是否能与本机设备号匹配上,如果是,则认证通过,否则认证不通过。It is judged whether the device number of the wearable device can match the local device number, if yes, the authentication is passed, otherwise the authentication is not passed.
为了解决上述技术问题,本发明还提供了一种短信读取系统,包括:如上所述的终端和如上所述的可穿戴设备。In order to solve the above technical problems, the present invention also provides a text message reading system, including: the above-mentioned terminal and the above-mentioned wearable device.
与现有技术相比,本发明提供的短信读取方法及系统、终端、可穿戴设备,利用可穿戴设备与终端的交互性使得穿戴设备与终端之间能够进行数据传输,可穿戴设备可以对终端收到的短信进行二次验证,从而规避短信被非终端用户本人获取的风险,例如,提高用户各类账户在验证码验证时的安全性,保护用户的利益不受损害。Compared with the prior art, the text message reading method and system, terminal, and wearable device provided by the present invention utilize the interactivity between the wearable device and the terminal to enable data transmission between the wearable device and the terminal, and the wearable device can The SMS received by the terminal is verified twice, so as to avoid the risk of SMS being obtained by non-terminal users, for example, to improve the security of various accounts of users when verifying the verification code, and to protect the interests of users from damage.
附图说明Description of drawings
图1是实施例中应用于终端侧的短信读取方法的流程图;Fig. 1 is the flow chart of the short message reading method applied to the terminal side in the embodiment;
图2是实施例中应用于可穿戴设备侧的短信读取方法的流程图;Fig. 2 is the flow chart of the text message reading method applied to the wearable device side in the embodiment;
图3是实施例中终端的结构图;Fig. 3 is a structural diagram of a terminal in an embodiment;
图4是实施例中可穿戴设备的结构图。Fig. 4 is a structural diagram of the wearable device in the embodiment.
具体实施方式Detailed ways
为使本发明的目的、技术方案和优点更加清楚明白,下文中将结合附图对本发明的实施例进行详细说明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互任意组合。In order to make the purpose, technical solution and advantages of the present invention more clear, the embodiments of the present invention will be described in detail below in conjunction with the accompanying drawings. It should be noted that, in the case of no conflict, the embodiments in the present application and the features in the embodiments can be combined arbitrarily with each other.
实施例:Example:
如图1所示,本实施例提供了一种短信读取方法,应用于终端侧,包括以下步骤:As shown in Figure 1, this embodiment provides a method for reading short messages, which is applied to the terminal side and includes the following steps:
S101:终端收到短信后,随机产生一密钥,对该短信加密;S101: After receiving the short message, the terminal randomly generates a key to encrypt the short message;
优选地,该短信可以是第三方平台发送的验证码短信,每当接收到一条短信,则产生一密钥,之前的密钥被覆盖,失效。Preferably, the short message may be a verification code short message sent by a third-party platform. Whenever a short message is received, a key is generated, and the previous key is overwritten and becomes invalid.
其中,作为一种优选的方式,可以在终端设置一加密收件箱,将所述短信放入加密收件箱,以该密钥对加密箱加密,解密的时候也对该加密箱解密,使得用户能够读取加密收件箱中的短信。Wherein, as a preferred manner, an encrypted inbox can be set at the terminal, the short message is put into the encrypted inbox, the encrypted box is encrypted with the key, and the encrypted box is also decrypted during decryption, so that Users are able to read text messages in encrypted inboxes.
其中,在终端收到短信之前,所述方法还包括:Wherein, before the terminal receives the short message, the method also includes:
所述终端与所述可穿戴设备进行近场通讯配对后,获取所述可穿戴设备的认证信息,所述认证信息包括:所述可穿戴设备的设备号,和/或向所述可穿戴设备发送预设的加密算法,此时,所述终端与所述可穿戴设备绑定,绑定是指所述终端仅允许该可穿戴设备对其进行认证,其他可穿戴设备即使收到所述终端发送的认证信息也无法认证通过,如果用户想选择其他可穿戴设备进行认证,则需要先将已绑定的可穿戴设备解除绑定。After the terminal is paired with the wearable device through near-field communication, the authentication information of the wearable device is obtained, and the authentication information includes: the device number of the wearable device, and/or sending a message to the wearable device Send a preset encryption algorithm. At this time, the terminal is bound to the wearable device. Binding means that the terminal only allows the wearable device to authenticate it. Even if other wearable devices receive the terminal The authentication information sent cannot be authenticated. If the user wants to select another wearable device for authentication, he needs to unbind the bound wearable device first.
所述近场通讯可以是蓝牙通信、NFC通信等等。所述终端和可穿戴设备上均安装有蓝牙通信装置,可以通过蓝牙配对,然后进行数据传输。可穿戴设备可以是智能手环、智能项链、智能钥匙扣、智能手表等等。The near field communication may be Bluetooth communication, NFC communication and so on. Both the terminal and the wearable device are equipped with a bluetooth communication device, which can be paired through bluetooth and then perform data transmission. Wearable devices can be smart bracelets, smart necklaces, smart key fobs, smart watches, and more.
对短信加密后,用户就无法直接读取该短信,如果没有绑定的可穿戴设备,例如,不是用户本人,或者该终端丢失了的话,使用终端的人是无法直接读取该短信的,保证了短信的安全性。After encrypting the text message, the user cannot directly read the text message. If there is no bound wearable device, for example, if it is not the user himself, or the terminal is lost, the person using the terminal cannot directly read the text message. SMS security.
S102:将所述密钥和与所述终端绑定的可穿戴设备的认证信息发送至所述可穿戴设备进行认证;S102: Send the key and the authentication information of the wearable device bound to the terminal to the wearable device for authentication;
其中,在步骤S102之前,因为是近场通讯,必须有与终端绑定的可穿戴设备进入终端可传输范围内,例如,智能手表是带着用户手上的,一般终端,如手机用户在使用时,与智能手表的传输范围一定在近场通讯允许的范围内,例如,通过蓝牙通信,要先进行蓝牙配对,然后向绑定的可穿戴设备发送认证信息和密钥。一个终端仅可以与一个可穿戴设备绑定,即通过一个可穿戴设备进行认证,但一个可穿戴设备可以和一个或多个终端绑定,即一个可穿戴设备可以为多个终端提供认证服务。Among them, before step S102, because it is near-field communication, a wearable device bound to the terminal must enter the transmission range of the terminal. For example, a smart watch is carried by the user, and general terminals such as mobile phone users are using When using smart watches, the transmission range with the smart watch must be within the range allowed by near-field communication. For example, through Bluetooth communication, Bluetooth pairing must be performed first, and then authentication information and keys should be sent to the bound wearable device. A terminal can only be bound to one wearable device, that is, through one wearable device for authentication, but a wearable device can be bound to one or more terminals, that is, a wearable device can provide authentication services for multiple terminals.
其中,作为一种优选的方式,可以采用预设的加密算法对所述密钥和与所述终端绑定的可穿戴设备的认证信息进行加密,将加密后的密文发送至所述可穿戴设备进行认证。Wherein, as a preferred manner, a preset encryption algorithm can be used to encrypt the key and the authentication information of the wearable device bound to the terminal, and send the encrypted ciphertext to the wearable device. The device is authenticated.
可穿戴设备在接收到所述加密后的密文后,则需要先根据预设的加密算法解密,然后再进行认证。After receiving the encrypted ciphertext, the wearable device needs to first decrypt it according to a preset encryption algorithm, and then perform authentication.
当然,也可以不加密直接将密钥和认证信息发送至可穿戴设备进行认证,加密的安全性更高一些。Of course, the key and authentication information can also be directly sent to the wearable device for authentication without encryption, and the security of encryption is higher.
S103:所述终端接收到所述可穿戴设备返回的认证成功的消息,所述消息中携带有所述密钥;S103: The terminal receives an authentication success message returned by the wearable device, the message carrying the key;
S104:所述终端根据所述密钥对所述短信解密,并显示给用户。S104: The terminal decrypts the short message according to the key, and displays it to the user.
其中,作为一种优选的方式,所述短信为第三方平台发送的验证码短信;所述密钥的有效期大于所述验证码短信的有效期;Wherein, as a preferred manner, the short message is a verification code short message sent by a third-party platform; the validity period of the key is greater than the validity period of the verification code short message;
所述方法还包括:The method also includes:
在所述终端收到短信后,判断所述短信是否为所述第三方平台发送的验证码短信,如果是,则随机产生一密钥,对该验证码短信加密。After the terminal receives the short message, it is judged whether the short message is a verification code short message sent by the third-party platform, and if so, a key is randomly generated to encrypt the verification code short message.
其中,验证码短信的识别方式为:根据发送短信的号码以及短信内容进行识别,一般第三方平台的号码与普通号码有区别,例如,招商银行的号码一般以95555结尾,而短信内容,一般验证码为4-6位连续数字且短信内容包含“验证”,如果发送短信的号码以及短信内容具有以上特征,则认为是验证码短信。Among them, the identification method of the verification code SMS is: to identify according to the number and content of the SMS. Generally, the number of the third-party platform is different from the ordinary number. The code is 4-6 consecutive numbers and the content of the SMS contains "verification". If the number and content of the SMS have the above characteristics, it will be considered as a verification code SMS.
如果在密钥的有效期内没有配对绑定的可穿戴设备进入终端的传输范围,则该验证码失效自动删除。If no paired and bound wearable device enters the transmission range of the terminal within the validity period of the key, the verification code will be invalidated and automatically deleted.
在本实施例中,用户仅在下面两种情况下能够读取到验证码短信:一种是接收到可穿戴设备返回的密钥,对加密的验证码短信解密,另外一种情况是密钥过期失效,但是,本实施例中的设置是一般情况下,验证码短信的有效期要比密钥有效期短,所以当本实施例中密钥过期时,验证码短信也会过期,这样,验证码短信就失效了,无法用于用户账户的交易如网上银行等,那么,用户就需要向第三方平台重新获取验证码短信,则重复步骤S101~S104。In this embodiment, the user can only read the verification code text message in the following two cases: one is to decrypt the encrypted verification code text message after receiving the key returned by the wearable device, and the other case is the key Expiration is invalid, but the setting in this embodiment is that under normal circumstances, the validity period of the verification code text message is shorter than the key validity period, so when the key expires in this embodiment, the verification code text message will also expire. In this way, the verification code The short message becomes invalid and cannot be used for user account transactions such as online banking, etc. Then, the user needs to obtain the verification code short message again from the third-party platform, and then repeat steps S101-S104.
在本实施例中,所述终端与所述可穿戴设备采用近场通讯的方式传输数据。In this embodiment, the terminal and the wearable device transmit data by means of near field communication.
如图2所示,本实施例提供了一种短信读取方法,应用于可穿戴设备侧,包括以下步骤:As shown in Figure 2, this embodiment provides a short message reading method, applied to the wearable device side, including the following steps:
S201:可穿戴设备接收到终端发送的密钥与可穿戴设备的认证信息;S201: The wearable device receives the key and the authentication information of the wearable device sent by the terminal;
其中,在步骤S201之前还包括:Wherein, before step S201 also includes:
所述可穿戴设备与所述终端进行近场通讯配对后,向所述终端发送所述可穿戴设备的认证信息,和/或向所述终端获取预设的加密算法,与所述终端绑定。After the wearable device is paired with the terminal through near-field communication, send the authentication information of the wearable device to the terminal, and/or obtain a preset encryption algorithm from the terminal, and bind it to the terminal .
一个终端仅可以绑定一个可穿戴设备,即通过一个可穿戴设备进行认证,但一个可穿戴设备可以被一个或多个终端绑定,即一个可穿戴设备可以为多个终端提供认证服务。A terminal can only be bound to one wearable device, that is, authentication is performed through one wearable device, but a wearable device can be bound to one or more terminals, that is, a wearable device can provide authentication services for multiple terminals.
所述近场通讯可以是蓝牙通信、NFC通信等等。所述终端和可穿戴设备上均安装有蓝牙通信装置,可以通过蓝牙配对,然后进行数据传输。可穿戴设备可以是手环、项链、智能手表等等。所述可穿戴设备的认证信息包括:所述可穿戴设备的设备号。The near field communication may be Bluetooth communication, NFC communication and so on. Both the terminal and the wearable device are equipped with a bluetooth communication device, which can be paired through bluetooth and then perform data transmission. Wearable devices can be bracelets, necklaces, smart watches, and more. The authentication information of the wearable device includes: a device number of the wearable device.
S202:所述可穿戴设备根据所述认证信息对所述终端进行认证,认证通过后,将所述密钥返回至终端。S202: The wearable device authenticates the terminal according to the authentication information, and returns the key to the terminal after passing the authentication.
其中,所述可穿戴设备根据所述认证信息对所述终端进行认证,包括:Wherein, the wearable device authenticates the terminal according to the authentication information, including:
所述可穿戴设备判断所述可穿戴设备的设备号是否能与本机设备号匹配上,如果是,则认证通过,否则认证不通过。The wearable device judges whether the device number of the wearable device matches the local device number, and if yes, the authentication passes, otherwise the authentication fails.
其中,如果步骤S201中接收到的所述终端发送的密钥与可穿戴设备的认证信息为加密密文;Wherein, if the key sent by the terminal and the authentication information of the wearable device received in step S201 are encrypted ciphertext;
则在步骤S201中,在可穿戴设备接收到终端发送的密钥与可穿戴设备的认证信息后,所述方法还包括:Then in step S201, after the wearable device receives the key sent by the terminal and the authentication information of the wearable device, the method further includes:
根据所述预设的加密算法对所述加密密文进行解密,获得所述密钥和所述可穿戴设备的认证信息。The encrypted ciphertext is decrypted according to the preset encryption algorithm to obtain the key and the authentication information of the wearable device.
本实施例中,所述终端与所述可穿戴设备采用近场通讯的方式传输数据。In this embodiment, the terminal and the wearable device transmit data by means of near field communication.
如图3所示,本实施例提供了一种终端,包括:As shown in Figure 3, this embodiment provides a terminal, including:
第一接收模块,用于接收短信并发送至加密模块;The first receiving module is used to receive the short message and send it to the encryption module;
加密模块,用于在所述接收模块接收到所述短信后,随机产生一密钥,对该短信加密;An encryption module, configured to randomly generate a key to encrypt the short message after the receiving module receives the short message;
认证模块,用于将所述密钥和与所述终端绑定的可穿戴设备的认证信息发送至所述可穿戴设备进行认证;An authentication module, configured to send the key and the authentication information of the wearable device bound to the terminal to the wearable device for authentication;
第二接收模块,用于接收所述可穿戴设备返回的认证成功的消息,所述消息中携带有所述密钥;The second receiving module is configured to receive a successful authentication message returned by the wearable device, the message carrying the key;
解密模块,用于根据所述可穿戴设备返回的认证成功的消息中携带的所述密钥对所述短信解密,并显示给用户。A decryption module, configured to decrypt the short message according to the key carried in the successful authentication message returned by the wearable device, and display it to the user.
其中,作为一种优选的方式,本实施例的终端还包括:Wherein, as a preferred manner, the terminal of this embodiment further includes:
绑定模块,用于在所述接收模块接收到短信之前,与所述可穿戴设备进行近场通讯配对,获取所述可穿戴设备的认证信息,和/或向所述可穿戴设备发送预设的加密算法,与所述可穿戴设备绑定;所述认证信息包括:所述可穿戴设备的设备号。The binding module is used to perform near-field communication pairing with the wearable device before the receiving module receives the short message, obtain the authentication information of the wearable device, and/or send preset information to the wearable device The encryption algorithm is bound to the wearable device; the authentication information includes: the device number of the wearable device.
其中,所述认证模块,用于将所述密钥和与所述终端绑定的可穿戴设备的认证信息发送至所述可穿戴设备进行认证,包括:Wherein, the authentication module is configured to send the key and the authentication information of the wearable device bound to the terminal to the wearable device for authentication, including:
采用预设的加密算法对所述密钥和与所述终端绑定的可穿戴设备的认证信息进行加密,将加密后的密文发送至所述可穿戴设备进行认证。Using a preset encryption algorithm to encrypt the key and the authentication information of the wearable device bound to the terminal, and send the encrypted ciphertext to the wearable device for authentication.
作为一种优选的方式,所述短信为第三方平台发送的验证码短信;所述密钥的有效期大于所述验证码短信的有效期;As a preferred manner, the short message is a verification code short message sent by a third-party platform; the validity period of the key is greater than the validity period of the verification code short message;
所述加密模块,还用于在所述接收模块接收到所述短信后,判断所述短信是否为所述第三方平台发送的验证码短信,如果是,则随机产生一密钥,对该验证码短信加密。The encryption module is also used to judge whether the short message is a verification code short message sent by the third-party platform after the receiving module receives the short message, and if so, randomly generate a key to verify the short message Code SMS encryption.
如图4所示,本实施例提供了一种可穿戴设备,包括:As shown in Figure 4, this embodiment provides a wearable device, including:
接收模块,用于接收终端发送的密钥与可穿戴设备的认证信息;The receiving module is used to receive the key sent by the terminal and the authentication information of the wearable device;
认证模块,用于根据所述认证信息对所述终端进行认证;an authentication module, configured to authenticate the terminal according to the authentication information;
发送模块,用于在认证通过后,将所述密钥返回至终端。The sending module is used to return the key to the terminal after the authentication is passed.
其中,作为一种优选的方式,本实施例的终端还包括:Wherein, as a preferred manner, the terminal of this embodiment further includes:
绑定模块,用于在所述接收模块接收到终端发送的密钥与可穿戴设备的认证信息之前,与所述终端进行近场通讯配对后,向所述终端发送所述可穿戴设备的认证信息,和/或向所述终端获取预设的加密算法,与所述终端绑定。A binding module, configured to send the authentication of the wearable device to the terminal after performing near-field communication pairing with the terminal before the receiving module receives the key and the authentication information of the wearable device sent by the terminal information, and/or obtain a preset encryption algorithm from the terminal, and bind to the terminal.
作为一种优选的方式,所述可穿戴设备接收到的终端发送的密钥与可穿戴设备的认证信息为加密密文;As a preferred manner, the key sent by the terminal and the authentication information of the wearable device received by the wearable device are encrypted ciphertexts;
所述接收模块,还用于在所述可穿戴设备接收到终端发送的密钥与可穿戴设备的认证信息后,根据所述预设的加密算法对所述加密密文进行解密,获得所述密钥和所述可穿戴设备的认证信息。The receiving module is further configured to decrypt the encrypted ciphertext according to the preset encryption algorithm after the wearable device receives the key sent by the terminal and the authentication information of the wearable device, to obtain the Key and authentication information of the wearable device.
其中,所述认证信息包括:所述可穿戴设备的设备号;Wherein, the authentication information includes: the device number of the wearable device;
所述认证模块,用于根据所述认证信息对所述终端进行认证,包括:The authentication module is configured to authenticate the terminal according to the authentication information, including:
判断所述可穿戴设备的设备号是否能与本机设备号匹配上,如果是,则认证通过,否则认证不通过。It is judged whether the device number of the wearable device can match the local device number, if yes, the authentication is passed, otherwise the authentication is not passed.
此外,本实施例还提供了一种短信读取系统,包括:如上所述的终端和如上所述的可穿戴设备。In addition, this embodiment also provides a short message reading system, including: the above-mentioned terminal and the above-mentioned wearable device.
从上述实施例可以看出,相对于现有技术,上述实施例中提供的短信读取方法及系统、终端、可穿戴设备,利用可穿戴设备与终端的交互性使得穿戴设备与终端之间能够进行数据传输,可穿戴设备可以对终端收到的短信进行二次验证,从而规避短信被获取的风险,例如,提高用户各类账户在验证码验证时的安全性,保护用户的利益不受损害。It can be seen from the above embodiments that, compared with the prior art, the short message reading method, system, terminal, and wearable device provided in the above embodiments utilize the interactivity between the wearable device and the terminal to enable For data transmission, the wearable device can perform secondary verification on the SMS received by the terminal, so as to avoid the risk of SMS being obtained, for example, to improve the security of various accounts of the user when verifying the verification code, and to protect the interests of the user from damage .
随着可穿戴设备的兴起,越来越多的人除了手机之外还拥有例如智能手环、智能手表等随身穿戴的设备。相比较于手机,可穿戴设备的贴身携带的特点使得设备的丢失被盗可能性远小于手机。而可穿戴设备与手机的交互性使得穿戴设备与手机之间能够进行数据传输。通过穿戴设备对手机收到的验证码进行二次验证,可以规避手机验证码被获取的风险,提高用户各类账户在验证码验证时的安全性。With the rise of wearable devices, more and more people have wearable devices such as smart bracelets and smart watches in addition to mobile phones. Compared with mobile phones, wearable devices are more likely to be lost or stolen than mobile phones due to the close-fitting characteristics of wearable devices. The interaction between the wearable device and the mobile phone enables data transmission between the wearable device and the mobile phone. The verification code received by the mobile phone is verified twice through the wearable device, which can avoid the risk of obtaining the verification code of the mobile phone and improve the security of the user's various accounts when verifying the verification code.
本领域普通技术人员可以理解上述方法中的全部或部分步骤可通过程序来指令相关硬件完成,所述程序可以存储于计算机可读存储介质中,如只读存储器、磁盘或光盘等。可选地,上述实施例的全部或部分步骤也可以使用一个或多个集成电路来实现。相应地,上述实施例中的各模块/单元可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。本发明不限制于任何特定形式的硬件和软件的结合。Those skilled in the art can understand that all or part of the steps in the above method can be completed by instructing relevant hardware through a program, and the program can be stored in a computer-readable storage medium, such as a read-only memory, a magnetic disk or an optical disk, and the like. Optionally, all or part of the steps in the foregoing embodiments may also be implemented using one or more integrated circuits. Correspondingly, each module/unit in the foregoing embodiments may be implemented in the form of hardware, or may be implemented in the form of software function modules. The present invention is not limited to any specific combination of hardware and software.
以上所述仅为本发明的优选实施例而已,并非用于限定本发明的保护范围。根据本发明的发明内容,还可有其他多种实施例,在不背离本发明精神及其实质的情况下,熟悉本领域的技术人员当可根据本发明作出各种相应的改变和变形,凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the protection scope of the present invention. According to the content of the present invention, there can also be other various embodiments. Those skilled in the art can make various corresponding changes and deformations according to the present invention without departing from the spirit and essence of the present invention. Within the spirit and principles of the present invention, any modifications, equivalent replacements, improvements, etc., shall be included within the protection scope of the present invention.
Claims (13)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201410564209.0A CN104301886A (en) | 2014-10-21 | 2014-10-21 | A short message reading method and system, terminal, and wearable device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201410564209.0A CN104301886A (en) | 2014-10-21 | 2014-10-21 | A short message reading method and system, terminal, and wearable device |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN104301886A true CN104301886A (en) | 2015-01-21 |
Family
ID=52321408
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201410564209.0A Pending CN104301886A (en) | 2014-10-21 | 2014-10-21 | A short message reading method and system, terminal, and wearable device |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN104301886A (en) |
Cited By (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN104660494A (en) * | 2015-02-11 | 2015-05-27 | 任宝刚 | Communication system |
| CN105022948A (en) * | 2015-07-28 | 2015-11-04 | 广东欧珀移动通信有限公司 | A control method for smart watch, smart watch and terminal |
| WO2016150028A1 (en) * | 2015-03-24 | 2016-09-29 | 百度在线网络技术(北京)有限公司 | Method, device, and system used for mobile authentication |
| WO2018059303A1 (en) * | 2016-09-30 | 2018-04-05 | 中兴通讯股份有限公司 | Method and device for encrypting and decrypting information in short message |
| CN109558261A (en) * | 2018-11-20 | 2019-04-02 | 广东小天才科技有限公司 | Method and system for acquiring abnormal log of wearable device |
| CN110365484A (en) * | 2015-03-17 | 2019-10-22 | 阿里巴巴集团控股有限公司 | A kind of data processing method of equipment certification, apparatus and system |
Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103701605A (en) * | 2013-12-24 | 2014-04-02 | 北京握奇智能科技有限公司 | Data authentication method and device |
| CN103714299A (en) * | 2013-12-25 | 2014-04-09 | 北京握奇数据系统有限公司 | Method and system for encryption and decryption of file of mobile terminal |
| CN103824012A (en) * | 2014-03-05 | 2014-05-28 | 许建华 | Radio frequency near field user identity recognition of intelligent mobile terminal |
| CN103914772A (en) * | 2014-03-31 | 2014-07-09 | 深圳小木科技有限公司 | Wireless authentication method, system and device for mobile payment |
| US20140258133A1 (en) * | 2009-10-27 | 2014-09-11 | At&T Mobility Ii Llc | Secure Mobile-Based Financial Transactions |
| CN104092550A (en) * | 2014-07-23 | 2014-10-08 | 三星电子(中国)研发中心 | Password protection method, system and device |
-
2014
- 2014-10-21 CN CN201410564209.0A patent/CN104301886A/en active Pending
Patent Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20140258133A1 (en) * | 2009-10-27 | 2014-09-11 | At&T Mobility Ii Llc | Secure Mobile-Based Financial Transactions |
| CN103701605A (en) * | 2013-12-24 | 2014-04-02 | 北京握奇智能科技有限公司 | Data authentication method and device |
| CN103714299A (en) * | 2013-12-25 | 2014-04-09 | 北京握奇数据系统有限公司 | Method and system for encryption and decryption of file of mobile terminal |
| CN103824012A (en) * | 2014-03-05 | 2014-05-28 | 许建华 | Radio frequency near field user identity recognition of intelligent mobile terminal |
| CN103914772A (en) * | 2014-03-31 | 2014-07-09 | 深圳小木科技有限公司 | Wireless authentication method, system and device for mobile payment |
| CN104092550A (en) * | 2014-07-23 | 2014-10-08 | 三星电子(中国)研发中心 | Password protection method, system and device |
Cited By (11)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN104660494A (en) * | 2015-02-11 | 2015-05-27 | 任宝刚 | Communication system |
| CN104660494B (en) * | 2015-02-11 | 2018-11-27 | 深圳市奔跑科技有限公司 | A kind of communication system |
| CN110365484A (en) * | 2015-03-17 | 2019-10-22 | 阿里巴巴集团控股有限公司 | A kind of data processing method of equipment certification, apparatus and system |
| CN110365484B (en) * | 2015-03-17 | 2023-01-20 | 创新先进技术有限公司 | Data processing method, device and system for equipment authentication |
| WO2016150028A1 (en) * | 2015-03-24 | 2016-09-29 | 百度在线网络技术(北京)有限公司 | Method, device, and system used for mobile authentication |
| CN105022948A (en) * | 2015-07-28 | 2015-11-04 | 广东欧珀移动通信有限公司 | A control method for smart watch, smart watch and terminal |
| WO2018059303A1 (en) * | 2016-09-30 | 2018-04-05 | 中兴通讯股份有限公司 | Method and device for encrypting and decrypting information in short message |
| CN107889102A (en) * | 2016-09-30 | 2018-04-06 | 中兴通讯股份有限公司 | The method and apparatus of information encryption and decryption in a kind of short message |
| CN107889102B (en) * | 2016-09-30 | 2021-04-02 | 中兴通讯股份有限公司 | A method and device for encrypting and decrypting information in a short message |
| CN109558261A (en) * | 2018-11-20 | 2019-04-02 | 广东小天才科技有限公司 | Method and system for acquiring abnormal log of wearable device |
| CN109558261B (en) * | 2018-11-20 | 2022-05-03 | 广东小天才科技有限公司 | Method and system for acquiring abnormal log of wearable device |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN112602300B (en) | System and method for password authentication of contactless cards | |
| KR101508360B1 (en) | Apparatus and method for transmitting data, and recording medium storing program for executing method of the same in computer | |
| JP5959410B2 (en) | Payment method, payment server for executing the method, program for executing the method, and system for executing the same | |
| JP2022504072A (en) | Systems and methods for cryptographic authentication of contactless cards | |
| JP2022502888A (en) | Systems and methods for cryptographic authentication of non-contact cards | |
| CN112602104A (en) | System and method for password authentication of contactless cards | |
| JP2024099827A (en) | Multi-factor authentication providing credentials via contactless cards for secure messaging | |
| CN102790767B (en) | Information safety control method, information safety display equipment and electronic trading system | |
| JP2013514556A (en) | Method and system for securely processing transactions | |
| JP2022501861A (en) | Systems and methods for cryptographic authentication of non-contact cards | |
| JP2022501858A (en) | Systems and methods for cryptographic authentication of non-contact cards | |
| JP2022502891A (en) | Systems and methods for cryptographic authentication of non-contact cards | |
| CN113168631A (en) | System and method for password authentication of contactless cards | |
| US20160226837A1 (en) | Server for authenticating smart chip and method thereof | |
| CN103326862A (en) | Electronically signing method and system | |
| CN104301886A (en) | A short message reading method and system, terminal, and wearable device | |
| CN121118089A (en) | System and method for signaling potential attacks on contactless cards | |
| CN113169873B (en) | System and method for password authentication of contactless cards | |
| CN111709747B (en) | Intelligent terminal authentication method and system | |
| CN104320261B (en) | Identity authentication method, financial smart card and terminal are realized on financial smart card | |
| KR102053993B1 (en) | Method for Authenticating by using Certificate | |
| US20150302506A1 (en) | Method for Securing an Order or Purchase Operation Means of a Client Device | |
| US8819431B2 (en) | Methods and device for electronic entities for the exchange and use of rights | |
| CN104484801A (en) | Net bar safety payment method | |
| CN103929722A (en) | Short message encryption method and system |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| RJ01 | Rejection of invention patent application after publication | ||
| RJ01 | Rejection of invention patent application after publication |
Application publication date: 20150121 |