+

CN115829577A - Authentication method, apparatus, system, medium, and program product - Google Patents

Authentication method, apparatus, system, medium, and program product Download PDF

Info

Publication number
CN115829577A
CN115829577A CN202211459273.3A CN202211459273A CN115829577A CN 115829577 A CN115829577 A CN 115829577A CN 202211459273 A CN202211459273 A CN 202211459273A CN 115829577 A CN115829577 A CN 115829577A
Authority
CN
China
Prior art keywords
information
voiceprint information
authentication
user
electronic device
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
Application number
CN202211459273.3A
Other languages
Chinese (zh)
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.)
Jiede China Technology Co ltd
Original Assignee
Jiede China 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 Jiede China Technology Co ltd filed Critical Jiede China Technology Co ltd
Priority to CN202211459273.3A priority Critical patent/CN115829577A/en
Publication of CN115829577A publication Critical patent/CN115829577A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

本申请公开了一种认证方法、装置、系统、介质和程序产品。该方法应用于安全元件,该安全元件中包括至少一个参考声纹信息,该方法包括:获取第一声纹信息;其中,所述第一声纹信息为电子设备基于接收到的用户的第一语音信息解析得到;在所述第一声纹信息与目标参考声纹信息匹配的情况下,确定所述用户的认证通过;其中,所述目标参考声纹信息为所述至少一个参考声纹信息中,与所述第一声纹信息匹配的参考声纹信息;针对每个参考声纹信息,所述参考声纹信息为所述电子设备基于接收到的用户的第二语音信息解析得到;将所述认证通过的确认信息发送至所述电子设备,以使所述电子设备基于所述确认信息进行支付操作。可以提升声纹认证的安全性。

Figure 202211459273

The application discloses an authentication method, device, system, medium and program product. The method is applied to a security element, and the security element includes at least one reference voiceprint information, and the method includes: acquiring first voiceprint information; wherein, the first voiceprint information is the first voiceprint information received by the electronic device based on the user's The voice information is analyzed; if the first voiceprint information matches the target reference voiceprint information, it is determined that the user has passed the authentication; wherein the target reference voiceprint information is the at least one reference voiceprint information Among them, the reference voiceprint information matched with the first voiceprint information; for each reference voiceprint information, the reference voiceprint information is obtained by the electronic device based on the analysis of the received second voice information of the user; The confirmation information of passing the authentication is sent to the electronic device, so that the electronic device performs a payment operation based on the confirmation information. It can improve the security of voiceprint authentication.

Figure 202211459273

Description

认证方法、装置、系统、介质和程序产品Authentication method, apparatus, system, medium and program product

技术领域technical field

本申请涉及信息认证技术领域,具体涉及一种认证方法、装置、系统、介质和程序产品。This application relates to the technical field of information authentication, in particular to an authentication method, device, system, medium and program product.

背景技术Background technique

电子支付是指消费者、商家和金融机构之间使用安全电子手段把支付信息通过信息网络安全地传送到银行或相应的处理机构,用来实现货币支付或资金流转的行为。Electronic payment refers to the use of secure electronic means between consumers, merchants and financial institutions to securely transmit payment information to banks or corresponding processing institutions through information networks for currency payment or capital transfer.

当前在使用电子设备进行付款操作时,需要对用户的身份信息进行认证,目前可以采用声纹信息来进行验证,但是目前的声纹信息的存储或传输安全性无法得到保证,容易被窃取,造成用户的财产损失。At present, when electronic devices are used for payment operations, the user's identity information needs to be authenticated. At present, voiceprint information can be used for verification, but the storage or transmission security of the current voiceprint information cannot be guaranteed, and it is easy to be stolen, resulting in User property damage.

发明内容Contents of the invention

本申请实施例的目的是提供一种认证方法、装置、电子设备、介质和程序产品,以提升声纹认证的安全性。The purpose of the embodiments of the present application is to provide an authentication method, device, electronic equipment, medium, and program product, so as to improve the security of voiceprint authentication.

本申请的技术方案如下:The technical scheme of the application is as follows:

第一方面,提供了一种认证方法,该方法应用于安全元件,所述安全元件中包括至少一个参考声纹信息,该方法包括:In a first aspect, an authentication method is provided, the method is applied to a security element, and the security element includes at least one reference voiceprint information, the method includes:

获取第一声纹信息;其中,所述第一声纹信息为电子设备基于接收到的用户的第一语音信息解析得到;Acquiring first voiceprint information; wherein, the first voiceprint information is obtained by the electronic device based on the received first voice information of the user;

在所述第一声纹信息与目标参考声纹信息匹配的情况下,确定所述用户的认证通过;其中,所述目标参考声纹信息为所述至少一个参考声纹信息中,与所述第一声纹信息匹配的参考声纹信息;针对每个参考声纹信息,所述参考声纹信息为所述电子设备基于接收到的用户的第二语音信息解析得到;If the first voiceprint information matches the target reference voiceprint information, it is determined that the user has passed the authentication; wherein, the target reference voiceprint information is the at least one reference voiceprint information, and the The reference voiceprint information matched with the first voiceprint information; for each reference voiceprint information, the reference voiceprint information is obtained by the electronic device based on the received second voice information of the user;

将所述认证通过的确认信息发送至所述电子设备,以使所述电子设备基于所述确认信息进行支付操作。Sending the confirmation information of passing the authentication to the electronic device, so that the electronic device performs a payment operation based on the confirmation information.

第二方面,提供了一种认证方法,该方法应用于电子设备,该方法包括:In the second aspect, an authentication method is provided, the method is applied to electronic equipment, and the method includes:

获取用户的第一语音信息;Obtain the user's first voice information;

对所述第一语音信息进行解析,得到第一声纹信息;Analyzing the first voice information to obtain first voiceprint information;

将所述第一声纹信息发送至安全元件中,以使所述安全元件将所述第一声纹信息和至少一个参考声纹信息进行匹配;并在所述第一声纹信息与所述目标参考声纹信息匹配的情况下,确定所述用户的认证通过,以及将所述认证通过的确认信息发送至所述电子设备,以使所述电子设备基于所述确认信息进行支付操作;其中,所述安全元件中包括至少一个参考声纹信息,所述目标参考声纹信息为所述至少一个参考声纹信息中,与所述第一声纹信息匹配的参考声纹信息;针对每个参考声纹信息,所述参考声纹信息为所述电子设备基于接收到的用户的第二语音信息解析得到。sending the first voiceprint information to a security element, so that the security element matches the first voiceprint information with at least one reference voiceprint information; and when the first voiceprint information and the If the target reference voiceprint information matches, determine that the user's authentication has passed, and send the confirmation information of the authentication pass to the electronic device, so that the electronic device performs a payment operation based on the confirmation information; wherein , the security element includes at least one reference voiceprint information, and the target reference voiceprint information is the reference voiceprint information matching the first voiceprint information among the at least one reference voiceprint information; for each Referring to voiceprint information, the reference voiceprint information is obtained by the electronic device through analysis based on the received second voice information of the user.

第三方面,提供了一种认证装置,该装置应用于安全元件,所述安全元件中包括至少一个参考声纹信息,所述装置包括:In a third aspect, an authentication device is provided, the device is applied to a security element, the security element includes at least one reference voiceprint information, and the device includes:

第一获取模块,用于获取第一声纹信息;其中,所述第一声纹信息为电子设备基于接收到的用户的第一语音信息解析得到,The first acquisition module is configured to acquire the first voiceprint information; wherein, the first voiceprint information is obtained by the electronic device based on the received first voice information of the user,

第一确定模块,用于在所述第一声纹信息与目标参考声纹信息匹配的情况下,确定所述用户的认证通过;其中,所述目标参考声纹信息为至少一个参考声纹信息中,与所述第一声纹信息匹配的参考声纹信息;针对每个参考声纹信息,所述参考声纹信息为所述电子设备基于接收到的用户的第二语音信息解析得到;A first determining module, configured to determine that the user has passed the authentication when the first voiceprint information matches target reference voiceprint information; wherein the target reference voiceprint information is at least one piece of reference voiceprint information wherein, the reference voiceprint information matched with the first voiceprint information; for each reference voiceprint information, the reference voiceprint information is obtained by the electronic device based on the received second voice information of the user;

第一发送模块,用于将所述认证通过的确认信息发送至所述电子设备,以使所述电子设备基于所述确认信息进行支付操作。The first sending module is configured to send the confirmation information of passing the authentication to the electronic device, so that the electronic device performs a payment operation based on the confirmation information.

第四方面,提供了一种认证装置,该装置应用于电子设备,该装置包括:In a fourth aspect, an authentication device is provided, the device is applied to electronic equipment, and the device includes:

第一获取模块,用于获取用户的第一语音信息;The first obtaining module is used to obtain the first voice information of the user;

第一确定模块,用于对所述第一语音信息进行解析,得到第一声纹信息;The first determination module is configured to analyze the first voice information to obtain the first voiceprint information;

第一发送模块,用于将所述第一声纹信息发送至安全元件中,以使所述安全元件将所述第一声纹信息和至少一个参考声纹信息进行匹配;并在所述第一声纹信息与目标参考声纹信息匹配的情况下,确定所述用户的认证通过,以及将所述认证通过的确认信息发送至所述电子设备,以使所述电子设备基于所述确认信息进行支付操作;其中,所述安全元件中包括至少一个参考声纹信息,所述目标参考声纹信息为所述至少一个参考声纹信息中,与所述第一声纹信息匹配的参考声纹信息;针对每个参考声纹信息,所述参考声纹信息为所述电子设备基于接收到的用户的第二语音信息解析得到。A first sending module, configured to send the first voiceprint information to a security element, so that the security element matches the first voiceprint information with at least one reference voiceprint information; When the voiceprint information matches the target reference voiceprint information, determine that the user's authentication has passed, and send the confirmation information of the authentication pass to the electronic device, so that the electronic device Perform payment operations; wherein, the security element includes at least one reference voiceprint information, and the target reference voiceprint information is the reference voiceprint that matches the first voiceprint information among the at least one reference voiceprint information information; for each piece of reference voiceprint information, the reference voiceprint information is obtained by the electronic device based on the received second voice information of the user.

第五方面,本申请实施例提供了一种认证系统,该所述系统包括:In the fifth aspect, the embodiment of the present application provides an authentication system, the system includes:

电子设备,用于获取用户的第一语音信息,对所述第一语音信息进行解析,得到第一声纹信息;并将所述第一声纹信息发送至安全元件中;An electronic device, configured to acquire first voice information of the user, analyze the first voice information to obtain first voiceprint information; and send the first voiceprint information to the security element;

所述安全元件,用于将所述第一声纹信息和至少一个参考声纹信息进行匹配;并在所述第一声纹信息与目标参考声纹信息匹配的情况下,确定所述用户的认证通过;以及将所述认证通过的确认信息发送至所述电子设备,以使所述电子设备基于所述确认信息进行支付操作;The security element is configured to match the first voiceprint information with at least one reference voiceprint information; and determine the user's identity when the first voiceprint information matches the target reference voiceprint information. Passing the authentication; and sending confirmation information of passing the authentication to the electronic device, so that the electronic device performs a payment operation based on the confirmation information;

其中,所述安全元件中包括至少一个参考声纹信息,所述目标参考声纹信息为所述至少一个参考声纹信息中,与所述第一声纹信息匹配的参考声纹信息;针对每个参考声纹信息,所述参考声纹信息为所述电子设备基于接收到的用户的第二语音信息解析得到。Wherein, the security element includes at least one reference voiceprint information, and the target reference voiceprint information is the reference voiceprint information matching the first voiceprint information among the at least one reference voiceprint information; A piece of reference voiceprint information, the reference voiceprint information is obtained by the electronic device based on the analysis of the received second voice information of the user.

第六方面,本申请实施例提供了一种可读存储介质,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现本申请实施例任一所述的认证方法的步骤。In the sixth aspect, the embodiments of the present application provide a readable storage medium, on which programs or instructions are stored, and when the programs or instructions are executed by a processor, the authentication described in any one of the embodiments of the present application is realized. method steps.

第七方面,本申请实施例提供了一种计算机程序产品,所述计算机程序产品中的指令由电子设备的处理器执行时,使得所述电子设备能够执行本申请实施例任一所述的认证方法的步骤。In the seventh aspect, the embodiment of the present application provides a computer program product, when the instructions in the computer program product are executed by the processor of the electronic device, the electronic device can perform the authentication described in any one of the embodiments of the present application. method steps.

本申请的实施例提供的技术方案至少带来以下有益效果:The technical solutions provided by the embodiments of the present application bring at least the following beneficial effects:

本申请的实施例中,通过获取电子设备传输的第一声纹信息,在第一声纹信息与安全元件中的至少一个参考声纹信息中的目标参考声纹信息匹配的情况下,确定用户的认证通过,本申请中将参考声纹信息存储至安全元件中,由于安全元件的环境是安全的,声纹信息无法被修改或盗取,如此可防止声纹信息被替换掉,确保了声纹信息的安全性。In the embodiment of the present application, by acquiring the first voiceprint information transmitted by the electronic device, if the first voiceprint information matches the target reference voiceprint information in at least one reference voiceprint information in the security element, it is determined that the user After passing the authentication, the reference voiceprint information is stored in the secure element in this application. Since the environment of the secure element is safe, the voiceprint information cannot be modified or stolen. This prevents the voiceprint information from being replaced and ensures that the voiceprint security of fingerprint information.

应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本申请。It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application.

附图说明Description of drawings

此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本申请的实施例,并与说明书一起用于解释本申请的原理,并不构成对本申请的不当限定。The accompanying drawings here are incorporated into the specification and constitute a part of the specification, show the embodiment consistent with the application, and are used together with the specification to explain the principle of the application, and do not constitute an improper limitation of the application.

图1是本申请第三方面实施例提供的一种认证系统的结构示意图;Fig. 1 is a schematic structural diagram of an authentication system provided by an embodiment of the third aspect of the present application;

图2是本申请第一方面实施例提供的一种认证方法的流程示意图之一;Fig. 2 is one of the schematic flow charts of an authentication method provided in the embodiment of the first aspect of the present application;

图3是本申请第一方面实施例提供的一种认证方法的流程示意图之二;Fig. 3 is the second schematic flow diagram of an authentication method provided by the embodiment of the first aspect of the present application;

图4是本申请第二方面实施例提供的一种认证装置的结构示意图之一;Fig. 4 is one of the structural schematic diagrams of an authentication device provided in the embodiment of the second aspect of the present application;

图5是本申请第二方面实施例提供的一种认证装置的结构示意图之二;Fig. 5 is the second structural schematic diagram of an authentication device provided in the embodiment of the second aspect of the present application;

图6是本申请第三方面实施例提供的一种电子设备的结构示意图。Fig. 6 is a schematic structural diagram of an electronic device provided by an embodiment of the third aspect of the present application.

具体实施方式Detailed ways

为了使本领域普通人员更好地理解本申请的技术方案,下面将结合附图,对本申请实施例中的技术方案进行清楚、完整地描述。应理解,此处所描述的具体实施例仅意在解释本申请,而不是限定本申请。对于本领域技术人员来说,本申请可以在不需要这些具体细节中的一些细节的情况下实施。下面对实施例的描述仅仅是为了通过示出本申请的示例来提供对本申请更好的理解。In order to enable ordinary persons in the art to better understand the technical solutions of the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the accompanying drawings. It should be understood that the specific embodiments described here are only intended to explain the present application rather than limit the present application. It will be apparent to one skilled in the art that the present application may be practiced without some of these specific details. The following description of the embodiments is only to provide a better understanding of the present application by showing examples of the present application.

需要说明的是,本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的本申请的实施例能够以除了在这里图示或描述的那些以外的顺序实施。以下示例性实施例中所描述的实施方式并不代表与本申请相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本申请的一些方面相一致的例子。It should be noted that the terms "first" and "second" in the description and claims of the present application and the above drawings are used to distinguish similar objects, but not necessarily used to describe a specific sequence or sequence. It is to be understood that the data so used are interchangeable under appropriate circumstances such that the embodiments of the application described herein can be practiced in sequences other than those illustrated or described herein. The implementations described in the following exemplary embodiments do not represent all implementations consistent with this application. Rather, they are merely examples consistent with aspects of the application as recited in the appended claims.

如背景技术部分所述,现有技术中存在声纹信息的安全性低的问题,为了解决上述问题,本申请实施例提供了一种认证方法、装置、系统、介质和程序产品,通过获取电子设备传输的第一声纹信息,在第一声纹信息与安全元件中的至少一个参考声纹信息中的目标参考声纹信息匹配的情况下,确定用户的认证通过,本申请中将参考声纹信息存储至安全元件中,由于安全元件的环境是安全的,声纹信息无法被修改或盗取,如此可防止声纹信息被替换掉,确保了声纹信息的安全性。。As mentioned in the background technology section, there is a problem of low security of voiceprint information in the prior art. In order to solve the above problem, the embodiment of this application provides an authentication method, device, system, medium and program product. The first voiceprint information transmitted by the device, if the first voiceprint information matches the target reference voiceprint information in at least one reference voiceprint information in the security element, it is determined that the user’s authentication has passed, and the reference voiceprint information will be used in this application The fingerprint information is stored in the secure element. Since the environment of the secure element is safe, the voiceprint information cannot be modified or stolen. This prevents the voiceprint information from being replaced and ensures the security of the voiceprint information. .

下面结合附图,通过具体的实施例及其应用场景对本申请实施例提供的认证方法进行详细地说明。The authentication method provided by the embodiment of the present application will be described in detail below through specific embodiments and application scenarios with reference to the accompanying drawings.

在介绍本申请的认证方法之前,首先介绍一下实现本申请的认证方法的认证系统,图1是本申请实施例所提供的一种认证系统的结构示意图,如图1所示,本申请实施例提供的认证系统可以包括:电子设备110和安全元件120。Before introducing the authentication method of this application, first introduce the authentication system that implements the authentication method of this application. Figure 1 is a schematic structural diagram of an authentication system provided by the embodiment of this application. As shown in Figure 1, the embodiment of this application The provided authentication system may include: an electronic device 110 and a secure element 120 .

其中,电子设备110,用于获取用户的第一语音信息,对第一语音信息进行解析,得到第一声纹信息;并将第一声纹信息发送至安全元件中。Wherein, the electronic device 110 is configured to acquire the first voice information of the user, analyze the first voice information to obtain the first voiceprint information, and send the first voiceprint information to the security element.

安全元件120,用于将第一声纹信息和至少一个参考声纹信息进行匹配;并在第一声纹信息与目标参考声纹信息匹配的情况下,确定用户的认证通过;以及将认证通过的确认信息发送至电子设备,以使电子设备基于确认信息进行支付操作。The security element 120 is configured to match the first voiceprint information with at least one reference voiceprint information; and when the first voiceprint information matches the target reference voiceprint information, determine that the user's authentication has passed; and pass the authentication The confirmation information is sent to the electronic device, so that the electronic device performs the payment operation based on the confirmation information.

在本申请的一些实施例中,电子设备可以但不限于是智能音箱、智能电视、车载智能单元、个人电脑(Personal Computer,PC)、智能手机、平板电脑或个人数字助理(Personal Digital Assistant,PDA)等。In some embodiments of the present application, the electronic device may be, but not limited to, a smart speaker, a smart TV, a vehicle-mounted smart unit, a personal computer (Personal Computer, PC), a smart phone, a tablet computer, or a personal digital assistant (Personal Digital Assistant, PDA). )wait.

电子设备至少具有输入装置(麦克风或键盘)、输出装置(显示屏或音箱)、控制装置(例如可以是微控制单元(Micro Control Unit,MCU))、存储单元、通信单元等。An electronic device at least has an input device (microphone or keyboard), an output device (display screen or speaker), a control device (such as a Micro Control Unit (MCU)), a storage unit, a communication unit, and the like.

在本申请的一些实施例中,安全元件可以是具有安全认证(Security Element,SE)的元件。安全元件的环境是安全的,声纹信息无法被修改或盗取,如此可防止声纹信息被替换掉,确保了安全元件中的声纹信息的安全性。In some embodiments of the present application, the security element may be an element with security authentication (Security Element, SE). The environment of the secure element is safe, and the voiceprint information cannot be modified or stolen, which prevents the voiceprint information from being replaced and ensures the security of the voiceprint information in the secure element.

在本申请的一些实施例中,安全元件中可以包括至少一个参考声纹信息。In some embodiments of the present application, the security element may include at least one reference voiceprint information.

在本申请的一些实施例中,针对每个参考声纹信息,参考声纹信息可以为电子设备基于接收到的用户的第二语音信息解析得到。In some embodiments of the present application, for each piece of reference voiceprint information, the reference voiceprint information may be obtained by the electronic device based on the received second voice information of the user.

第二语音信息可以是用户利用电子设备的麦克风输入的语音信息。The second voice information may be voice information input by the user using a microphone of the electronic device.

第一语音信息可以是用户利用电子设备的麦克风输入的语音信息。The first voice information may be voice information input by a user using a microphone of the electronic device.

第一声纹信息可以是对第一语音信息进行解析后,得到的第一语音信息的声纹特征数据。The first voiceprint information may be voiceprint feature data of the first voice information obtained after analyzing the first voice information.

目标参考声纹信息可以为至少一个参考声纹信息中,与第一声纹信息匹配的参考声纹信息。The target reference voiceprint information may be reference voiceprint information that matches the first voiceprint information in at least one reference voiceprint information.

在本申请的实施例中,通过获取电子设备传输的第一声纹信息,在第一声纹信息与安全元件中的至少一个参考声纹信息中的目标参考声纹信息匹配的情况下,确定用户的认证通过,本申请中将参考声纹信息存储至安全元件中,由于安全元件的环境是安全的,声纹信息无法被修改或盗取,如此可防止声纹信息被替换掉,确保了声纹信息的安全性。In an embodiment of the present application, by acquiring the first voiceprint information transmitted by the electronic device, if the first voiceprint information matches the target reference voiceprint information in at least one reference voiceprint information in the security element, it is determined that After the user's authentication is passed, the reference voiceprint information is stored in the security element in this application. Since the environment of the security element is safe, the voiceprint information cannot be modified or stolen. This prevents the voiceprint information from being replaced, ensuring Security of voiceprint information.

在本申请的一些实施例中,电子设备还用于:基于第一语音信息,对用户进行信息认证;在确定用户的信息认证通过的情况下,将第一声纹信息发送至安全元件中;In some embodiments of the present application, the electronic device is also used to: perform information authentication on the user based on the first voice information; and send the first voiceprint information to the security element when it is determined that the user's information authentication is passed;

所述安全元件,具体用于:将第一声纹信息和至少一个参考声纹信息进行匹配;并在第一声纹信息与目标参考声纹信息匹配的情况下,确定用户的身份认证通过。The security element is specifically configured to: match the first voiceprint information with at least one reference voiceprint information; and determine that the user's identity authentication has passed if the first voiceprint information matches the target reference voiceprint information.

其中,信息认证可以为验证基于用户输入的第一语音信息提取的数据内容与电子设备接收到的随机验证码是否一致。Wherein, the information authentication may be to verify whether the data content extracted based on the first voice information input by the user is consistent with the random verification code received by the electronic device.

下面详细介绍本申请实施例提供的认证方法。图2是本申请实施例所提供的一种认证方法的流程示意图,该认证方法的执行主体可以为上述图1的安全元件120。The authentication method provided by the embodiment of the present application will be described in detail below. FIG. 2 is a schematic flowchart of an authentication method provided by an embodiment of the present application. The execution body of the authentication method may be the secure element 120 in FIG. 1 above.

需要说明的是,本申请实施例中与上述实施例中的相同名词,以及名词解释在此不再赘述。It should be noted that the same nouns in the embodiments of the present application and the above-mentioned embodiments, and the explanations of nouns will not be repeated here.

如图2所示,本申请实施例提供的认证方法可以包括步骤210-步骤230。As shown in FIG. 2 , the authentication method provided by the embodiment of the present application may include steps 210 to 230 .

步骤210、获取第一声纹信息。Step 210, acquiring first voiceprint information.

其中,第一声纹信息可以为电子设备基于接收到的用户的第一语音信息解析得到。Wherein, the first voiceprint information may be obtained by analyzing the received first voice information of the user by the electronic device.

步骤220、在第一声纹信息与目标参考声纹信息匹配的情况下,确定用户的认证通过。Step 220, if the first voiceprint information matches the target reference voiceprint information, determine that the user's authentication is passed.

其中,目标参考声纹信息可以为至少一个参考声纹信息中,与第一声纹信息匹配的参考声纹信息。Wherein, the target reference voiceprint information may be the reference voiceprint information matching the first voiceprint information in at least one reference voiceprint information.

针对每个参考声纹信息,参考声纹信息可以为电子设备基于接收到的用户的第二语音信息解析得到。For each piece of reference voiceprint information, the reference voiceprint information may be obtained by the electronic device based on the received second voice information of the user.

在本申请的一些实施例中,为了提升用户体验,步骤210具体可以包括:In some embodiments of the present application, in order to improve user experience, step 210 may specifically include:

在确定电子设备对用户的信息认证通过的情况下,获取第一声纹信息;Obtaining the first voiceprint information when it is determined that the electronic device passes the information authentication of the user;

步骤220具体可以包括:Step 220 may specifically include:

在第一声纹信息与目标参考声纹信息匹配的情况下,确定用户的身份认证通过。If the first voiceprint information matches the target reference voiceprint information, it is determined that the user's identity authentication has passed.

其中,信息认证可以为验证基于用户输入的第一语音信息提取的数据内容与电子设备接收到的随机验证码是否一致。Wherein, the information authentication may be to verify whether the data content extracted based on the first voice information input by the user is consistent with the random verification code received by the electronic device.

在本申请的一些实施例中,对用户进行信息认证即为认证该用户是真实的人,而不是机器。In some embodiments of the present application, authenticating the information of the user means authenticating that the user is a real person, not a machine.

在本申请的一些实施例中,可以是电子设备中显示出随机验证码,用户读取该随机验证码(即得到第一语音信息),在第一语音信息提取得到的用户读取的随时验证码,将提取的用户读取的随机验证码与电子设备中显示的随机验证码一致的情况下,可确定用户的信息认证通过。In some embodiments of the present application, it may be that a random verification code is displayed in the electronic device, and the user reads the random verification code (that is, obtains the first voice information), and the user reads the verification code at any time obtained by extracting the first voice information. code, if the extracted random verification code read by the user is consistent with the random verification code displayed on the electronic device, it can be determined that the user's information has been authenticated.

在本申请的实施例中,在确定用户的信息认证的通过的情况下,再次获取第一语音信息对应的第一声纹信息,在该第一声纹信息与目标参考声纹信息匹配的情况下,确定用户的身份认证通过。In the embodiment of the present application, when it is determined that the user's information authentication is passed, the first voiceprint information corresponding to the first voice information is obtained again, and in the case where the first voiceprint information matches the target reference voiceprint information Next, confirm that the user's identity authentication is passed.

即在本申请的一些实施例中,电子设备对用户的信息认证和安全元件对用户的身份认证所采用的语音信息为同一语音信息。That is, in some embodiments of the present application, the voice information used for the information authentication of the user by the electronic device and the identity authentication of the user by the security element is the same voice information.

在本申请的一些实施例中,对用户进行身份认证是为了该用户是电子设备的授权用户,即认证用户A是授权用户A,不是未授权用户B。In some embodiments of the present application, the identity authentication of the user is for the user to be an authorized user of the electronic device, that is, to authenticate that the user A is the authorized user A and not the unauthorized user B.

在本申请的实施例中,通过将信息认证和身份认证采用同一语音信息,如此无需用户多次输入语音信息,节省了用户操作,提升了用户体验。In the embodiment of the present application, by using the same voice information for information authentication and identity authentication, the user does not need to input voice information multiple times, which saves user operations and improves user experience.

步骤230、将认证通过的确认信息发送至电子设备,以使电子设备基于确认信息进行支付操作。Step 230, sending the confirmation information of passing the authentication to the electronic device, so that the electronic device performs a payment operation based on the confirmation information.

在本申请的一些实施例中,上述的认证系统可以应用于支付场景中。具体的可以是应用于加油站的支付场景中。In some embodiments of the present application, the above-mentioned authentication system can be applied in a payment scenario. Specifically, it can be applied to the payment scenario of gas stations.

在本申请的一些实施例中,为了确保支付的安全性,在步骤240之后,上述所涉及的认证方法还可以包括:In some embodiments of the present application, in order to ensure the security of payment, after step 240, the above-mentioned authentication method may further include:

生成用于支付订单信息的待支付数据;Generate data to be paid for payment order information;

将待支付数据发送至电子设备,以基于待支付数据进行支付。The data to be paid is sent to the electronic device to make payment based on the data to be paid.

其中,订单信息可以为电子设备响应于用户的购买指令生成。Wherein, the order information may be generated by the electronic device in response to a user's purchase instruction.

在本申请的一些实施例中,购买指令可以是用户在电子设备上输入的语音购买指令,还可以是响应于用户在电子设备上进行购买商品的操作生成的指令。In some embodiments of the present application, the purchase instruction may be a voice purchase instruction input by the user on the electronic device, and may also be an instruction generated in response to the user's operation of purchasing commodities on the electronic device.

待支付数据可以但不限于包括:银行卡号、支付有效期、卡主姓名、支付金额、用户的声纹信息。The data to be paid may include, but is not limited to: bank card number, payment validity period, card owner's name, payment amount, and user's voiceprint information.

待支付数据还可以包括商家提供的安全支付地址,电子设备可以基于安全支付地址,访问该地址,完成支付。The data to be paid can also include a secure payment address provided by the merchant, and the electronic device can access the address based on the secure payment address to complete the payment.

在本申请的实施例中,通过生成用于支付订单信息的待支付数据,将待支付数据发送至电子设备,以基于待支付数据进行支付,如此可在确定用户的身份认证通过后,才可进行支付,这样确保了支付的安全性。In the embodiment of the present application, by generating the data to be paid for the payment order information, the data to be paid is sent to the electronic device, so as to make payment based on the data to be paid, so that the payment can only be made after the identity authentication of the user is confirmed to be passed. Payment is made, which ensures the security of payment.

在本申请的一些实施例中,在基于待支付数据进行支付时,电子设备和收款设备中至少一项可以处于脱机状态。电子设备和收款设备可以是通信连接的,具体的可以是通过近场通信(Near Field Communication,NFC)或蓝牙低耗能(Bluetooth Low Energy,BLE)进行连接。In some embodiments of the present application, when payment is made based on the data to be paid, at least one of the electronic device and the payment collection device may be in an offline state. The electronic device and the payment collection device may be connected by communication, specifically through Near Field Communication (Near Field Communication, NFC) or Bluetooth Low Energy (Bluetooth Low Energy, BLE).

下面分别针对这两种情况进行介绍:The following two situations are introduced respectively:

(1)电子设备和收款设备中有一项处于脱机状态(1) One of the electronic equipment and payment collection equipment is offline

本申请实施例的认证方法支持单联机支付场景,即仅付款设备(即电子设备)或收款设备其中一个处于联网状态。The authentication method in the embodiment of the present application supports a single-online payment scenario, that is, only one of the payment device (that is, the electronic device) or the payment collection device is in a networked state.

例如在加油站支付油费,由车载智能设备(即电子设备)向油枪或加油站的销售点情报管理系统(point of salesterminal,POS)机支付,每个车载电子设备可脱机,通过NFC或BLE等与加油站的POS机或油枪设备通讯并完成支付交易,加油站有统一的能够联网的设备通过大屏或语音终端播报支付信息。For example, to pay the gas fee at the gas station, the on-board smart device (that is, the electronic device) pays to the oil gun or the point of sales information management system (point of sales terminal, POS) machine at the gas station. Each on-board electronic device can be offline, through NFC Or BLE, etc. communicate with the POS machine or oil gun equipment of the gas station and complete the payment transaction. The gas station has a unified device that can be connected to the Internet to broadcast payment information through a large screen or voice terminal.

下面就电子设备和收款设备中的一项处于脱机状态进行分别介绍:The following is a separate introduction to one of the electronic equipment and the payment collection equipment being offline:

(a)仅电子设备联网,即收款设备处于脱机状态:(a) Only the electronic device is connected to the Internet, that is, the payment collection device is offline:

所述将待支付数据发送至所述电子设备,以基于待支付数据进行支付,具体可以包括:The sending the data to be paid to the electronic device to pay based on the data to be paid may specifically include:

在收款设备处于脱机状态的情况下,安全元件将待支付数据发送至电子设备,以使电子设备将待支付数据对应的支付信息发送至服务器。When the payment collection device is offline, the secure element sends the data to be paid to the electronic device, so that the electronic device sends payment information corresponding to the data to be paid to the server.

具体的在收款设备处于脱机状态下,支付流程可以如下:Specifically, when the collection device is offline, the payment process can be as follows:

电子设备与POS机通过近距离通信方式进行通信,例如蓝牙。电子设备与POS机互相认证,电子设备与用户交互生成订单信息,由电子设备的SE对用户的第一声纹信息进行认证,SE认证通过后,产生待支付数据,并返回给电子设备,电子设备将待支付数据对应的支付信息发送给银行服务器或商家服务器(商家服务器与银行服务器交互),扣款成功后,返回支付成功证明至电子设备和/或商家统一能够联网的设备。The electronic device communicates with the POS machine through short-range communication, such as Bluetooth. The electronic device and the POS machine authenticate each other, the electronic device interacts with the user to generate order information, and the SE of the electronic device authenticates the user's first voiceprint information. After the SE authentication is passed, the data to be paid is generated and returned to the electronic device. The device sends the payment information corresponding to the data to be paid to the bank server or the merchant server (the merchant server interacts with the bank server). After the deduction is successful, the payment success certificate is returned to the electronic device and/or the merchant's unified network-enabled device.

(b)仅收款设备联网,电子设备暂时或永久无法联到互联网:(b) Only the payment collection device is connected to the Internet, and the electronic device cannot be connected to the Internet temporarily or permanently:

所述将待支付数据发送至所述电子设备,以基于待支付数据进行支付,具体可以包括:The sending the data to be paid to the electronic device to pay based on the data to be paid may specifically include:

在电子设备处于脱机状态的情况下,安全元件将待支付数据发送至电子设备,以使电子设备将待支付数据对应的支付信息发送至收款设备。When the electronic device is offline, the secure element sends the data to be paid to the electronic device, so that the electronic device sends the payment information corresponding to the data to be paid to the payment collection device.

具体的在电子设备处于脱机状态下,支付流程可以如下:Specifically, when the electronic device is offline, the payment process can be as follows:

电子设备与POS机通过近距离通信方式进行通信,例如蓝牙。电子设备与POS机互相认证。电子设备与用户交互生成订单信息,由电子设备的SE对用户的第一声纹信息进行认证,SE认证通过后,产生待支付数据,并返回给电子设备,电子设备将订单信息、待支付数据通过蓝牙发送给POS机,POS机通过网络与银行服务器或商家服务器通信(商家服务器与银行服务器交互),扣款成功后,返回支付成功证明至POS机。The electronic device communicates with the POS machine through short-range communication, such as Bluetooth. The electronic device and the POS machine authenticate each other. The electronic device interacts with the user to generate order information, and the SE of the electronic device authenticates the user's first voiceprint information. After the SE authentication is passed, the data to be paid is generated and returned to the electronic device. The electronic device stores the order information and the data to be paid. Send it to the POS machine through Bluetooth, and the POS machine communicates with the bank server or merchant server through the network (the merchant server interacts with the bank server). After the deduction is successful, the payment success certificate is returned to the POS machine.

(2)电子设备和收款设备均处于脱机状态(2) Both the electronic device and the payment collection device are offline

具体的在电子设备和收款设备均处于脱机状态下,支付流程可以如下:Specifically, when both the electronic device and the payment collection device are offline, the payment process can be as follows:

该情况主要应用于使用数字货币进行交易的场景。当收付款双方认证通过后,且付款方SE声纹信息认证通过后,由SE根据付款金额、账户信息等产生待支付数据,通过传输模块将待支付数据对应的支付信息发送给收款方。双方分别记载这一个数字货币支付的信息,完成双脱机支付。This situation is mainly applied to the scenario of using digital currency for transactions. When both the payee and the payer pass the authentication, and the SE voiceprint information of the payer passes the authentication, the SE generates the data to be paid according to the payment amount, account information, etc., and sends the payment information corresponding to the data to be paid to the payee through the transmission module. The two parties respectively record the information of this digital currency payment and complete the double offline payment.

上述的待支付数据可以为拟支付的数字货币串。The aforementioned data to be paid may be the digital currency string to be paid.

在本申请的实施例中,声纹信息认证在SE中进行,安全性更高,且声纹信息比对的过程和结果不会告知外界,仅告知是否进行支付操作,如此进一步确保了声纹信息的安全性。In the embodiment of this application, voiceprint information authentication is carried out in SE, which is more secure, and the process and results of voiceprint information comparison will not be notified to the outside world, but only whether to perform payment operations, which further ensures voiceprint information. Information Security.

在本申请的一些实施例中,安全元件可以设置于网关中,该网关可以连接至少一个电子设备,安全元件中可以包括至少一个存储区域,每个存储区域对应于一个电子设备,用于存储对应电子设备获取的用户的声纹信息。In some embodiments of the present application, the secure element can be set in a gateway, and the gateway can be connected to at least one electronic device, and the secure element can include at least one storage area, each storage area corresponds to an electronic device, and is used to store the corresponding The user's voiceprint information obtained by the electronic device.

在本申请的一些实施例中,为了提升用户体验,步骤210具体可以包括:In some embodiments of the present application, in order to improve user experience, step 210 may specifically include:

获取目标电子设备传输的第一声纹信息,以及目标电子设备的设备信息;Obtain the first voiceprint information transmitted by the target electronic device and the device information of the target electronic device;

步骤220具体可以包括:Step 220 may specifically include:

基于设备信息,确定与目标电子设备对应的目标存储区域;Determine a target storage area corresponding to the target electronic device based on the device information;

在第一声纹信息与目标存储区域中存储的目标参考声纹信息匹配的情况下,确定用户的认证通过。If the first voiceprint information matches the target reference voiceprint information stored in the target storage area, it is determined that the user's authentication is passed.

其中,目标电子设备可以为至少一个电子设备中的任意一个。Wherein, the target electronic device may be any one of at least one electronic device.

目标存储区域可以安全元件中与目标电子设备对应的存储区域。The target storage area may be a storage area corresponding to the target electronic device in the secure element.

在本申请的一些实施例中,可以具有多个电子设备,多个电子设备均连接至网关,由网关统一管理。网关中设置SE,用于各与之相连的电子设备的声纹认证。In some embodiments of the present application, there may be multiple electronic devices, all of which are connected to the gateway and managed by the gateway in a unified manner. SE is set in the gateway for voiceprint authentication of each electronic device connected to it.

不同的电子设备可能分属于不同的用户,因此,不同的电子设备对应不同的声纹用户。每个电子设备与SE可以使用不同的秘钥进行通信。Different electronic devices may belong to different users, therefore, different electronic devices correspond to different voiceprint users. Each electronic device and SE can use different keys to communicate.

对此,SE可以划分存储区域,分别存储不同电子设备的用户的声纹,以及对应电子设备的秘钥。In this regard, the SE can divide the storage area to store the voiceprints of users of different electronic devices and the secret keys of the corresponding electronic devices.

在本申请的一些实施例中,第一声纹信息可以是由网关识别第一语音信息对应的目标电子设备后发送至安全元件的。In some embodiments of the present application, the first voiceprint information may be sent to the secure element after the gateway identifies the target electronic device corresponding to the first voice information.

设备信息可以为网关识别第一语音信息对应的目标电子设备后发送给至安全元件的。The device information may be sent to the secure element after the gateway identifies the target electronic device corresponding to the first voice information.

在本申请的实施例中,安全元件可以设置于网关中,该网关可以连接至少一个电子设备,安全元件中可以包括至少一个存储区域,每个存储区域对应于一个电子设备,用于存储对应电子设备获取的用户的声纹信息,如此可获取目标电子设备传输的第一声纹信息,以及目标电子设备的设备信息,然后根据设备信息,可确定与目标电子设备对应的目标存储区域,如此在第一声纹信息与目标存储区域中存储的目标参考声纹信息匹配的情况下,确定用户的认证通过,如此可分别对各电子设备进行声纹认证,并进行声纹支付,提升了用户体验。In the embodiment of the present application, the secure element can be set in the gateway, and the gateway can be connected to at least one electronic device, and the secure element can include at least one storage area, each storage area corresponds to an electronic device, and is used to store the corresponding electronic device. The voiceprint information of the user obtained by the device, so that the first voiceprint information transmitted by the target electronic device and the device information of the target electronic device can be obtained, and then according to the device information, the target storage area corresponding to the target electronic device can be determined, so in When the first voiceprint information matches the target reference voiceprint information stored in the target storage area, it is determined that the user's authentication has passed, so that voiceprint authentication can be performed on each electronic device, and voiceprint payment can be made, which improves user experience .

在本申请的一些实施例中,每个电子设备与安全元件可以基于不同的秘钥进行通信。In some embodiments of the present application, each electronic device and the secure element may communicate based on different keys.

在本申请的一些实施例中,第一声纹信息可以为电子设备基于第一秘钥加密后的声纹信息。In some embodiments of the present application, the first voiceprint information may be voiceprint information encrypted by the electronic device based on the first key.

在第一声纹信息与安全元件中的目标存储区域中存储的参考声纹信息匹配的情况下,确定用户的认证通过之前,上述所涉及的认证方法还可以包括:In the case where the first voiceprint information matches the reference voiceprint information stored in the target storage area in the secure element, before it is determined that the user's authentication is passed, the above-mentioned authentication method may further include:

基于与目标电子设备对应的第一秘钥,对第一声纹信息进行解密;Decrypting the first voiceprint information based on the first secret key corresponding to the target electronic device;

步骤220具体可以包括:Step 220 may specifically include:

在第一声纹信息解密完成,且在第一声纹信息与安全元件中的目标存储区域中存储的参考声纹信息匹配的情况下,确定用户的认证通过。When the decryption of the first voiceprint information is completed and the first voiceprint information matches the reference voiceprint information stored in the target storage area in the security element, it is determined that the user's authentication is passed.

其中,第一秘钥可以是电子设备与安全元件之间通信的秘钥。Wherein, the first secret key may be a secret key for communication between the electronic device and the secure element.

在本申请的一些实施例中,在安全元件设置于网关中时,支付流程可以如下:In some embodiments of the present application, when the secure element is set in the gateway, the payment process can be as follows:

用户与电子设备交互产生订单信息后,选择声纹支付,电子设备将声纹特征数据(即第一声纹信息)发送给网关,网关判断识别发来声纹的电子设备,将第一声纹信息以及对应电子设备的存储区域发送给SE,SE使用对应的秘钥(即第一秘钥)对第一声纹信息进行解密,并与此存储区域内的声纹信息(即目标参考声纹信息)进行对比,若一致,则返回认证成功的消息给网关,由网关与对应的服务器进行通信完成支付操作。After the user interacts with the electronic device to generate order information and selects voiceprint payment, the electronic device sends the voiceprint feature data (that is, the first voiceprint information) to the gateway, and the gateway judges and identifies the electronic device that sent the voiceprint, and sends the first voiceprint The information and the storage area of the corresponding electronic device are sent to the SE, and the SE uses the corresponding secret key (ie, the first secret key) to decrypt the first voiceprint information, and compares it with the voiceprint information in the storage area (ie, the target reference voiceprint information) for comparison, if they are consistent, a successful authentication message will be returned to the gateway, and the gateway will communicate with the corresponding server to complete the payment operation.

在本申请的实施例中,通过基于与目标电子设备对应的第一秘钥,对第一声纹信息进行解密,在第一声纹信息解密完成,且在第一声纹信息与安全元件中的目标存储区域中存储的参考声纹信息匹配的情况下,确定用户的认证通过,如此第一声纹信息是通过加密后的声纹信息,且在解密成功后,才进行认证,这样进一步确保了声纹信息的安全性。In the embodiment of the present application, by decrypting the first voiceprint information based on the first secret key corresponding to the target electronic device, the decryption of the first voiceprint information is completed, and the first voiceprint information and the security element When the reference voiceprint information stored in the target storage area matches, it is determined that the user’s authentication has passed, so that the first voiceprint information is the encrypted voiceprint information, and the authentication is performed only after the decryption is successful, which further ensures The security of the voiceprint information is ensured.

在本申请的一些实施例中,为了进一步提升用户体验,安全元件还可以设置于集成电路卡内。In some embodiments of the present application, in order to further improve user experience, the security element can also be set in the integrated circuit card.

步骤210具体可以包括:Step 210 may specifically include:

接收集成电路卡的控制元件发送的第一声纹信息;receiving the first voiceprint information sent by the control element of the integrated circuit card;

步骤220具体可以包括:Step 220 may specifically include:

利用第二秘钥对第一声纹信息进行解密;Using the second secret key to decrypt the first voiceprint information;

在第一声纹信息解密完成,且在第一声纹信息与目标参考声纹信息匹配的情况下,确定用户的认证通过。When the decryption of the first voiceprint information is completed and the first voiceprint information matches the target reference voiceprint information, it is determined that the authentication of the user passes.

其中,集成电路卡的控制元件可以是集成电路卡的控制器,例如可以是集成电路卡的微控制单元(Micro Control Unit,MCU)。Wherein, the control element of the integrated circuit card may be a controller of the integrated circuit card, for example, may be a micro control unit (Micro Control Unit, MCU) of the integrated circuit card.

第一声纹信息可以为基于第二秘钥加密后的声纹信息。The first voiceprint information may be voiceprint information encrypted based on the second key.

集成电路卡的控制元件所接收到的第一声纹信息是由电子设备发送的。The first voiceprint information received by the control element of the integrated circuit card is sent by the electronic device.

第二秘钥可以是集成电路卡和安全元件进行通信的秘钥。The second secret key may be a secret key for communication between the integrated circuit card and the secure element.

在本申请的实施例中,通过接收集成电路卡的控制元件发送的第一声纹信息,然后利用第二秘钥对第一声纹信息进行解密,在第一声纹信息解密完成,且在第一声纹信息与目标参考声纹信息匹配的情况下,确定用户的认证通过,如此第一声纹信息是通过加密后的声纹信息,且在解密成功后,才进行认证,这样进一步确保了声纹信息的安全性。In the embodiment of the present application, by receiving the first voiceprint information sent by the control element of the integrated circuit card, and then using the second secret key to decrypt the first voiceprint information, after the decryption of the first voiceprint information is completed, and at When the first voiceprint information matches the target reference voiceprint information, it is determined that the user’s authentication has passed. In this way, the first voiceprint information is the encrypted voiceprint information, and the authentication is performed only after the decryption is successful, which further ensures The security of the voiceprint information is ensured.

在本申请的一些实施例中,集成电路卡与电子设备可以绑定,集成电路卡与电子设备可以通信连接,在步骤220之后,上述所述涉及的认证方法还可以包括:In some embodiments of the present application, the integrated circuit card and the electronic device can be bound, and the integrated circuit card and the electronic device can be communicatively connected. After step 220, the above-mentioned authentication method may also include:

将认证通过的确认信息,以及将用于支付的待支付数据发送至集成电路卡的控制元件中,以使集成电路卡的控制元件将待支付数据发送至电子设备,以使电子设备基于待支付数据完成支付。Send the confirmation information of passing the authentication and the data to be paid for payment to the control element of the integrated circuit card, so that the control element of the integrated circuit card sends the data to be paid to the electronic device, so that the electronic device is based on the data to be paid The data completes the payment.

在本申请的一些实施例中,在将用于支付的待支付数据发送至集成电路卡的控制元件中之前,上述所述涉及的认证方法还可以包括:In some embodiments of the present application, before the data to be paid for payment is sent to the control element of the integrated circuit card, the above-mentioned authentication method may further include:

基于第三秘钥对待支付数据进行加密;Encrypt the payment data based on the third secret key;

所述将用于支付的待支付数据发送至集成电路卡的控制元件中,包括:The sending the data to be paid for payment to the control element of the integrated circuit card includes:

将加密后的用于支付的待支付数据发送至集成电路卡的控制元件中。其中,第三秘钥为安全元件与集成电路卡直接通信的秘钥。The encrypted data to be paid for payment is sent to the control element of the integrated circuit card. Wherein, the third secret key is a secret key for direct communication between the secure element and the integrated circuit card.

在本申请的一些实施例中,针对已有的电子设备,若其中无SE,可通过为电子设备配置一个单独的带SE的集成电路卡来实现安全认证支付。In some embodiments of the present application, for existing electronic devices, if there is no SE, the electronic device can be configured with a separate integrated circuit card with SE to realize secure authentication payment.

初始化时,可以将声纹特征数据(即参考声纹信息)置于集成电路卡的SE中,将集成电路卡与电子设备进行绑定,双方进行秘钥协商,可使用对称秘钥或非对称秘钥。During initialization, the voiceprint characteristic data (that is, the reference voiceprint information) can be placed in the SE of the integrated circuit card, the integrated circuit card and the electronic device are bound, and the two parties negotiate the secret key. Symmetrical key or asymmetrical key can be used Secret key.

用户与电子设备进行语音交互,生成订单信息,用户选择声纹验证后,电子设备与集成电路卡片可以通过近距离通信模块通信,例如通过NFC、BLE等进行通信。The user interacts with the electronic device by voice to generate order information. After the user selects voiceprint verification, the electronic device and the integrated circuit card can communicate through the short-range communication module, such as NFC, BLE, etc.

电子设备将获取的第一声纹信息使用协商好的第二秘钥加密,并通过NFC或BLE等传送给集成电路卡的MCU,集成电路的MCU将第一声纹信息传送给集成电路卡的SE,SE使用相应的第二秘钥解密后对第一声纹信息进行比对,认证通过后,将认证通过的信息传送给MCU,同时将用于支付的数据使用第三秘钥加密传送给集成电路卡MCU。集成电路卡MCU将用于支付的数据通过NFC或BLE等传送给电子设备,电子设备将加密的支付数据传送给银行服务器或商家服务器(商家服务器与银行服务器交互)。第二秘钥加密的用于支付的数据仅银行服务器可解密,电子设备仅作为数据传输中介,无法获得真实支付数据,保证支付数据安全。The electronic device encrypts the obtained first voiceprint information with the negotiated second secret key, and transmits it to the MCU of the integrated circuit card through NFC or BLE, etc., and the MCU of the integrated circuit transmits the first voiceprint information to the MCU of the integrated circuit card. SE, SE uses the corresponding second secret key to decrypt and then compares the first voiceprint information. After passing the authentication, it sends the certified information to the MCU, and at the same time encrypts the data for payment with the third secret key and sends it to the MCU. Integrated circuit card MCU. The integrated circuit card MCU transmits the data used for payment to the electronic device through NFC or BLE, etc., and the electronic device transmits the encrypted payment data to the bank server or merchant server (the merchant server interacts with the bank server). The payment data encrypted by the second secret key can only be decrypted by the bank server, and the electronic device is only used as a data transmission intermediary, and the real payment data cannot be obtained to ensure the security of the payment data.

在本申请的实施例中,安全元件可以设置于集成电路卡内,集成电路卡可以与电子设备绑定,如此可对电子设备进行声纹认证,并进行声纹支付,提升了用户体验。In the embodiment of the present application, the security element can be set in the integrated circuit card, and the integrated circuit card can be bound to the electronic device, so that the electronic device can be authenticated by voiceprint and paid by voiceprint, which improves the user experience.

在本申请的一些实施例中,还提供了认证方法的另一种可实现方式。图3是本申请实施例所提供的另一种认证方法的流程示意图,该认证方法的执行主体可以为上述图1的电子设备110。In some embodiments of the present application, another implementable manner of the authentication method is also provided. FIG. 3 is a schematic flowchart of another authentication method provided by the embodiment of the present application. The execution body of the authentication method may be the electronic device 110 in FIG. 1 .

需要说明的是,本申请实施例中与上述实施例中的相同名词,以及名词解释在此不再赘述。It should be noted that the same nouns in the embodiments of the present application and the above-mentioned embodiments, and the explanations of nouns will not be repeated here.

如图3所示,本申请实施例提供的认证方法可以包括步骤310-步骤330。As shown in FIG. 3 , the authentication method provided by the embodiment of the present application may include steps 310 - 330 .

步骤310、获取用户的第一语音信息。Step 310, acquiring first voice information of the user.

步骤320、对第一语音信息进行解析,得到第一声纹信息。Step 320: Analyze the first voice information to obtain the first voiceprint information.

步骤330、将第一声纹信息发送至安全元件中,以使安全元件将第一声纹信息和至少一个参考声纹信息进行匹配;并在第一声纹信息与目标参考声纹信息匹配的情况下,确定用户的认证通过,以及将认证通过的确认信息发送至电子设备,以使电子设备基于确认信息进行支付操作。Step 330: Send the first voiceprint information to the security element, so that the security element matches the first voiceprint information with at least one reference voiceprint information; and when the first voiceprint information matches the target reference voiceprint information In this case, it is determined that the authentication of the user is passed, and the confirmation information of passing the authentication is sent to the electronic device, so that the electronic device performs a payment operation based on the confirmation information.

其中,安全元件中可以包括至少一个参考声纹信息。Wherein, the security element may include at least one reference voiceprint information.

目标参考声纹信息可以为至少一个参考声纹信息中,与第一声纹信息匹配的参考声纹信息。The target reference voiceprint information may be reference voiceprint information that matches the first voiceprint information in at least one reference voiceprint information.

针对每个参考声纹信息,参考声纹信息可以为电子设备基于接收到的用户的第二语音信息解析得到。For each piece of reference voiceprint information, the reference voiceprint information may be obtained by the electronic device based on the received second voice information of the user.

在本申请的实施例中,通过对获取的用户的第一语音信息进行解析,得到第一声纹信息,将第一声纹信息发送至安全元件中,以使安全元件将第一声纹信息和至少一个参考声纹信息进行匹配;并在第一声纹信息与目标参考声纹信息匹配的情况下,确定用户的信息认证通过,这样将参考声纹信息存储至安全元件中,安全元件是安全环境,声纹信息不会被修改或盗取,如此可防止声纹信息被替换掉,保证了声纹信息的安全性,且在安全元件中进行声纹认证,安全性能更高。In the embodiment of the present application, the first voiceprint information is obtained by analyzing the acquired first voice information of the user, and the first voiceprint information is sent to the security element, so that the security element will transmit the first voiceprint information Matching with at least one reference voiceprint information; and in the case that the first voiceprint information matches the target reference voiceprint information, it is determined that the user's information authentication is passed, so that the reference voiceprint information is stored in the security element, and the security element is In a safe environment, the voiceprint information will not be modified or stolen, which prevents the voiceprint information from being replaced, ensures the security of the voiceprint information, and performs voiceprint authentication in the security element, which has higher security performance.

在本申请的一些实施例中,为了进一步声纹信息的安全性,在步骤330之前,上述涉及的认证方法还可以包括:In some embodiments of the present application, for further security of the voiceprint information, before step 330, the above-mentioned authentication method may also include:

基于第一声纹信息,对用户进行信息认证;Based on the first voiceprint information, information authentication is performed on the user;

步骤330具体可以包括:Step 330 may specifically include:

在确定用户的信息认证通过的情况下,将第一声纹信息发送至安全元件中,以使安全元件将第一声纹信息和至少一个参考声纹信息进行匹配;并在第一声纹信息与目标参考声纹信息匹配的情况下,确定用户的身份认证通过。When it is determined that the user's information authentication is passed, the first voiceprint information is sent to the security element, so that the security element matches the first voiceprint information with at least one reference voiceprint information; and in the first voiceprint information If it matches the target reference voiceprint information, it is determined that the user's identity authentication has passed.

其中,信息认证可以为验证基于用户输入的第一语音信息提取的数据内容与电子设备接收到的随机验证码是否一致的验证。Wherein, the information authentication may be a verification of whether the data content extracted based on the first voice information input by the user is consistent with the random verification code received by the electronic device.

在本申请的一些实施例中,可以是电子设备中显示出随机验证码,用户读取该随机验证码(即得到第一语音信息),在第一语音信息提取得到的用户读取的随时验证码,将提取的用户读取的随机验证码与电子设备中显示的随机验证码一致的情况下,可确定用户的信息认证通过。In some embodiments of the present application, it may be that a random verification code is displayed in the electronic device, and the user reads the random verification code (that is, obtains the first voice information), and the user reads the verification code at any time obtained by extracting the first voice information. code, if the extracted random verification code read by the user is consistent with the random verification code displayed on the electronic device, it can be determined that the user's information has been authenticated.

在本申请的实施例中,在确定用户的信息认证的通过的情况下,再次获取第一语音信息对应的第一声纹信息,在该第一声纹信息与目标参考声纹信息匹配的情况下,确定用户的身份认证通过,如此将信息认证和身份认证采用同一语音信息,可无需用户多次输入语音信息,节省了用户操作,提升了用户体验。In the embodiment of the present application, when it is determined that the user's information authentication is passed, the first voiceprint information corresponding to the first voice information is obtained again, and in the case where the first voiceprint information matches the target reference voiceprint information In this case, it is determined that the user's identity authentication is passed, so that the same voice information is used for information authentication and identity authentication, which does not require the user to input voice information multiple times, saves user operations, and improves user experience.

在本申请的一些实施例中,为了进一步提升用户体验,在步骤310之前,上述涉及的认证方法还可以包括:In some embodiments of the present application, in order to further improve user experience, before step 310, the above-mentioned authentication method may also include:

获取用户的购买指令;Obtain the user's purchase instruction;

基于购买指令,生成订单信息;Generate order information based on purchase instructions;

获取订单信息对应的随机验证码;Obtain the random verification code corresponding to the order information;

对应的,步骤310具体可以包括:Correspondingly, step 310 may specifically include:

获取用户读取随机验证码的第一语音信息。Obtain the first voice information for the user to read the random verification code.

其中,随机验证码可以是电子设备生成的用于对用户的信息进行验证的验证码。Wherein, the random verification code may be a verification code generated by the electronic device for verifying the user's information.

在本申请的一些实施例中,电子设备与商家服务器通信,在生成订单信息后,电子设备获得随机验证码(例如随机显示几个数字,要求用户按照其列举的规则读出)并显示给用户,获得用户输入的语音(即第一语音信息)后,进行识别,提取得到用户所说的内容,与商家服务器提供的动态随机验证码进行对比,验证用户说出的内容是否与显示的内容一致。如果是,则再次获取用户的第一语音信息,基于第一语音信息对用户进行身份认证。In some embodiments of the present application, the electronic device communicates with the merchant server, and after generating the order information, the electronic device obtains a random verification code (such as randomly displaying several numbers, requiring the user to read it according to the rules listed therein) and displays it to the user After obtaining the voice input by the user (that is, the first voice information), recognize it, extract the content spoken by the user, compare it with the dynamic random verification code provided by the merchant server, and verify whether the content spoken by the user is consistent with the displayed content . If so, the user's first voice information is acquired again, and the user's identity is authenticated based on the first voice information.

在本申请的一些实施例中,将用户所说的第一语音信息与随机验证码进行比对时,可在本地(设备存储并分析服务器发来的动态验证信息)执行,也可在服务器端(设备提取用户内容后,将内容发送至服务器端,由服务器进行对比)进行,这里不做限定。In some embodiments of the present application, when comparing the first voice information spoken by the user with the random verification code, it can be performed locally (the device stores and analyzes the dynamic verification information sent by the server), or it can be performed on the server side (After the device extracts the user content, it sends the content to the server for comparison), which is not limited here.

在本申请的实施例中,通过基于获取的用户的购买指令,生成订单信息,然后获取订单信息对应的随机验证码,获取用户读取随机验证码的第一语音信息,如此可基于第一语音信息对用户进行信息认证和身份认证,这样先进行信息认证,再进行身份认证,提升了认证的安全性,同时通过同一语音信息先后进行信息认证和身份认证,无需获取多条用户的语音信息,提升了用户体验。In the embodiment of this application, the order information is generated based on the acquired user's purchase instruction, and then the random verification code corresponding to the order information is obtained, and the first voice information for the user to read the random verification code is obtained. In this way, based on the first voice Information authentication and identity authentication are performed on users, so that information authentication is performed first, and then identity authentication is performed, which improves the security of authentication. Improved user experience.

在本申请的一些实施例中,为了进一步声纹信息的安全性,在步骤310之前,上述涉及的认证方法还可以包括:In some embodiments of the present application, for further security of the voiceprint information, before step 310, the above-mentioned authentication method may also include:

获取用户的第二语音信息;Obtain the second voice information of the user;

对第二语音信息进行解析,得到参考声纹信息;Analyzing the second voice information to obtain reference voiceprint information;

将参考声纹信息发送至所述安全元件中,以使安全元件存储参考声纹信息。Sending the reference voiceprint information to the secure element, so that the secure element stores the reference voiceprint information.

在本申请的一些实施例中,可以在安全环境下,采集用户的声音(即第二语音信息),将声音转换成声纹特征数据(即参考声纹信息),并将此声纹特征数据初始存储在电子设备的SE中,或者由服务器通过安全通道下发存储至电子设备的SE内。在本申请的实施例中,通过将获取的第二语音信息对应的声纹信息存储至安全元件中,提升了参考声纹信息的安全性。In some embodiments of the present application, the user's voice (ie, second voice information) can be collected in a safe environment, the voice can be converted into voiceprint feature data (ie, reference voiceprint information), and the voiceprint feature data It is initially stored in the SE of the electronic device, or is sent and stored in the SE of the electronic device by the server through a secure channel. In the embodiment of the present application, the security of the reference voiceprint information is improved by storing the acquired voiceprint information corresponding to the second voice information in the security element.

上述认证方法中,可以使用电子设备通过语音交互购买商品服务,交易过程中,使用SE对用户的声纹信息进行认证,认证通过后才可进行支付操作。In the above authentication method, the electronic device can be used to purchase goods and services through voice interaction. During the transaction, the SE is used to authenticate the user's voiceprint information, and the payment operation can only be performed after the authentication is passed.

可能的使用场景包括:使用智能音箱购买歌曲,使用智能电视购买电影或者其它在线售卖的物品。Possible usage scenarios include: using smart speakers to buy songs, using smart TVs to buy movies or other items sold online.

整个流程可以包括:智能音箱的控制装置接收语音指令(即第三语音信息),生成交易订单信息,要求用户进行声纹认证,将用户输入的声纹特征发送给SE,等待并接收SE的认证消息,SE确认可以交易后,激活交易操作。The whole process may include: the control device of the smart speaker receives voice commands (that is, the third voice information), generates transaction order information, requires the user to perform voiceprint authentication, sends the voiceprint features input by the user to SE, and waits for and receives SE's authentication message, after SE confirms that it can be traded, activate the trading operation.

本方案支持联机支付、单联机支付和双脱机支付,下面这个场景以联机支付为例进行描述。This solution supports online payment, single online payment and dual offline payment. The following scenario takes online payment as an example to describe.

常规的交易流程主要包括:(1)根据指令生成订单;(2)SE语音认证;(3)激活订单。The conventional transaction process mainly includes: (1) generating orders according to instructions; (2) SE voice authentication; (3) activating orders.

(1)电子设备的输入装置接收语音指令,生成订单信息。(1) The input device of the electronic device receives the voice command and generates order information.

这里的电子设备具体的可以是智能音箱。The electronic device here may specifically be a smart speaker.

订单信息至少可以包括:购买物品种类、数量、总价和收款方。The order information may at least include: type, quantity, total price and payee of purchased items.

生成订单信息的方式可能为:用户通过语音人机界面与电子设备进行交互。例如用户通过语音发出购买指令,电子设备的控制装置识别并解析用户语音,提取并生成订单信息,通过人机交互界面与用户互动,由用户确认订单信息。The way of generating the order information may be: the user interacts with the electronic device through a voice man-machine interface. For example, the user sends a purchase instruction through voice, and the control device of the electronic device recognizes and analyzes the user's voice, extracts and generates order information, interacts with the user through a human-computer interaction interface, and the user confirms the order information.

(2)确认订单信息后,电子设备默认或者由用户选择进行声纹认证。(2) After confirming the order information, the electronic device performs voiceprint authentication by default or by the user's choice.

声纹认证包括两步:信息认证和身份认证。Voiceprint authentication includes two steps: information authentication and identity authentication.

第一步:信息认证Step 1: Information Authentication

电子设备与商家服务器通信,在生成订单信息后,电子设备获得随机验证码(例如随机显示几个数字,要求用户按照其列举的规则读出)并显示给用户,获得用户输入的语音(即第二语音信息)后,进行识别,提取得到用户所说的内容,与商家服务器提供的动态随机验证码进行对比,验证用户说出的内容是否与显示的内容一致。如果是,则获取用户的第一语音信息,基于第一语音信息对用户进行身份认证。The electronic device communicates with the merchant's server. After generating the order information, the electronic device obtains a random verification code (such as randomly displaying several numbers and requires the user to read it out according to the rules listed) and displays it to the user, and obtains the voice input by the user (that is, the first (2) voice information), identify and extract what the user said, compare it with the dynamic random verification code provided by the merchant server, and verify whether the content spoken by the user is consistent with the displayed content. If so, acquire the first voice information of the user, and perform identity authentication on the user based on the first voice information.

第二步:身份认证Step 2: Authentication

电子设备的麦克风获取用户输入的认证声音,即第一语音信息,(为了保证良好的用户体验,避免用户输入两次语音信息,优选的,用户进行信息认证时的声音,同时作为身份认证的声纹模板),电子设备的控制装置解析计算,转换成声纹特征模板(即第一声纹信息),将转换得到的第一声纹信息发送给SE,SE将收到的第一声纹信息与预置在SE中的参照声纹信息进行对比,判断是否与预存储的参照声纹信息是否属于同一个人。当对比所得重合度(分数)大于某一阈值(该预设可根据用户需求自行设置)时,认证通过。SE将认证成功的消息发送给电子设备,激活订单并进行后续交易流程。The microphone of the electronic device acquires the authentication sound input by the user, that is, the first voice information, (in order to ensure a good user experience and avoid the user inputting voice information twice, preferably, the voice when the user performs information authentication is also used as the voice for identity authentication template), the control device of the electronic equipment analyzes and calculates, converts it into a voiceprint feature template (that is, the first voiceprint information), and sends the converted first voiceprint information to SE, and SE sends the received first voiceprint information Compared with the reference voiceprint information preset in the SE, it is judged whether it belongs to the same person as the prestored reference voiceprint information. When the coincidence degree (score) obtained by comparison is greater than a certain threshold (the preset can be set according to the user's needs), the authentication is passed. SE sends a successful authentication message to the electronic device, activates the order and proceeds with the subsequent transaction process.

需要说明的是,SE中存储特定语句的声纹特征数据(即第一声纹信息),用户认证时,也需要说出这相同的特定语句(对应场景:朗读固定的数字串,与SE中存储的同一数字串的声纹信息进行对比)。It should be noted that the voiceprint feature data of a specific sentence (namely the first voiceprint information) is stored in the SE, and the user also needs to speak the same specific sentence when authenticating (corresponding scenario: reading a fixed number string aloud, which is the same as in the SE The stored voiceprint information of the same digital string is compared).

SE中存储用户的多个声纹特征数据,用户认证时,说出其它的语句,也能基于其它的语句判断声纹是否相同(对应场景:朗读随机的数字或文字,提取声纹信息,与SE中存储的声纹信息进行对比,判断是否来自于同一个人)。Multiple voiceprint feature data of the user are stored in the SE. When the user is authenticated, other sentences can be spoken, and the voiceprints can also be judged based on other sentences (corresponding scenario: read random numbers or text aloud, extract voiceprint information, and Compare the voiceprint information stored in the SE to determine whether it comes from the same person).

关于参考声纹信息:可以是在安全环境下,采集用户的声音,将声音转换成声纹特征数据(即参考声纹信息),并将此声纹特征数据初始存储在SE中,或者由服务器通过安全通道下发存储至SE内。Regarding the reference voiceprint information: in a safe environment, collect the user's voice, convert the voice into voiceprint feature data (that is, refer to voiceprint information), and initially store the voiceprint feature data in the SE, or by the server It is sent and stored to SE through a secure channel.

一个SE中可以存储多个人的声纹信息,在声纹认证时,SE将收到的声纹特征数据与预置在SE中的所有参照声纹特征数据一一进行对比,判断是否与预存储的声纹中的至少一个属于同一个人。One SE can store voiceprint information of multiple people. During voiceprint authentication, SE will compare the received voiceprint feature data with all the reference voiceprint feature data preset in SE to judge whether it is consistent with the pre-stored voiceprint feature data. At least one of the voiceprints of belong to the same person.

(3)认证通过后进行支付操作。(3) After the authentication is passed, the payment operation is performed.

SE确认声纹属于同一人后,激活支付操作。具体形式为:提供用于支付的数据(即待支付数据)。SE将用于支付的数据加密,并传送给电子设备的控制装置,控制装置通过通信模块将支付信息传输给收款方或银行服务器。After confirming that the voiceprint belongs to the same person, SE activates the payment operation. The specific form is: providing data for payment (that is, data to be paid). The SE encrypts the data used for payment and sends it to the control device of the electronic device, and the control device transmits the payment information to the payee or the bank server through the communication module.

在本申请的实施例中,由于待支付数据来源于SE中,如此保证数据安全和防篡改。In the embodiment of this application, since the data to be paid comes from the SE, data security and tamper-proof are ensured in this way.

需要说明的是,本申请实施例提供的认证方法,执行主体可以为认证装置,或者该认证装置中的用于执行认证方法的控制模块。It should be noted that, for the authentication method provided in the embodiment of the present application, the execution subject may be an authentication device, or a control module in the authentication device for executing the authentication method.

基于与上述的认证方法相同的发明构思,本申请还提供了一种认证装置。下面结合图4对本申请实施例提供的认证装置进行详细说明。Based on the same inventive concept as the above authentication method, the present application also provides an authentication device. The authentication device provided by the embodiment of the present application will be described in detail below with reference to FIG. 4 .

图4是根据一示例性实施例示出的一种认证装置的结构示意图。Fig. 4 is a schematic structural diagram of an authentication device according to an exemplary embodiment.

如图4所示,该认证装置400可以应用于安全元件,该认证装置400可以包括:As shown in FIG. 4, the authentication device 400 can be applied to a secure element, and the authentication device 400 can include:

第一获取模块410,用于获取第一声纹信息;其中,所述第一声纹信息为电子设备基于接收到的用户的第一语音信息解析得到,The first acquiring module 410 is configured to acquire first voiceprint information; wherein, the first voiceprint information is obtained by analyzing the first voice information of the user received by the electronic device,

第一确定模块420,用于在所述第一声纹信息与目标参考声纹信息匹配的情况下,确定所述用户的认证通过;其中,所述目标参考声纹信息为至少一个参考声纹信息中,与所述第一声纹信息匹配的参考声纹信息;针对每个参考声纹信息,所述参考声纹信息为所述电子设备基于接收到的用户的第二语音信息解析得到;The first determining module 420 is configured to determine that the user has passed the authentication when the first voiceprint information matches the target reference voiceprint information; wherein the target reference voiceprint information is at least one reference voiceprint In the information, reference voiceprint information matching the first voiceprint information; for each reference voiceprint information, the reference voiceprint information is obtained by the electronic device based on the received second voice information of the user;

第一发送模块430,用于将所述认证通过的确认信息发送至所述电子设备,以使所述电子设备基于所述确认信息进行支付操作。The first sending module 430 is configured to send the confirmation information of passing the authentication to the electronic device, so that the electronic device performs a payment operation based on the confirmation information.

在本申请的实施例中,通过第一获取模块获取第一声纹信息,基于第一确定模块在第一声纹信息与目标参考声纹信息匹配的情况下,确定用户的认证通过,基于第一发送模块将认证通过的确认信息发送至电子设备,以使电子设备基于确认信息进行支付操作,本申请中将参考声纹信息存储至安全元件中,由于安全元件的环境是安全的,声纹信息无法被修改或盗取,如此可防止声纹信息被替换掉,确保了声纹信息的安全性。In the embodiment of the present application, the first voiceprint information is acquired by the first acquisition module, based on the fact that the first determination module matches the first voiceprint information with the target reference voiceprint information, it is determined that the user's authentication is passed, and based on the second A sending module sends the confirmation information of passing the authentication to the electronic device, so that the electronic device performs payment operations based on the confirmation information. In this application, the reference voiceprint information is stored in the security element. Since the environment of the security element is safe, the voiceprint The information cannot be modified or stolen, which prevents the voiceprint information from being replaced and ensures the security of the voiceprint information.

在本申请的一些实施例中,为了确保支付的安全性,第一获取模块410具体可以用于:In some embodiments of the present application, in order to ensure payment security, the first acquisition module 410 can be specifically used to:

在确定电子设备对所述用户的信息认证通过的情况下,获取第一声纹信息;其中,所述信息认证为验证基于所述用户输入的第一语音信息提取的数据内容与电子设备接收到的随机验证码是否一致;When it is determined that the electronic device has passed the user's information authentication, the first voiceprint information is obtained; wherein the information authentication is to verify that the data content extracted based on the first voice information input by the user is consistent with that received by the electronic device Whether the random verification codes are consistent;

第一确定模块420具体可以用于:The first determining module 420 can specifically be used for:

在所述第一声纹信息与目标参考声纹信息匹配的情况下,确定所述用户的身份认证通过。If the first voiceprint information matches the target reference voiceprint information, it is determined that the identity authentication of the user is passed.

在本申请的一些实施例中,为了提升用户体验,所述电子设备对所述用户的信息认证和安全元件对用户的所述身份认证所采用的语音信息为同一语音信息。In some embodiments of the present application, in order to improve user experience, the voice information used for the information authentication of the user by the electronic device and the identity authentication of the user by the security element is the same voice information.

在本申请的一些实施例中,上述所涉及的认证装置还可以包括:In some embodiments of the present application, the authentication device mentioned above may also include:

第一生成模块,用于生成用于支付订单信息的待支付数据;所述订单信息为所述电子设备响应于所述用户的购买指令生成;A first generation module, configured to generate data to be paid for payment order information; the order information is generated by the electronic device in response to the user's purchase instruction;

第二发送模块,用于将所述待支付数据发送至所述电子设备,以基于所述待支付数据进行支付。The second sending module is configured to send the data to be paid to the electronic device, so as to make payment based on the data to be paid.

在本申请的一些实施例中,所述电子设备和所述收款设备中至少一项处于脱机状态,所述电子设备和所述收款设备通信连接;所述第二发送模块具体用于:In some embodiments of the present application, at least one of the electronic device and the payment collection device is offline, and the electronic device and the payment collection device are connected in communication; the second sending module is specifically used to :

在所述电子设备处于脱机状态的情况下,所述安全元件将所述待支付数据发送至所述电子设备,以使所述电子设备将待支付数据对应的支付信息发送至收款设备;When the electronic device is offline, the secure element sends the data to be paid to the electronic device, so that the electronic device sends payment information corresponding to the data to be paid to the collection device;

在所述收款设备处于脱机状态的情况下,所述安全元件将所述待支付数据发送至所述电子设备,以使所述电子设备将待支付数据对应的支付信息发送至服务器。When the payment collection device is offline, the secure element sends the data to be paid to the electronic device, so that the electronic device sends payment information corresponding to the data to be paid to the server.

在本申请的一些实施例中,所述安全元件设置于网关中,所述网关连接至少一个电子设备,所述安全元件中包括至少一个存储区域,每个存储区域对应于一个电子设备,用于存储对应电子设备获取的用户的声纹信息。In some embodiments of the present application, the secure element is set in a gateway, the gateway is connected to at least one electronic device, and the secure element includes at least one storage area, each storage area corresponds to an electronic device, for The user's voiceprint information acquired by the corresponding electronic device is stored.

在本申请的一些实施例中,为了提升用户体验,第一获取模块410具体可以用于:In some embodiments of the present application, in order to improve user experience, the first acquiring module 410 can be specifically used to:

获取目标电子设备对应的第一声纹信息,以及所述目标电子设备的设备信息;其中,所述目标电子设备为至少一个电子设备中的任意一个;所述第一声纹信息由所述网关识别第一语音信息对应的所述目标电子设备后发送至所述安全元件;所述设备信息为所述网关识别第一语音信息对应的所述目标电子设备后发送至所述安全元件;Obtain the first voiceprint information corresponding to the target electronic device, and the device information of the target electronic device; wherein, the target electronic device is any one of at least one electronic device; the first voiceprint information is provided by the gateway identifying the target electronic device corresponding to the first voice information and sending it to the secure element; the device information is sent to the secure element after the gateway identifies the target electronic device corresponding to the first voice information;

第一确定模块420具体可以包括:The first determining module 420 may specifically include:

第一确定单元,用于基于所述设备信息,确定与所述目标电子设备对应的目标存储区域;A first determining unit, configured to determine a target storage area corresponding to the target electronic device based on the device information;

第二确定单元,用于在所述第一声纹信息与所述目标存储区域中存储的目标参考声纹信息匹配的情况下,确定所述用户的认证通过;其中,所述目标存储区域为所述安全元件中与所述目标电子设备对应的存储区域。The second determining unit is configured to determine that the user's authentication has passed if the first voiceprint information matches the target reference voiceprint information stored in the target storage area; wherein the target storage area is A storage area in the secure element corresponding to the target electronic device.

在本申请的一些实施例中,每个电子设备与所述安全元件基于不同的秘钥进行通信;所述第一声纹信息为所述电子设备基于第一秘钥加密后的声纹信息;In some embodiments of the present application, each electronic device communicates with the secure element based on a different key; the first voiceprint information is the electronic device's encrypted voiceprint information based on the first key;

所述第一确定模块420还可以包括:The first determining module 420 may also include:

基于与所述目标电子设备对应的第一秘钥,对所述第一声纹信息进行解密;Decrypting the first voiceprint information based on the first secret key corresponding to the target electronic device;

第二确定单元具体可以用于:The second determination unit can specifically be used for:

在所述第一声纹信息解密完成,且在所述第一声纹信息与所述安全元件中的目标存储区域中存储的参考声纹信息匹配的情况下,确定所述用户的认证通过。When the decryption of the first voiceprint information is completed and the first voiceprint information matches the reference voiceprint information stored in the target storage area in the security element, it is determined that the authentication of the user is passed.

在本申请的一些实施例中,为了进一步提升用户体验,所述安全元件设置于集成电路卡内。In some embodiments of the present application, in order to further improve user experience, the secure element is set in an integrated circuit card.

第一获取模块410具体可以用于:The first acquisition module 410 can specifically be used for:

接收所述集成电路卡的控制元件发送的第一声纹信息;其中所述第一声纹信息为基于第二秘钥加密后的声纹信息,所述集成电路卡的控制元件所接收到的第一声纹信息是由所述电子设备发送的;receiving the first voiceprint information sent by the control element of the integrated circuit card; wherein the first voiceprint information is voiceprint information encrypted based on the second key, and received by the control element of the integrated circuit card The first voiceprint information is sent by the electronic device;

第一确定模块420具体可以用于:The first determining module 420 can specifically be used for:

利用所述第二秘钥对所述第一声纹信息进行解密;Decrypting the first voiceprint information by using the second secret key;

在所述第一声纹信息解密完成,且在所述第一声纹信息与目标参考声纹信息匹配的情况下,确定所述用户的认证通过。When the decryption of the first voiceprint information is completed and the first voiceprint information matches the target reference voiceprint information, it is determined that the authentication of the user passes.

在本申请的一些实施例中,所述集成电路卡与所述电子设备绑定,所述集成电路卡与所述电子设备通信连接,上述所涉及的认证装置还可以包括:In some embodiments of the present application, the integrated circuit card is bound to the electronic device, and the integrated circuit card is communicatively connected to the electronic device. The above-mentioned authentication device may also include:

第三发送模块,用于将认证通过的确认信息,以及将用于支付的待支付数据发送至所述集成电路卡的控制元件中,以使所述集成电路卡的控制元件将所述待支付数据发送至所述电子设备,以使所述电子设备基于所述待支付数据完成支付。The third sending module is used to send the confirmation information of passing the authentication and the data to be paid for payment to the control element of the integrated circuit card, so that the control element of the integrated circuit card sends the to-be-paid data to the control element of the integrated circuit card The data is sent to the electronic device, so that the electronic device completes the payment based on the data to be paid.

在本申请的一些实施例中,上述所涉及的认证装置还可以包括:In some embodiments of the present application, the authentication device mentioned above may also include:

加密模块,用于基于第三秘钥对所述待支付数据进行加密;An encryption module, configured to encrypt the data to be paid based on a third secret key;

所述第三发送模块具体可以用于:The third sending module can specifically be used for:

将加密后的用于支付的待支付数据发送至所述集成电路卡的控制元件中。The encrypted data to be paid for payment is sent to the control element of the integrated circuit card.

本申请实施例提供的认证装置,可以用于执行上述执行主体为安全元件的方法实施例提供的认证方法,其实现原理和技术效果类似,为简介起见,在此不再赘述。The authentication device provided in the embodiment of this application can be used to execute the authentication method provided in the method embodiment in which the executive body is a secure element. The implementation principle and technical effect are similar, and for the sake of brief introduction, details are not repeated here.

图5是根据一示例性实施例示出的另一种认证装置的结构示意图。Fig. 5 is a schematic structural diagram of another authentication device according to an exemplary embodiment.

如图5所示,该认证装置500可以应用于电子设备,该认证装置500可以包括:As shown in Figure 5, the authentication device 500 can be applied to electronic equipment, and the authentication device 500 can include:

第一获取模块510,用于获取用户的第一语音信息;The first acquiring module 510 is configured to acquire the first voice information of the user;

第一确定模块520,用于对所述第一语音信息进行解析,得到第一声纹信息;The first determining module 520 is configured to analyze the first voice information to obtain the first voiceprint information;

第一发送模块530,用于将所述第一声纹信息发送至安全元件中,以使所述安全元件将所述第一声纹信息和至少一个参考声纹信息进行匹配;并在所述第一声纹信息与目标参考声纹信息匹配的情况下,确定所述用户的认证通过,以及将所述认证通过的确认信息发送至所述电子设备,以使所述电子设备基于所述确认信息进行支付操作;其中,所述安全元件中包括至少一个参考声纹信息,所述目标参考声纹信息为所述至少一个参考声纹信息中,与所述第一声纹信息匹配的参考声纹信息;针对每个参考声纹信息,所述参考声纹信息为所述电子设备基于接收到的用户的第二语音信息解析得到。The first sending module 530 is configured to send the first voiceprint information to the security element, so that the security element matches the first voiceprint information with at least one reference voiceprint information; and in the When the first voiceprint information matches the target reference voiceprint information, determine that the user’s authentication has passed, and send the confirmation information of the authentication pass to the electronic device, so that the electronic device information to perform payment operations; wherein, the security element includes at least one reference voiceprint information, and the target reference voiceprint information is the reference voice that matches the first voiceprint information among the at least one reference voiceprint information fingerprint information; for each piece of reference voiceprint information, the reference voiceprint information is obtained by the electronic device based on the received second voice information of the user.

在本申请的实施例中,通过第一确定模块对获取模块获取的用户的第一语音信息进行解析,得到第一声纹信息,基于第一发送模块将第一声纹信息发送至安全元件中,以使安全元件将第一声纹信息和至少一个参考声纹信息进行匹配;并在第一声纹信息与目标参考声纹信息匹配的情况下,确定用户的认证通过,这样将参考声纹信息存储至安全元件中,安全元件是安全环境,声纹信息不会被修改或盗取,如此可防止声纹信息被替换掉,保证了声纹信息的安全性,且在安全元件中进行声纹认证,安全性能更高。In the embodiment of the present application, the first voiceprint information of the user obtained by the acquisition module is analyzed by the first determination module to obtain the first voiceprint information, and the first voiceprint information is sent to the security element based on the first sending module so that the security element matches the first voiceprint information with at least one reference voiceprint information; The information is stored in the security element, which is a safe environment, and the voiceprint information will not be modified or stolen, which prevents the voiceprint information from being replaced, ensures the security of the voiceprint information, and conducts voiceprint information in the security element. Pattern authentication, higher security performance.

在本申请的一些实施例中,为了进一步提升声纹信息的安全性,In some embodiments of this application, in order to further improve the security of voiceprint information,

信息认证模块,用于基于所述第一声纹信息,对所述用户进行信息认证;其中,所述信息认证为验证基于所述用户输入的第一语音信息提取的数据内容与电子设备接收到的随机验证码是否一致;An information authentication module, configured to perform information authentication on the user based on the first voiceprint information; wherein, the information authentication is to verify that the data content extracted based on the first voice information input by the user is consistent with that received by the electronic device Whether the random verification codes are consistent;

第一发送模块530具体可以用于:The first sending module 530 can specifically be used for:

在确定所述用户的信息认证通过的情况下,将所述第一声纹信息发送至安全元件中,以使所述安全元件将所述第一声纹信息和至少一个参考声纹信息进行匹配;并在所述第一声纹信息与目标参考声纹信息匹配的情况下,确定所述用户的身份认证通过。When it is determined that the information authentication of the user is passed, sending the first voiceprint information to a security element, so that the security element matches the first voiceprint information with at least one reference voiceprint information ; and when the first voiceprint information matches the target reference voiceprint information, determine that the user's identity authentication has passed.

在本申请的一些实施例中,为了进一步提升用户体验,上述所涉及的认证装置还可以包括:In some embodiments of the present application, in order to further improve user experience, the above-mentioned authentication device may also include:

第三获取模块,用于获取所述用户的购买指令;A third acquiring module, configured to acquire the user's purchase instruction;

第一生成模块,用于基于所述购买指令,生成订单信息;A first generation module, configured to generate order information based on the purchase instruction;

第四获取模块,用于获取所述订单信息对应的随机验证码;其中,所述随机验证码用于对所述用户进行信息验证;A fourth obtaining module, configured to obtain a random verification code corresponding to the order information; wherein, the random verification code is used to verify information of the user;

第一获取模块510具体可以用于:The first obtaining module 510 can specifically be used for:

获取所述用户读取所述随机验证码的第一语音信息。Acquiring first voice information for the user to read the random verification code.

在本申请的一些实施例中,为了进一步提升声纹信息的安全性,上述所涉及的认证装置还可以包括:In some embodiments of the present application, in order to further improve the security of the voiceprint information, the above-mentioned authentication device may further include:

第二获取模块,用于获取用户的第二语音信息;The second obtaining module is used to obtain the second voice information of the user;

第二确定模块,用于对所述第二语音信息进行解析,得到参考声纹信息;The second determination module is configured to analyze the second voice information to obtain reference voiceprint information;

第三发送模块,用于将所述参考声纹信息发送至所述安全元件中,以使所述安全元件存储所述参考声纹信息。A third sending module, configured to send the reference voiceprint information to the secure element, so that the secure element stores the reference voiceprint information.

本申请实施例提供的认证装置,可以用于执行上述执行主体为电子设备的方法实施例提供的认证方法,其实现原理和技术效果类似,为简介起见,在此不再赘述。The authentication device provided by the embodiment of the present application can be used to implement the authentication method provided by the above-mentioned method embodiment in which the execution subject is an electronic device. The implementation principle and technical effect are similar, and for the sake of brief introduction, details are not repeated here.

基于同一发明构思,本申请实施例还提供了一种电子设备。Based on the same inventive concept, the embodiment of the present application also provides an electronic device.

图6是本申请实施例提供的一种电子设备的结构示意图。如图6所示,电子设备可以包括处理器601以及存储有计算机程序或指令的存储器602。FIG. 6 is a schematic structural diagram of an electronic device provided by an embodiment of the present application. As shown in FIG. 6 , the electronic device may include a processor 601 and a memory 602 storing computer programs or instructions.

具体地,上述处理器601可以包括中央处理器(CPU),或者特定集成电路(Application Specific Integrated Circuit,ASIC),或者可以被配置成实施本发明实施例的一个或多个集成电路。Specifically, the above-mentioned processor 601 may include a central processing unit (CPU), or an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), or may be configured to implement one or more integrated circuits in the embodiments of the present invention.

存储器602可以包括用于数据或指令的大容量存储器。举例来说而非限制,存储器602可包括硬盘驱动器(Hard Disk Drive,HDD)、软盘驱动器、闪存、光盘、磁光盘、磁带或通用串行总线(Universal Serial Bus,USB)驱动器或者两个或更多个以上这些的组合。在合适的情况下,存储器602可包括可移除或不可移除(或固定)的介质。在合适的情况下,存储器602可在综合网关容灾设备的内部或外部。在特定实施例中,存储器602是非易失性固态存储器。存储器可包括只读存储器(Read Only Memory image,ROM)、随机存取存储器(Random-Access Memory,RAM)、磁盘存储介质设备、光存储介质设备、闪存设备、电气、光学或其他物理/有形的存储器存储设备。因此,通常,存储器包括一个或多个编码有包括计算机可执行指令的软件的有形(非暂态)计算机可读存储介质(例如,存储器设备),并且当该软件被执行(例如,由一个或多个处理器)时,其可操作来执行上述实施例提供的认证方法所描述的操作。Memory 602 may include mass storage for data or instructions. By way of example and not limitation, memory 602 may include a hard disk drive (Hard Disk Drive, HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a Universal Serial Bus (Universal Serial Bus, USB) drive or two or more Combinations of multiple of the above. Storage 602 may include removable or non-removable (or fixed) media, where appropriate. Under appropriate circumstances, the storage 602 can be inside or outside the comprehensive gateway disaster recovery device. In a particular embodiment, memory 602 is a non-volatile solid-state memory. Memory may include read-only memory (Read Only Memory image, ROM), random-access memory (Random-Access Memory, RAM), disk storage media devices, optical storage media devices, flash memory devices, electrical, optical, or other physical/tangible Memory storage device. Thus, in general, memory includes one or more tangible (non-transitory) computer-readable storage media (e.g., memory devices) encoded with software comprising computer-executable instructions, and when the software is executed (e.g., by one or When there are multiple processors), it is operable to execute the operations described in the authentication method provided by the above embodiments.

处理器601通过读取并执行存储器602中存储的计算机程序指令,以实现上述实施例中的任意一种认证方法。The processor 601 implements any authentication method in the foregoing embodiments by reading and executing the computer program instructions stored in the memory 602 .

在一个示例中,电子设备还可包括通信接口603和总线610。其中,如图6所示,处理器601、存储器602、通信接口603通过总线610连接并完成相互间的通信。In one example, the electronic device may further include a communication interface 603 and a bus 610 . Wherein, as shown in FIG. 6 , a processor 601 , a memory 602 , and a communication interface 603 are connected through a bus 610 to complete mutual communication.

通信接口603,主要用于实现本发明实施例中各模块、设备、单元和/或设备之间的通信。The communication interface 603 is mainly used to implement communication between various modules, devices, units and/or devices in the embodiments of the present invention.

总线610包括硬件、软件或两者,将电子设备的部件彼此耦接在一起。举例来说而非限制,总线可包括加速图形端口(AGP)或其他图形总线、增强工业标准架构(EISA)总线、前端总线(FSB)、超传输(HT)互连、工业标准架构(ISA)总线、无限带宽互连、低引脚数(LPC)总线、存储器总线、微信道架构(MCA)总线、外围组件互连(PCI)总线、PCI-Express(PCI-X)总线、串行高级技术附件(SATA)总线、视频电子标准协会局部(VLB)总线或其他合适的总线或者两个或更多个以上这些的组合。在合适的情况下,总线610可包括一个或多个总线。尽管本发明实施例描述和示出了特定的总线,但本发明考虑任何合适的总线或互连。Bus 610 includes hardware, software, or both, and couples the components of the electronic device to each other. By way of example and not limitation, the bus may include Accelerated Graphics Port (AGP) or other graphics bus, Enhanced Industry Standard Architecture (EISA) bus, Front Side Bus (FSB), HyperTransport (HT) interconnect, Industry Standard Architecture (ISA) Bus, Infiniband Interconnect, Low Pin Count (LPC) Bus, Memory Bus, Micro Channel Architecture (MCA) Bus, Peripheral Component Interconnect (PCI) Bus, PCI-Express (PCI-X) Bus, Serial Advanced Technology Attachment (SATA) bus, Video Electronics Standards Association Local (VLB) bus or other suitable bus or a combination of two or more of these. Bus 610 may comprise one or more buses, where appropriate. Although embodiments of the invention describe and illustrate a particular bus, the invention contemplates any suitable bus or interconnect.

该电子设备可以执行本发明实施例中的认证方法,从而实现图2-图3描述的认证方法。The electronic device can execute the authentication method in the embodiment of the present invention, so as to realize the authentication method described in FIG. 2-FIG. 3 .

另外,结合上述实施例中的认证方法,本发明实施例可提供一种可读存储介质来实现。该可读存储介质上存储有程序指令;该程序指令被处理器执行时实现上述实施例中的任意一种认证方法。In addition, in combination with the authentication methods in the foregoing embodiments, embodiments of the present invention may provide a readable storage medium for implementation. The readable storage medium stores program instructions; when the program instructions are executed by the processor, any authentication method in the above-mentioned embodiments is implemented.

另外,结合上述实施例中的认证方法,本发明实施例可提供一种计算机程序产品来实现。该计算机程序产品中的指令由电子设备的处理器执行时,使得电子设备执行上述实施例中的任意一种认证方法。In addition, in combination with the authentication method in the foregoing embodiments, the embodiments of the present invention may provide a computer program product for implementation. When the instructions in the computer program product are executed by the processor of the electronic device, the electronic device is made to execute any authentication method in the foregoing embodiments.

需要明确的是,本发明并不局限于上文所描述并在图中示出的特定配置和处理。为了简明起见,这里省略了对已知方法的详细描述。在上述实施例中,描述和示出了若干具体的步骤作为示例。但是,本发明的方法过程并不限于所描述和示出的具体步骤,本领域的技术人员可以在领会本发明的精神后,作出各种改变、修改和添加,或者改变步骤之间的顺序。It is to be understood that the invention is not limited to the specific arrangements and processes described above and shown in the drawings. For conciseness, detailed descriptions of known methods are omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of the present invention is not limited to the specific steps described and shown, and those skilled in the art can make various changes, modifications and additions, or change the sequence of steps after understanding the spirit of the present invention.

以上所述的结构框图中所示的功能块可以实现为硬件、软件、固件或者它们的组合。当以硬件方式实现时,其可以例如是电子电路、专用集成电路(ASIC)、适当的固件、插件、功能卡等等。当以软件方式实现时,本发明的元素是被用于执行所需任务的程序或者代码段。程序或者代码段可以存储在机器可读介质中,或者通过载波中携带的数据信号在传输介质或者通信链路上传送。“机器可读介质”可以包括能够存储或传输信息的任何介质。机器可读介质的例子包括电子电路、半导体存储器设备、ROM、闪存、可擦除ROM(EROM)、软盘、CD-ROM、光盘、硬盘、光纤介质、射频(RF)链路,等等。代码段可以经由诸如因特网、内联网等的计算机网络被下载。The functional blocks shown in the structural block diagrams described above may be implemented as hardware, software, firmware, or a combination thereof. When implemented in hardware, it may be, for example, an electronic circuit, an application specific integrated circuit (ASIC), suitable firmware, a plug-in, a function card, or the like. When implemented in software, the elements of the invention are the programs or code segments employed to perform the required tasks. Programs or code segments can be stored in machine-readable media, or transmitted over transmission media or communication links by data signals carried in carrier waves. "Machine-readable medium" may include any medium that can store or transmit information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, fiber optic media, radio frequency (RF) links, and the like. Code segments may be downloaded via a computer network such as the Internet, an Intranet, or the like.

还需要说明的是,本发明中提及的示例性实施例,基于一系列的步骤或者装置描述一些方法或系统。但是,本发明不局限于上述步骤的顺序,也就是说,可以按照实施例中提及的顺序执行步骤,也可以不同于实施例中的顺序,或者若干步骤同时执行。It should also be noted that the exemplary embodiments mentioned in the present invention describe some methods or systems based on a series of steps or devices. However, the present invention is not limited to the order of the above steps, that is, the steps may be performed in the order mentioned in the embodiment, or may be different from the order in the embodiment, or several steps may be performed simultaneously.

上面参考根据本申请的实施例的方法、装置(系统)和计算机程序产品的流程图和/或框图描述了本申请的各方面。应当理解,流程图和/或框图中的每个方框以及流程图和/或框图中各方框的组合可以由计算机程序指令实现。这些计算机程序指令可被提供给通用计算机、专用计算机、或其它可编程数据处理装置的处理器,以产生一种机器,使得经由计算机或其它可编程数据处理装置的处理器执行的这些指令使能对流程图和/或框图的一个或多个方框中指定的功能/动作的实现。这种处理器可以是但不限于是通用处理器、专用处理器、特殊应用处理器或者现场可编程逻辑电路。还可理解,框图和/或流程图中的每个方框以及框图和/或流程图中的方框的组合,也可以由执行指定的功能或动作的专用硬件来实现,或可由专用硬件和计算机指令的组合来实现。Aspects of the present application are described above with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the present application. It will be understood that each block of the flowchart and/or block diagrams, and combinations of blocks in the flowchart and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine such that execution of these instructions via the processor of the computer or other programmable data processing apparatus enables Implementation of the functions/actions specified in one or more blocks of the flowchart and/or block diagrams. Such processors may be, but are not limited to, general purpose processors, special purpose processors, application specific processors, or field programmable logic circuits. It can also be understood that each block in the block diagrams and/or flowcharts and combinations of blocks in the block diagrams and/or flowcharts can also be realized by dedicated hardware for performing specified functions or actions, or can be implemented by dedicated hardware and Combination of computer instructions to achieve.

以上所述,仅为本发明的具体实施方式,所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,上述描述的系统、模块和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。应理解,本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到各种等效的修改或替换,这些修改或替换都应涵盖在本发明的保护范围之内。The above is only a specific implementation of the present invention, and those skilled in the art can clearly understand that for the convenience and brevity of description, the specific working process of the above-described systems, modules and units can refer to the foregoing method embodiments The corresponding process in , will not be repeated here. It should be understood that the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of various equivalent modifications or replacements within the technical scope disclosed in the present invention, and these modifications or replacements should cover all Within the protection scope of the present invention.

Claims (21)

1. An authentication method applied to a secure element including at least one reference voiceprint information therein, the method comprising:
acquiring first voiceprint information; the first voiceprint information is obtained by analyzing the electronic equipment based on the received first voice information of the user;
determining that the user passes authentication under the condition that the first voiceprint information is matched with target reference voiceprint information; the target reference voiceprint information is reference voiceprint information matched with the first voiceprint information in the at least one piece of reference voiceprint information; for each piece of reference voiceprint information, the reference voiceprint information is obtained by analyzing the electronic equipment based on the received second voice information of the user;
and sending the confirmation information passing the authentication to the electronic equipment so as to enable the electronic equipment to carry out payment operation based on the confirmation information.
2. The method of claim 1, wherein the obtaining the first voiceprint information comprises:
acquiring first voiceprint information under the condition that the electronic equipment is determined to pass the information authentication of the user; the information authentication is to verify whether the data content extracted based on the first voice information input by the user is consistent with a random verification code received by the electronic equipment;
determining that the user passes authentication when the first voiceprint information matches the reference voiceprint information, comprising:
and determining that the identity authentication of the user passes under the condition that the first voiceprint information is matched with the target reference voiceprint information.
3. The method according to claim 2, wherein the voice information used for the information authentication of the user by the electronic device and the identity authentication of the user by the secure element is the same voice information.
4. The method of claim 2, wherein after the determining that the identity authentication of the user is passed, the method further comprises:
generating data to be paid for payment order information; the order information is generated by the electronic equipment in response to a purchase instruction of the user;
after the sending the confirmation information that the authentication is passed to the electronic device, the method further includes:
and sending the data to be paid to the electronic equipment so as to pay based on the data to be paid.
5. The method of claim 4, wherein at least one of the electronic device and a checkout device are offline, the electronic device and the checkout device being communicatively coupled;
the sending the data to be paid to the electronic device to pay based on the data to be paid comprises:
under the condition that the electronic equipment is in an offline state, the safety element sends the data to be paid to the electronic equipment so that the electronic equipment sends payment information corresponding to the data to be paid to a money receiving device;
under the condition that the money receiving device is in an offline state, the secure element sends the data to be paid to the electronic device, so that the electronic device sends payment information corresponding to the data to be paid to a server.
6. The method according to claim 1, wherein the secure element is disposed in a gateway, the gateway is connected to at least one electronic device, and the secure element includes at least one storage area, each storage area corresponds to one electronic device, and is configured to store voiceprint information of the user acquired by the corresponding electronic device.
7. The method of claim 6, wherein the obtaining the first voiceprint information comprises:
acquiring first voiceprint information corresponding to target electronic equipment and equipment information of the target electronic equipment; the target electronic equipment is any one of at least one electronic equipment; the gateway identifies the target electronic equipment corresponding to the first voice message and then sends the first voice print message to the secure element; the device information is sent to the safety element after the gateway identifies the target electronic device corresponding to the first voice information;
determining that the user passes authentication when the first voiceprint information matches target reference voiceprint information, comprising:
determining a target storage area corresponding to the target electronic device based on the device information;
determining that the user passes authentication when the first voiceprint information matches target reference voiceprint information stored in the target storage area; the target storage area is a storage area corresponding to the target electronic device in the secure element.
8. The method of claim 7, wherein each electronic device communicates with the secure element based on a different key; the first voiceprint information is the voiceprint information encrypted by the electronic equipment based on a first secret key;
in a case where the first voiceprint information matches reference voiceprint information stored in a target storage area in the secure element, before determining that the authentication of the user is passed, the method further comprises:
decrypting the first voiceprint information based on a first key corresponding to the target electronic device;
the determining that the user is authenticated in the case that the first voiceprint information matches reference voiceprint information stored in a target storage area in the secure element, includes:
and determining that the user passes the authentication if the first voiceprint information is decrypted and the first voiceprint information is matched with the reference voiceprint information stored in the target storage area in the secure element.
9. The method of claim 1, wherein the secure element is disposed within an integrated circuit card;
the acquiring of the first voiceprint information includes:
receiving first voiceprint information sent by a control element of the integrated circuit card; the first voiceprint information is encrypted based on a second secret key, and the first voiceprint information received by the control element of the integrated circuit card is sent by the electronic equipment;
determining that the user passes authentication when the first voiceprint information matches target reference voiceprint information, comprising:
decrypting the first voiceprint information by using the second secret key;
and determining that the user passes the authentication under the condition that the first voiceprint information is decrypted and matched with the target reference voiceprint information.
10. The method of claim 9, wherein the integrated circuit card is bound to the electronic device, wherein the integrated circuit card is communicatively coupled to the electronic device,
after the determining that the authentication of the user passes, the method further comprises:
and sending the confirmation information which passes the authentication and the data to be paid for payment to the control element of the integrated circuit card, so that the control element of the integrated circuit card sends the data to be paid to the electronic equipment, and the electronic equipment completes the payment based on the data to be paid.
11. The method of claim 10, wherein prior to sending the data to be paid for payment to the control element of the integrated circuit card, the method further comprises:
encrypting the data to be paid based on a third key;
the sending of the data to be paid for payment to the control element of the integrated circuit card comprises:
and sending the encrypted data to be paid for payment to a control element of the integrated circuit card.
12. An authentication method, applied to an electronic device, the method comprising:
acquiring first voice information of a user;
analyzing the first voice information to obtain first voiceprint information;
sending the first voiceprint information to a secure element so that the secure element matches the first voiceprint information with at least one reference voiceprint information; determining that the user passes the authentication under the condition that the first voiceprint information is matched with the target reference voiceprint information, and sending confirmation information of the passing authentication to the electronic equipment so that the electronic equipment carries out payment operation based on the confirmation information; the secure element comprises at least one piece of reference voiceprint information, and the target reference voiceprint information is the reference voiceprint information which is matched with the first voiceprint information in the at least one piece of reference voiceprint information; and for each piece of reference voiceprint information, the reference voiceprint information is obtained by analyzing the electronic equipment based on the received second voice information of the user.
13. The method of claim 12, wherein prior to said sending the first voiceprint information into a secure element, the method further comprises:
performing information authentication on the user based on the first voiceprint information; the information authentication is to verify whether the data content extracted based on the first voice information input by the user is consistent with a random verification code received by the electronic equipment;
sending the first voiceprint information into a secure element so that the secure element matches the first voiceprint information with at least one reference voiceprint information; and determining that the user passes the authentication when the first voiceprint information matches the target reference voiceprint information, comprising:
under the condition that the information authentication of the user is confirmed to pass, the first voiceprint information is sent to a secure element, so that the secure element can match the first voiceprint information with at least one piece of reference voiceprint information; and determining that the identity authentication of the user passes under the condition that the first voiceprint information is matched with the target reference voiceprint information.
14. The method of claim 13, wherein prior to said obtaining the first voice information of the user, the method further comprises:
acquiring a purchase instruction of the user;
generating order information based on the purchase instruction;
acquiring the random verification code corresponding to the order information; the random verification code is used for performing information verification on the user;
the acquiring of the first voice information of the user comprises:
and acquiring first voice information of the user reading the random verification code.
15. The method of claim 12, wherein prior to said obtaining the first voice information of the user, the method further comprises:
acquiring second voice information of the user;
analyzing the second voice information to obtain reference voiceprint information;
sending the reference voiceprint information into the secure element to cause the secure element to store the reference voiceprint information.
16. An authentication apparatus, wherein the apparatus is applied to a secure element, and the secure element includes at least one piece of reference voiceprint information therein, and the apparatus comprises:
the first acquisition module is used for acquiring first voiceprint information; wherein the first voiceprint information is obtained by the electronic equipment through analysis based on the received first voice information of the user,
a first determining module, configured to determine that the user passes authentication when the first voiceprint information matches target reference voiceprint information; the target reference voiceprint information is reference voiceprint information matched with the first voiceprint information in at least one piece of reference voiceprint information; for each piece of reference voiceprint information, the reference voiceprint information is obtained by analyzing the electronic equipment based on the received second voice information of the user;
and the first sending module is used for sending the confirmation information passing the authentication to the electronic equipment so as to enable the electronic equipment to carry out payment operation based on the confirmation information.
17. An authentication apparatus, applied to an electronic device, the apparatus comprising:
the first acquisition module is used for acquiring first voice information of a user;
the first determining module is used for analyzing the first voice information to obtain first voiceprint information;
a first sending module, configured to send the first voiceprint information to a secure element, so that the secure element matches the first voiceprint information with at least one reference voiceprint information; determining that the user passes the authentication under the condition that the first voiceprint information is matched with the target reference voiceprint information, and sending confirmation information of the passing authentication to the electronic equipment so that the electronic equipment carries out payment operation based on the confirmation information; the secure element comprises at least one piece of reference voiceprint information, and the target reference voiceprint information is the reference voiceprint information which is matched with the first voiceprint information in the at least one piece of reference voiceprint information; and for each piece of reference voiceprint information, the reference voiceprint information is obtained by analyzing the electronic equipment based on the received second voice information of the user.
18. An authentication system, the system comprising:
the electronic equipment is used for acquiring first voice information of a user and analyzing the first voice information to obtain first voiceprint information; and sending the first voiceprint information to a secure element;
the secure element is configured to match the first voiceprint information with at least one reference voiceprint information; and determining that the user passes the authentication under the condition that the first voiceprint information is matched with the target reference voiceprint information; sending the confirmation information passing the authentication to the electronic equipment so that the electronic equipment carries out payment operation based on the confirmation information;
the secure element comprises at least one piece of reference voiceprint information, and the target reference voiceprint information is the reference voiceprint information which is matched with the first voiceprint information in the at least one piece of reference voiceprint information; and for each piece of reference voiceprint information, the reference voiceprint information is obtained by analyzing the electronic equipment based on the received second voice information of the user.
19. The system of claim 18, wherein the electronic device is further configured to: performing information authentication on the user based on the first voiceprint information; the information authentication is to verify whether the data content extracted based on the first voice information input by the user is consistent with a random verification code received by the electronic equipment; under the condition that the information authentication of the user is determined to pass, sending the first voiceprint information to a safety element;
the security element is particularly configured to: matching the first voiceprint information with at least one reference voiceprint information; and determining that the identity authentication of the user passes under the condition that the first voiceprint information is matched with the target reference voiceprint information.
20. A readable storage medium, characterized in that it stores thereon a program or instructions which, when executed by a processor, implement the steps of the authentication method according to any one of claims 1 to 15.
21. A computer program product, characterized in that instructions in the computer program product, when executed by a processor of an electronic device, cause the electronic device to perform the steps of the authentication method according to any of claims 1-15.
CN202211459273.3A 2022-11-16 2022-11-16 Authentication method, apparatus, system, medium, and program product Pending CN115829577A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211459273.3A CN115829577A (en) 2022-11-16 2022-11-16 Authentication method, apparatus, system, medium, and program product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211459273.3A CN115829577A (en) 2022-11-16 2022-11-16 Authentication method, apparatus, system, medium, and program product

Publications (1)

Publication Number Publication Date
CN115829577A true CN115829577A (en) 2023-03-21

Family

ID=85529862

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211459273.3A Pending CN115829577A (en) 2022-11-16 2022-11-16 Authentication method, apparatus, system, medium, and program product

Country Status (1)

Country Link
CN (1) CN115829577A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106157025A (en) * 2016-07-05 2016-11-23 清华大学深圳研究生院 The mobile terminal safety method of payment of identity-based card and system
WO2017143924A1 (en) * 2016-02-22 2017-08-31 中国银联股份有限公司 Payment method, apparatus and device
CN110097370A (en) * 2019-03-29 2019-08-06 捷德(中国)信息科技有限公司 Off line method of payment, device, server and medium
CN114186993A (en) * 2021-10-27 2022-03-15 中国人民银行数字货币研究所 A digital currency transaction method and device
CN115174145A (en) * 2022-05-30 2022-10-11 青岛海尔科技有限公司 Equipment control method and edge gateway equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017143924A1 (en) * 2016-02-22 2017-08-31 中国银联股份有限公司 Payment method, apparatus and device
CN106157025A (en) * 2016-07-05 2016-11-23 清华大学深圳研究生院 The mobile terminal safety method of payment of identity-based card and system
CN110097370A (en) * 2019-03-29 2019-08-06 捷德(中国)信息科技有限公司 Off line method of payment, device, server and medium
CN114186993A (en) * 2021-10-27 2022-03-15 中国人民银行数字货币研究所 A digital currency transaction method and device
CN115174145A (en) * 2022-05-30 2022-10-11 青岛海尔科技有限公司 Equipment control method and edge gateway equipment

Similar Documents

Publication Publication Date Title
JP6889967B2 (en) Methods and systems for generating advanced storage keys on mobile devices without secure elements
US20230403160A1 (en) Use of biometrics and privacy preserving methods to authenticate account holders online
AU2019389007B2 (en) Audible authentication
AU2015259162B2 (en) Master applet for secure remote payment processing
JP6438027B2 (en) Method and system for securely transmitting a remote notification service message to a mobile device without using a secure element
JP6353537B2 (en) Method and system for performing secure authentication of users and mobile devices without using a secure element
KR101236957B1 (en) System for paying credit card using mobile otp security of mobile phone and method therefor
US20130282588A1 (en) Consumer, Merchant and Mobile Device Specific, Real-Time Dynamic Tokenization Activation within a Secure Mobile-Wallet Financial Transaction System
HK1250540A1 (en) Wireless biometric authentication system and method
US20150066778A1 (en) Digital card-based payment system and method
US20150088746A1 (en) Method and system for implementing financial transactions
EP4142216A1 (en) Digital identity authentication system and method
KR20170054917A (en) Method and Apparatus for Authenticating Mobile Payment
TWI537853B (en) High security mobile payment system and method
WO2017127237A1 (en) Payment vehicle with encrypted image
KR20140143047A (en) Payment method and payment relay server using voice information
CN115829577A (en) Authentication method, apparatus, system, medium, and program product
KR101190745B1 (en) System for paying credit card using internet otp security of mobile phone and method therefor
CN107633392B (en) Device refund interactive authentication method and system
KR20200092556A (en) Method And System for Providing Mobile Payment Service
TH68610B (en) A system for making secure payments over a wireless communication network.
TH129304A (en) A system for making secure payments over a wireless communication network.

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
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载