[go: up one dir, main page]

CN114039754B - A security verification method and device - Google Patents

A security verification method and device Download PDF

Info

Publication number
CN114039754B
CN114039754B CN202111264329.5A CN202111264329A CN114039754B CN 114039754 B CN114039754 B CN 114039754B CN 202111264329 A CN202111264329 A CN 202111264329A CN 114039754 B CN114039754 B CN 114039754B
Authority
CN
China
Prior art keywords
verification
information
target
security verification
security
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202111264329.5A
Other languages
Chinese (zh)
Other versions
CN114039754A (en
Inventor
吕光旭
符刚
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China United Network Communications Group Co Ltd
China Information Technology Designing and Consulting Institute Co Ltd
Original Assignee
China United Network Communications Group Co Ltd
China Information Technology Designing and Consulting Institute 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 China United Network Communications Group Co Ltd, China Information Technology Designing and Consulting Institute Co Ltd filed Critical China United Network Communications Group Co Ltd
Priority to CN202111264329.5A priority Critical patent/CN114039754B/en
Publication of CN114039754A publication Critical patent/CN114039754A/en
Application granted granted Critical
Publication of CN114039754B publication Critical patent/CN114039754B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/083Network architectures or network communication protocols for network security for authentication of entities using passwords
    • H04L63/0838Network architectures or network communication protocols for network security for authentication of entities using passwords using one-time-passwords
    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16YINFORMATION AND COMMUNICATION TECHNOLOGY SPECIALLY ADAPTED FOR THE INTERNET OF THINGS [IoT]
    • G16Y40/00IoT characterised by the purpose of the information processing
    • G16Y40/50Safety; Security of things, users, data or systems
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/18Network architectures or network communication protocols for network security using different networks or channels, e.g. using out of band channels
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/12Messaging; Mailboxes; Announcements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/12Messaging; Mailboxes; Announcements
    • H04W4/14Short messaging services, e.g. short message services [SMS] or unstructured supplementary service data [USSD]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Computing Systems (AREA)
  • Computer Hardware Design (AREA)
  • General Engineering & Computer Science (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

本发明公开了一种安全验证方法及装置,涉及通信技术领域,用于提高信息验证的安全性,包括:在进行下行安全验证的情况下,获取目标验证信息和预设消息模板,预设消息模板包括深度链接参数;基于深度链接参数对目标验证信息进行编码,得到编码信息;将编码信息添加至预设消息模板中,得到下发消息体;下发消息体包括目标深度链接和目标验证信息,下发消息体用于完成对目标应用程序的安全验证;将下发消息体发送至用户,完成安全验证信息的下发。本发明应用于进行安全信息验证的场景中。

The invention discloses a safety verification method and device, which relate to the field of communication technology and are used for improving the safety of information verification, including: in the case of downlink safety verification, acquiring target verification information and a preset message template, and the preset message The template includes deep link parameters; encode the target verification information based on the deep link parameters to obtain the encoded information; add the encoded information to the preset message template to obtain the sent message body; the sent message body includes the target deep link and target verification information , the delivered message body is used to complete the security verification of the target application program; the delivered message body is sent to the user to complete the delivery of the security verification information. The present invention is applied in the scene of verifying safety information.

Description

一种安全验证方法及装置A security verification method and device

技术领域technical field

本发明涉及通信技术领域,尤其涉及一种安全验证方法及装置。The present invention relates to the field of communication technology, in particular to a safety verification method and device.

背景技术Background technique

伴随着通信技术的不断更迭,移动通信网络经历了2G、3G和4G的高速发展,运营商提供的网络基础设施能力也越来越强,网络带宽越来越宽,但在高速网络上运营商提供的基础通信业务却变化不大。随着移动终端的不断推陈出新,终端的功能越来越强大,用户对于信息交换的需求也日益丰富。当前,运营商的短信业务因可达性强、安全性高、可全球互联互通等特点,曾受到用户广泛青睐,但因业务体验局限,仅能传送有限的文本信息,已有大量的用户选择了其他的信息交换方式,还有部分行业客户虽仍选择短信方式为其用户发送必要的信息,但这也已不能满足他们更多的商业需求。With the continuous change of communication technology, the mobile communication network has experienced the rapid development of 2G, 3G and 4G, and the network infrastructure capabilities provided by operators are getting stronger and stronger, and the network bandwidth is getting wider and wider. The basic communication services provided have not changed much. With the continuous innovation of mobile terminals, the functions of the terminals are becoming more and more powerful, and the needs of users for information exchange are also becoming more and more abundant. At present, the SMS service of operators has been widely favored by users due to its strong accessibility, high security, and global interconnection and interoperability. However, due to the limited service experience, it can only send limited text messages, and a large number of users have chosen it. In addition to other information exchange methods, some industry customers still choose SMS to send necessary information to their users, but this can no longer meet their more business needs.

现有技术方案中,安全验证方式存在诸多问题,例如:现有短信验证码明文下发,容易发生信息泄露;受单条短信文本长度和文本格式的限制,无法应用更高安全性的验证方式;现有短信验证码需要用户输入,操作体验有待优化;现有验证码回复通过互联网传输,存在被截取风险。因此,进行信息验证的安全性较低。In the existing technical solutions, there are many problems in the security verification method, for example: the existing text message verification code is issued in plain text, which is prone to information leakage; due to the limitation of the text length and text format of a single message, it is impossible to apply a higher security verification method; The existing SMS verification code needs to be input by the user, and the operation experience needs to be optimized; the reply of the existing verification code is transmitted through the Internet, and there is a risk of being intercepted. Therefore, the security for performing information verification is low.

发明内容Contents of the invention

本发明提供一种安全验证方法及装置,用于提高信息验证的安全性。The invention provides a safety verification method and device for improving the safety of information verification.

为达到上述目的,本发明采用如下技术方案:To achieve the above object, the present invention adopts the following technical solutions:

第一方面,提供了一种安全验证方法,应用于安全验证装置,该方法包括:在进行下行安全验证的情况下,获取目标验证信息和预设消息模板,预设消息模板包括深度链接参数;基于深度链接参数对目标验证信息进行编码,得到编码信息;将编码信息添加至预设消息模板中,得到下发消息体;下发消息体包括目标深度链接和目标验证信息,下发消息体用于完成对目标应用程序的安全验证;将下发消息体发送至用户,完成安全验证信息的下发。In the first aspect, a security verification method is provided, which is applied to a security verification device, and the method includes: in the case of performing downlink security verification, acquiring target verification information and a preset message template, where the preset message template includes deep link parameters; Encode the target verification information based on the deep link parameters to obtain the encoded information; add the encoded information to the preset message template to obtain the sent message body; the sent message body includes the target deep link and target verification information, and the sent message body uses To complete the security verification of the target application program; send the delivery message body to the user, and complete the delivery of the security verification information.

在一种可能的实现方式中,将下发消息体发送至用户,完成安全验证信息的下发之后,方法还包括:用户触发下发消息体中包括的目标深度链接,启动目标应用程序;目标应用程序基于目标验证信息完成安全验证。In a possible implementation, after sending the sent message body to the user and completing sending the security verification information, the method further includes: the user triggers the target deep link included in the sent message body to start the target application; The application completes security verification based on the target verification information.

在一种可能的实现方式中,在进行下行安全验证的情况下,获取目标验证信息和预设消息模板之前,方法还包括:预先构建预设消息模板,确定深度链接参数和字段信息采集规则;深度链接参数包括以下至少一项:深度链接格式、深度链接变量,字段信息采集规则用于确定并采集目标验证信息中所携带的目标字段信息。In a possible implementation manner, in the case of performing downlink security verification, before acquiring target verification information and a preset message template, the method further includes: pre-constructing a preset message template, and determining deep link parameters and field information collection rules; The deep link parameters include at least one of the following: deep link format, deep link variables, and field information collection rules are used to determine and collect target field information carried in the target verification information.

在一种可能的实现方式中,在进行下行安全验证的情况下,获取目标验证信息和预设消息模板之前,方法还包括:在进行上行安全验证的情况下,接收服务器发送的验证请求和目标标识,建立安全验证任务;服务器为目标应用程序所对应的服务器;接收用户发起的安全验证请求,安全验证请求中携带第一验证信息和用户标识;判断用户标识和目标标识是否匹配,并在用户标识和目标标识匹配的情况下,对第一验证信息进行验证。In a possible implementation, before obtaining the target verification information and the preset message template in the case of downlink security verification, the method further includes: in the case of uplink security verification, receiving the verification request sent by the server and the target identify, establish a security verification task; the server is the server corresponding to the target application; receive the security verification request initiated by the user, and the security verification request carries the first verification information and the user ID; judge whether the user ID matches the target ID, and If the identifier matches the target identifier, verify the first verification information.

在一种可能的实现方式中,对第一验证信息进行验证之后,方法还包括:在第一验证信息通过验证的情况下,判断第一验证信息中是否携带目标字段信息,目标字段信息用于进行安全验证;在第一验证信息中携带目标字段信息的情况下,采集目标字段信息,并将目标字段信息发送给服务器,完成安全验证信息的上传。In a possible implementation manner, after verifying the first verification information, the method further includes: if the first verification information passes the verification, judging whether the first verification information carries target field information, and the target field information is used for Perform security verification; if the target field information is carried in the first verification information, collect the target field information and send the target field information to the server to complete the upload of the security verification information.

在一种可能的实现方式中,将目标字段信息发送给服务器,完成安全验证信息的上传之后,方法还包括:在进行双向安全验证的情况下,根据第一验证信息和其他信息生成目标验证信息;其他信息包括以下至少一项:目标标识、用户信息、目标应用程序信息;基于目标验证信息,完成下行安全验证流程。In a possible implementation manner, the target field information is sent to the server, and after the upload of the security verification information is completed, the method further includes: in the case of performing two-way security verification, generating the target verification information according to the first verification information and other information ; Other information includes at least one of the following: target identification, user information, target application program information; based on the target verification information, complete the downlink security verification process.

第二方面,提供了一种安全验证装置,该一种安全验证装置包括:获取单元、处理单元和发送单元;获取单元,用于在进行下行安全验证的情况下,获取目标验证信息和预设消息模板,预设消息模板包括深度链接参数;处理单元,用于基于深度链接参数对目标验证信息进行编码,得到编码信息;处理单元,还用于将编码信息添加至预设消息模板中,得到下发消息体;下发消息体包括目标深度链接和目标验证信息,下发消息体用于完成对目标应用程序的安全验证;发送单元,用于将下发消息体发送至用户,完成安全验证信息的下发。In a second aspect, a security verification device is provided, which includes: an acquisition unit, a processing unit, and a sending unit; the acquisition unit is used to acquire target verification information and preset The message template, the preset message template includes deep link parameters; the processing unit is used to encode the target verification information based on the deep link parameters to obtain encoded information; the processing unit is also used to add the encoded information to the preset message template to obtain Send message body; send message body includes target deep link and target verification information, and send message body is used to complete security verification of target application program; sending unit is used to send message body to user to complete security verification Dissemination of information.

第三方面,提供了一种存储一个或多个程序的计算机可读存储介质,该一个或多个程序包括指令,上述指令当被计算机执行时使计算机执行如第一方面的一种安全验证方法。In a third aspect, there is provided a computer-readable storage medium storing one or more programs, the one or more programs include instructions, and when the instructions are executed by a computer, the computer executes a security verification method according to the first aspect .

第四方面,一种电子设备,包括:处理器以及存储器;其中,存储器用于存储一个或多个程序,一个或多个程序包括计算机执行指令,当电子设备运行时,处理器执行存储器存储的计算机执行指令,以使电子设备执行如第一方面的一种安全验证方法。In a fourth aspect, an electronic device includes: a processor and a memory; wherein the memory is used to store one or more programs, and the one or more programs include computer-executable instructions, and when the electronic device is running, the processor executes the program stored in the memory The computer executes the instruction, so that the electronic device executes a safety verification method as in the first aspect.

本发明提供一种安全验证方法及装置,应用于进行安全信息验证的场景中,在进行安全验证的情况下,首先获取目标验证信息和包括深度链接参数的预设消息模板,从而可以基于深度链接参数对目标验证信息进行编码,得到编码信息。以进一步的将编码信息添加至预设消息模板中,得到包括目标深度链接和目标验证信息的下发消息体,并将下发消息体发送至用户,完成安全验证信息的下发,从而完成对目标应用程序的安全验证。通过上述方法,可以提高传输通道的安全性,并通过携带更加丰富的验证信息形式,实现更高级别安全验证,避免了验证信息被截取的风险性,从而提高信息验证的安全性。The present invention provides a safety verification method and device, which are applied in the scene of safety information verification. In the case of safety verification, the target verification information and the preset message template including deep link parameters are first obtained, so that the deep link can be based on The parameter encodes the target verification information to obtain the encoded information. In order to further add the encoded information to the preset message template, obtain the sent message body including the target deep link and target verification information, and send the sent message body to the user to complete the sending of the security verification information, thereby completing the Security verification of the target application. Through the above method, the security of the transmission channel can be improved, and a higher level of security verification can be realized by carrying more abundant forms of verification information, avoiding the risk of verification information being intercepted, thereby improving the security of information verification.

附图说明Description of drawings

图1为本发明的实施例提供的一种安全验证系统结构示意图;Fig. 1 is a schematic structural diagram of a safety verification system provided by an embodiment of the present invention;

图2为本发明的实施例提供的一种安全验证方法流程示意图一;FIG. 2 is a first schematic flow diagram of a security verification method provided by an embodiment of the present invention;

图3为本发明的实施例提供的一种安全验证方法流程示意图二;FIG. 3 is a second schematic flow diagram of a security verification method provided by an embodiment of the present invention;

图4为本发明的实施例提供的一种安全验证方法流程示意图三;FIG. 4 is a third schematic flow diagram of a security verification method provided by an embodiment of the present invention;

图5为本发明的实施例提供的一种安全验证方法流程示意图四;FIG. 5 is a fourth schematic flow diagram of a security verification method provided by an embodiment of the present invention;

图6为本发明的实施例提供的一种安全验证方法流程示意图五;Fig. 6 is a schematic diagram of a security verification method flow chart 5 provided by an embodiment of the present invention;

图7为本发明的实施例提供的一种安全验证方法流程示意图六;FIG. 7 is a sixth schematic flow diagram of a security verification method provided by an embodiment of the present invention;

图8为本发明的实施例提供的一种安全验证装置结构示意图一;Fig. 8 is a schematic structural diagram of a safety verification device provided by an embodiment of the present invention;

图9为本发明的实施例提供的一种安全验证装置结构示意图二;FIG. 9 is a second structural schematic diagram of a safety verification device provided by an embodiment of the present invention;

图10为本发明的实施例提供的一种安全验证装置结构示意图三;Fig. 10 is a schematic structural diagram of a safety verification device provided by an embodiment of the present invention III;

图11为本发明的实施例提供的一种电子设备结构示意图一;FIG. 11 is a first structural schematic diagram of an electronic device provided by an embodiment of the present invention;

图12为本发明的实施例提供的一种电子设备结构示意图二。FIG. 12 is a second structural schematic diagram of an electronic device provided by an embodiment of the present invention.

具体实施方式Detailed ways

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行描述。The technical solutions in the embodiments of the present invention will be described below with reference to the drawings in the embodiments of the present invention.

在本发明的描述中,除非另有说明,“/”表示“或”的意思,例如,A/B可以表示A或B。本文中的“和/或”仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。此外,“至少一个”“多个”是指两个或两个以上。“第一”、“第二”等字样并不对数量和执行次序进行限定,并且“第一”、“第二”等字样也并不限定一定不同。In the description of the present invention, unless otherwise specified, "/" means "or", for example, A/B may mean A or B. The "and/or" in this article is just an association relationship describing associated objects, which means that there can be three relationships, for example, A and/or B, which can mean: A exists alone, A and B exist at the same time, and B exists alone These three situations. In addition, "at least one" and "plurality" mean two or more. Words such as "first" and "second" do not limit the number and order of execution, and words such as "first" and "second" do not necessarily limit the difference.

本发明实施例提供的一种安全验证方法,可以适用于安全验证系统。图1示出了该安全验证系统的一种结构示意图。如图1所示,安全验证系统20包括:服务端21、安全验证装置22、消息网络23以及终端24,在实际应用过程中,终端24的数量可以为多个。服务端21与安全验证装置22进行连接,安全验证装置22与消息网络23进行连接,消息网络23与终端24进行连接。服务端21、安全验证装置22、消息网络23以及终端24之间可以采用有线方式连接,也可以采用无线方式连接,本发明实施例对此不作限定。A security verification method provided by an embodiment of the present invention can be applied to a security verification system. Fig. 1 shows a schematic structural diagram of the security verification system. As shown in FIG. 1 , the security verification system 20 includes: a server 21 , a security verification device 22 , a message network 23 and a terminal 24 . In actual application, the number of terminals 24 may be multiple. The server 21 is connected to the safety verification device 22 , the safety verification device 22 is connected to the message network 23 , and the message network 23 is connected to the terminal 24 . The server 21 , the security verification device 22 , the message network 23 and the terminal 24 may be connected in a wired manner or in a wireless manner, which is not limited in this embodiment of the present invention.

安全验证系统20可以用于物联网,安全验证系统20可以包括多个中央处理器(central processing unit,CPU)、多个内存、存储有多个操作系统的存储装置等硬件。The security verification system 20 may be used in the Internet of Things, and the security verification system 20 may include hardware such as multiple central processing units (central processing units, CPUs), multiple memories, and storage devices storing multiple operating systems.

服务端21可以用于物联网,为应用程序对应的服务器,用于处理应用程序的各项任务,包括进行安全验证任务,以保证应用程序的正常运行。The server 21 can be used in the Internet of Things, and is a server corresponding to the application program, and is used to process various tasks of the application program, including performing security verification tasks, so as to ensure the normal operation of the application program.

安全验证装置22可以用于物联网,包括有多个处理单元,例如:通信单元,用于实现与服务端和消息网络23的基础通信功能,支持所需通信协议;编码单元,用于根据特定规则,将验证字符串进行编码;验证单元,用于处理验证过程逻辑,生成随机验证信息(如验证码)等;存储单元:用于存储配置信息、模版和日志等必要数据;模版单元:用于根据消息内容格式,配置发送内容模版,根据模版生成消息体;管理单元:用于安全验证装置22的配置管理、参数配置等操作。The safety verification device 22 can be used for the Internet of Things, and includes multiple processing units, such as: a communication unit, which is used to realize the basic communication function with the server and the message network 23, and supports the required communication protocol; Rules, to encode the verification string; verification unit, used to process verification process logic, generate random verification information (such as verification code), etc.; storage unit: used to store necessary data such as configuration information, templates and logs; template unit: use According to the format of the message content, configure the sending content template, and generate the message body according to the template; management unit: used for configuration management, parameter configuration and other operations of the security verification device 22 .

消息网络23可以用于物联网,用于完成安全验证装置22与终端24进行网络交互,接收或发送数据包、信令消息等。The message network 23 can be used in the Internet of Things, and is used to complete the network interaction between the security verification device 22 and the terminal 24, and receive or send data packets, signaling messages, and the like.

需要说明的,服务端21、安全验证装置22、消息网络23以及终端24可以为相互独立的设备,也可以集成于同一设备中,本发明对此不作具体限定。It should be noted that the server 21, the security verification device 22, the message network 23, and the terminal 24 may be independent devices, or may be integrated into the same device, which is not specifically limited in the present invention.

当服务端21、安全验证装置22、消息网络23以及终端24集成于同一设备时,服务端21、安全验证装置22、消息网络23以及终端24之间的通信方式为该设备内部模块之间的通信。这种情况下,二者之间的通信流程与“服务端21、安全验证装置22、消息网络23以及终端24之间相互独立的情况下,二者之间的通信流程”相同。When the server 21, the safety verification device 22, the message network 23 and the terminal 24 are integrated in the same device, the communication mode between the server 21, the safety verification device 22, the message network 23 and the terminal 24 is the internal module of the device. communication. In this case, the communication process between the two is the same as "the communication process between the server 21, the security verification device 22, the message network 23, and the terminal 24 is independent of each other".

在本发明提供的以下实施例中,本发明以服务端21、安全验证装置22、消息网络23以及终端24相互独立设置为例进行说明。In the following embodiments provided by the present invention, the present invention is described by taking the server 21 , the security verification device 22 , the message network 23 and the terminal 24 as an example where they are set independently of each other.

下面结合附图对本发明实施例提供的一种安全验证方法进行描述。A security verification method provided by an embodiment of the present invention will be described below with reference to the accompanying drawings.

如图2所示,本发明实施例提供的一种安全验证方法,应用于包括多个内存以及多个中央处理器CPU的终端,包括S201-S204:As shown in Figure 2, a security verification method provided by an embodiment of the present invention is applied to a terminal including multiple memories and multiple CPUs, including S201-S204:

S201、在进行下行安全验证的情况下,获取目标验证信息和预设消息模板。S201. Acquire target verification information and a preset message template in the case of performing downlink security verification.

其中,预设消息模板包括深度链接参数。Wherein, the preset message template includes deep link parameters.

作为一种可能的实现方式,本发明实施例所提供的一种安全验证方法,可以为基于5G消息的安全验证方法,可选的,还可以为基于其他类型消息的安全验证方法,对此本发明不做限定。As a possible implementation, the security verification method provided by the embodiment of the present invention can be a security verification method based on 5G messages, and optionally, it can also be a security verification method based on other types of messages. Inventions are not limited.

作为一种可能的实现方式,下行安全验证为安全验证装置向终端发送验证信息的验证方法。As a possible implementation manner, the downlink security verification is a verification method in which the security verification device sends verification information to the terminal.

作为一种可能的实现方式,通过应用程序编程接口(Application ProgrammingInterface,API)获得目标应用程序对应的服务端(服务器)所生成的目标验证信息;或者,通过电子设备(即安全验证装置)所包括的验证单元随机生成目标验证信息。As a possible implementation, the target verification information generated by the server (server) corresponding to the target application is obtained through the application programming interface (Application Programming Interface, API); The verification unit randomly generates target verification information.

需要说明的是,上述预设消息模板为预先在安全验证装置中生成的多种消息模板中的消息模板,在安全验证装置中包括有多种预先配置得到的消息模板。It should be noted that the aforementioned preset message templates are message templates among various message templates pre-generated in the security verification device, and the security verification device includes multiple pre-configured message templates.

S202、基于深度链接参数对目标验证信息进行编码,得到编码信息。S202. Encode the target verification information based on the deep link parameters to obtain encoded information.

作为一种可能的实现方式,在获取到目标验证信息和预设消息模板之后,基于目标验证信息,结合预设消息模板中包括的深度链接参数进行编码,得到编码信息(即对目标验证信息进行编码之后得到的信息)。As a possible implementation, after obtaining the target verification information and the preset message template, based on the target verification information, combined with the deep link parameters included in the preset message template, encoding is performed to obtain the encoded information (that is, the target verification information is information obtained after encoding).

S203、将编码信息添加至预设消息模板中,得到下发消息体。S203. Add the encoding information to the preset message template to obtain a sent message body.

其中,下发消息体包括目标深度链接和目标验证信息,下发消息体用于完成对目标应用程序的安全验证。Wherein, the sent message body includes the target deep link and target verification information, and the sent message body is used to complete the security verification of the target application program.

作为一种可能的实现方式,将对目标验证信息进行编码后的编码信息添加到预设消息模版中,从而可以组合形成下发消息体。As a possible implementation manner, the encoded information after encoding the target verification information is added to a preset message template, so that it can be combined to form a delivered message body.

需要说明的是,上述下发消息体可以理解为在将验证信息发送至终端之后,用户所能够查看到的验证消息形式和验证消息内容。It should be noted that the above-mentioned sent message body can be understood as the form and content of the verification message that the user can view after the verification information is sent to the terminal.

S204、将下发消息体发送至用户,完成安全验证信息的下发。S204. Send the sent message body to the user, and complete the sending of the security verification information.

作为一种可能的实现方式,可以通过运营商5G消息网络向用户(即终端)发送下发消息体(即验证信息),以实现安全验证信息的下发,将安全验证信息发送至终端。As a possible implementation, the message body (that is, the verification information) can be sent to the user (that is, the terminal) through the operator's 5G message network to realize the delivery of the security verification information and send the security verification information to the terminal.

在一种设计中,为了对目标应用程序完成安全验证,如图3所示,在本发明实施例提供的一种安全验证方法中,在上述S204之后,具体还可以包括下述S301-S302:In one design, in order to complete the security verification of the target application, as shown in FIG. 3 , in a security verification method provided in an embodiment of the present invention, after the above S204, the following S301-S302 may be specifically included:

S301、用户触发下发消息体中包括的目标深度链接,启动目标应用程序。S301. The user triggers the target deep link included in the delivered message body, and starts the target application program.

作为一种可能的实现方式,用户在接收到该下发消息体之后,可以触发消息中携带的目标深度链接,从而触发终端启动目标应用程序,并将验证信息传递给目标应用程序,完成验证信息到目标应用程序的下发,从而实现安全验证流程。As a possible implementation, after receiving the sent message body, the user can trigger the target deep link carried in the message, thereby triggering the terminal to start the target application, and pass the verification information to the target application to complete the verification information To the target application program, so as to realize the security verification process.

S302、目标应用程序基于目标验证信息完成安全验证。S302. The target application completes security verification based on the target verification information.

作为一种可能的实现方式,在通过下发消息体中包括的目标深度链接,启动目标应用程序之后,目标应用程序可以基于下发消息体中包括的目标验证信息完成安全验证。As a possible implementation, after the target application is started by sending the target deep link included in the sent message body, the target application can complete security verification based on the target verification information included in the sent message body.

在一种设计中,为了构建预设消息模板,如图4所示,在本发明实施例提供的一种安全验证方法中,在上述S201之前,具体还可以包括下述S401:In one design, in order to construct a preset message template, as shown in FIG. 4 , in a security verification method provided in an embodiment of the present invention, before the above S201, the following S401 may be specifically included:

S401、预先构建预设消息模板,确定深度链接参数和字段信息采集规则。S401. Construct a preset message template in advance, and determine deep link parameters and field information collection rules.

其中,深度链接参数包括以下至少一项:深度链接格式、深度链接变量,字段信息采集规则用于确定并采集目标验证信息中所携带的目标字段信息。Wherein, the deep link parameters include at least one of the following: deep link format, deep link variable, and the field information collection rule is used to determine and collect the target field information carried in the target verification information.

作为一种可能的实现方式,上述深度链接参数可以包括:深度链接格式、深度链接对应的设置变量等参数。As a possible implementation manner, the above-mentioned deep link parameters may include parameters such as a deep link format, a setting variable corresponding to the deep link, and the like.

作为一种可能的实现方式,电子设备(安全验证装置)可以预先配置多种消息模板,完成下发消息模版的配置,以在消息模板中填写深度链接格式,并设置变量。As a possible implementation, the electronic device (safety verification device) can be pre-configured with various message templates, complete the configuration of the delivered message templates, fill in the deep link format in the message templates, and set variables.

作为一种可能的实现方式,在构建预设消息模板时,还可以对应配置字段信息采集规则,以在终端接收到消息模板对应的验证消息时,可以从验证消息中采集到所需的字段信息。As a possible implementation, when constructing a preset message template, field information collection rules can also be configured correspondingly, so that when the terminal receives the verification message corresponding to the message template, the required field information can be collected from the verification message .

在一种设计中,为了完成上行安全验证,如图5所示,本发明实施例提供的一种安全验证方法,在上述S201之前,具体还可以包括下述S501-S503:In one design, in order to complete uplink security verification, as shown in FIG. 5 , a security verification method provided by an embodiment of the present invention may specifically include the following S501-S503 before the above S201:

S501、在进行上行安全验证的情况下,接收服务器发送的验证请求和目标标识,建立安全验证任务。S501. In the case of performing uplink security verification, receive a verification request and a target identifier sent by the server, and establish a security verification task.

其中,服务器为目标应用程序所对应的服务器。Wherein, the server is a server corresponding to the target application program.

作为一种可能的实现方式,上行安全验证为终端向安全验证装置发送验证信息的验证方法,上述目标标识为待进行安全验证的目标应用程序所对应的终端的标识。As a possible implementation, the uplink security verification is a verification method for the terminal to send verification information to the security verification device, and the above-mentioned target ID is the ID of the terminal corresponding to the target application program to be security verified.

作为一种可能的实现方式,上述服务器为目标应用程序所对应的服务器,在需要对目标应用程序进行安全验证的情况下,目标应用程序所对应的服务器可以向安全验证装置发送验证请求,并在验证请求中附带终端所对应的标识(即目标标识)。As a possible implementation, the above-mentioned server is the server corresponding to the target application program. When the target application program needs to be security verified, the server corresponding to the target application program can send a verification request to the security verification device, and The identification corresponding to the terminal (that is, the target identification) is attached to the verification request.

作为一种可能的实现方式,在接收到服务器发送的验证请求和目标标识之后,安全验证装置可以建立安全验证任务。As a possible implementation manner, after receiving the verification request and the target identifier sent by the server, the safety verification device may establish a safety verification task.

可以理解,在目标应用程序需要进行安全验证的情况下,目标应用程序所对应的服务器可以向安全验证装置提交安全验证请求,以及待验证的终端标识,以添加安全验证任务。It can be understood that, when the target application program needs to perform security verification, the server corresponding to the target application program may submit a security verification request and the terminal identifier to be verified to the security verification device to add a security verification task.

S502、接收用户发起的安全验证请求。S502. Receive a security verification request initiated by a user.

其中,安全验证请求中携带第一验证信息和用户标识。Wherein, the security verification request carries the first verification information and the user identification.

作为一种可能的实现方式,在进行安全验证的过程中,安全验证装置还需要接收用户(即终端)所发送的安全验证请求,以获取第一验证信息和用户标识(终端标识)。As a possible implementation, during the security verification process, the security verification device also needs to receive a security verification request sent by a user (ie, a terminal) to obtain first verification information and a user ID (terminal ID).

作为一种可能的实现方式,在用户发送安全验证请求消息时,可以在安全验证请求消息中携带有第一验证信息和用户标识。As a possible implementation manner, when the user sends the security verification request message, the first verification information and the user identifier may be carried in the security verification request message.

可以理解,用户可以在终端中发起验证请求,并调用5G消息深度链接携带第一验证信息。从而用户无需进行输入,使得终端直接跳转到5G消息指定的Chatbot,将第一验证信息通过运营商5G消息网络发送给安全验证装置。It can be understood that the user can initiate a verification request in the terminal, and call a 5G message deep link to carry the first verification information. Therefore, the user does not need to input, so that the terminal directly jumps to the Chatbot specified by the 5G message, and sends the first verification information to the security verification device through the operator's 5G message network.

S503、判断用户标识和目标标识是否匹配,并在用户标识和目标标识匹配的情况下,对第一验证信息进行验证。S503. Determine whether the user ID matches the target ID, and if the user ID matches the target ID, verify the first verification information.

作为一种可能的实现方式,在接收到服务器发送的验证请求和目标标识,建立安全验证任务,且接收到用户发送安全验证请求之后,安全验证装置可以对用户标识和目标标识进行对比,以判断用户标识和目标标识是否匹配(即是否一致)。As a possible implementation, after receiving the verification request sent by the server and the target ID, establishing a security verification task, and receiving the security verification request sent by the user, the security verification device can compare the user ID and the target ID to determine Whether the user ID and the target ID match (ie, are they consistent).

作为一种可能的实现方式,在确定用户标识和目标标识匹配之后,再进一步对第一验证信息进行验证。As a possible implementation manner, after it is determined that the user identifier matches the target identifier, the first verification information is further verified.

可以理解,安全验证装置可以判断从终端接收到的用户标识和从服务器接收到的目标标识是否一致,在一致的情况下,在进行下一步的对第一验证信息的验证。It can be understood that the security verification device may determine whether the user ID received from the terminal is consistent with the target ID received from the server, and if they are consistent, proceed to the next step of verifying the first verification information.

在一种设计中,为了完成安全验证信息的上传,如图6所示,本发明实施例提供的一种安全验证方法,在上述S503之后,具体还可以包括下述S601-S602:In one design, in order to complete the upload of security verification information, as shown in FIG. 6, a security verification method provided by an embodiment of the present invention may specifically include the following S601-S602 after the above S503:

S601、在第一验证信息通过验证的情况下,判断第一验证信息中是否携带目标字段信息。S601. When the first verification information passes the verification, determine whether the first verification information carries target field information.

其中,目标字段信息用于进行安全验证。Among them, the target field information is used for security verification.

作为一种可能的实现方式,在第一验证信息通过验证时,安全验证装置可以进一步的判断第一验证信息中是否携带目标字段信息,以在第一验证信息中携带目标字段信息的情况下,通过目标字段信息进行安全验证。As a possible implementation, when the first verification information passes the verification, the security verification device may further determine whether the first verification information carries target field information, so that if the first verification information carries target field information, Security verification is performed through the target field information.

可以理解,在对接收到的第一验证信息进行验证,确认终端发送的验证信息是否正确有效,以在通过验证的情况下,进一步确定第一验证信息中是否携带目标字段信息。It can be understood that after verifying the received first verification information, it is confirmed whether the verification information sent by the terminal is correct and valid, so as to further determine whether the first verification information carries target field information if the verification is passed.

S602、在第一验证信息中携带目标字段信息的情况下,采集目标字段信息,并将目标字段信息发送给服务器,完成安全验证信息的上传。S602. If the target field information is carried in the first verification information, collect the target field information and send the target field information to the server to complete uploading of the security verification information.

作为一种可能的实现方式,在确定第一验证信息中携带目标字段信息时,从第一验证信息中采集得到目标字段信息。As a possible implementation manner, when it is determined that the first verification information carries the target field information, the target field information is collected from the first verification information.

作为一种可能的实现方式,在从第一验证信息中采集得到目标字段信息之后,可以通过5G消息网络将目标字段信息发送给目标应用程序所对应的服务器,以实现安全验证信息的上传。As a possible implementation, after the target field information is collected from the first verification information, the target field information can be sent to the server corresponding to the target application program through the 5G message network, so as to upload the security verification information.

在一种设计中,为了实现双向安全验证,如图7所示,本发明实施例提供的一种安全验证方法,在上述S602之后,具体还可以包括下述S701-S702:In one design, in order to realize two-way security verification, as shown in FIG. 7, a security verification method provided by an embodiment of the present invention may specifically include the following S701-S702 after the above S602:

S701、在进行双向安全验证的情况下,根据第一验证信息和其他信息生成目标验证信息。S701. In the case of performing bidirectional security verification, generate target verification information according to the first verification information and other information.

其中,其他信息包括以下至少一项:目标标识、用户信息、目标应用程序信息。Wherein, other information includes at least one of the following: target identifier, user information, and target application program information.

作为一种可能的实现方式,双向安全验证为终端向安全验证装置发送验证信息之后,安全验证装置在对接收到的验证信息进行判断之后,再向终端返回一个验证信息的验证方法。As a possible implementation, the two-way security verification is a verification method in which after the terminal sends verification information to the safety verification device, the safety verification device returns a verification message to the terminal after judging the received verification information.

作为一种可能的实现方式,安全验证装置需要检查配置是否需要进行终端和服务器的双向安全验证,以应对特殊场景下仿冒服务器造成的安全风险。As a possible implementation, the security verification device needs to check whether the configuration requires two-way security verification between the terminal and the server, so as to deal with security risks caused by counterfeit servers in special scenarios.

S702、基于目标验证信息,完成下行安全验证流程。S702. Complete the downlink security verification process based on the target verification information.

作为一种可能的实现方式,在确定需要进行双向安全验证的情况下,可以根据第一验证信息和其他信息生成目标验证信息。从而通过下行安全验证流程完成目标验证信息的下发。As a possible implementation manner, when it is determined that two-way security verification is required, target verification information may be generated according to the first verification information and other information. In this way, the delivery of the target verification information is completed through the downlink security verification process.

作为一种可能的实现方式,当发生异常结果时,可以通过接口将结果提供给服务器,以及时做出响应。As a possible implementation, when an abnormal result occurs, the result can be provided to the server through the interface to respond in time.

在一种实现方式中,上述安全验证流程适用于类似当前账号找回身份验证的场景,能够简化输入操作,并携带更复杂的验证信息和应用程序的特殊信息给安全验证装置以实现全面验证,同时支持应用程序和服务器之间的双向验证,满足不同场景下的差异化验证需求,避免服务端伪造风险。In one implementation, the above-mentioned security verification process is applicable to scenarios similar to current account retrieval identity verification, which can simplify the input operation, and carry more complex verification information and application-specific information to the security verification device to achieve comprehensive verification. At the same time, it supports two-way verification between the application program and the server to meet the differentiated verification requirements in different scenarios and avoid the risk of server-side forgery.

示例性的,利用本发明的方法和安全验证装置,基于5G消息实现终端和服务器的双向验证。例如某应用程序会在接入的子网下搜索处于相同子网内的某个服务器,因此存在服务器(终端)被仿冒的风险(类似伪基站),以达到获取用户数据或欺诈等目的。因此在访问该服务前,基于5G消息实现应用程序与服务器的双向验证,只有正确的服务器(终端)才能通过验证。安全验证装置可以独立设置,也可以内置于服务器内部作为一个模块存在。Exemplarily, using the method and security verification device of the present invention, the two-way verification between the terminal and the server is realized based on 5G messages. For example, an application will search for a server in the same subnet under the accessed subnet, so there is a risk of the server (terminal) being counterfeited (similar to a fake base station) to achieve the purpose of obtaining user data or fraud. Therefore, before accessing the service, the two-way verification between the application program and the server is realized based on the 5G message, and only the correct server (terminal) can pass the verification. The safety verification device can be set independently, or can be built into the server and exist as a module.

具体的实施步骤如下:终端连接网络,启动应用程序搜索服务器,在选择到对应的服务器之后,发起双向安全验证,通过5G消息深度链接跳转到指定Chatbot,通过5G消息发送验证信息给安全验证装置。以完成对应用程序的验证,生成验证信息并通过5G消息发送给应用程序。应用程序在收到验证信息,完成对服务器的验证,并建立与服务器之间的服务关联,开始执行对应任务功能。The specific implementation steps are as follows: the terminal connects to the network, starts the application program to search for the server, and after selecting the corresponding server, initiates two-way security verification, jumps to the specified Chatbot through the deep link of the 5G message, and sends the verification information to the security verification device through the 5G message . To complete the verification of the application program, generate verification information and send it to the application program through 5G messages. After receiving the verification information, the application completes the verification of the server, establishes a service association with the server, and starts to execute the corresponding task function.

本发明实施例利用5G消息通道,通过深度链接简化输入操作,实现应用程序安全验证的方法。通过利用5G消息解决应用程序安全验证问题具有以下优势:传输通道安全;可携带更丰富的验证信息形式,实现更高级别安全验证;避免了短信验证码易被截取的风险性,同时提升用户操作效率;除了下发验证信息的验证方式外,还支持双向验证,满足不同场景基于5G消息的差异化验证需要。The embodiment of the present invention utilizes the 5G message channel, simplifies the input operation through the deep link, and realizes the method for verifying the safety of the application program. Using 5G messages to solve the problem of application security verification has the following advantages: the transmission channel is safe; it can carry richer forms of verification information to achieve a higher level of security verification; avoid the risk of SMS verification codes being easily intercepted, and at the same time improve user operations Efficiency: In addition to the verification method of sending verification information, it also supports two-way verification to meet the needs of differentiated verification based on 5G messages in different scenarios.

进一步需要说明的是,对于本申请所涉及的5G消息,对于通信运营商而言,满足用户通信需求是最基本的服务宗旨。当5G时代来临时,全球运营商在GSMA达成了广泛共识,短信业务需要升级到富媒体消息业务,我们称之为5G消息业务。5G消息业务不仅支持个人用户之间的多媒体消息交互,还可以使行业客户为其用户提供新型的基于富媒体的交互式数字服务。根据GSMA计划,未来5G终端都将支持5G消息业务,目前相关标准已完成制定工作。5G消息业务的出现将为广大手机用户带来全新的业务体验,为全球运营商、行业客户和相关产业界带来宝贵的发展机遇。It should be further noted that, for the 5G messages involved in this application, for communication operators, meeting user communication needs is the most basic service tenet. When the 5G era comes, global operators have reached a broad consensus in GSMA that SMS services need to be upgraded to rich media message services, which we call 5G message services. The 5G message service not only supports multimedia message interaction between individual users, but also enables industry customers to provide their users with new interactive digital services based on rich media. According to the GSMA plan, all 5G terminals will support 5G message services in the future, and the relevant standards have been formulated. The emergence of 5G message service will bring a brand-new service experience to mobile phone users, and bring valuable development opportunities for global operators, industry customers and related industries.

5G消息基于GSMA RCS UP标准构建,实现消息的多媒体化、轻量化,通过引入MaaP技术实现行业消息的交互化。5G消息带来全新的人机交互模式,用户在消息窗口内就能完成服务搜索、发现、交互、支付等一站式的业务体验,构建了全新的社交和信息服务入口。5G messages are constructed based on the GSMA RCS UP standard to realize multimedia and lightweight messages, and realize the interactive nature of industry messages by introducing MaaP technology. 5G messaging brings a brand-new human-computer interaction mode. Users can complete one-stop business experiences such as service search, discovery, interaction, and payment within the message window, and build a new social and information service portal.

使用5G消息,用户无需下载客户端,在终端原生的短信入口即可接收到5G消息。5G消息业务使个人用户之间的信息沟通更丰富、更便捷,用户之间除了可以发送文本信息,还可以发送图片、音视频等多种媒体和多种格式的信息。Using 5G messages, users do not need to download the client, and can receive 5G messages at the terminal's native SMS entry. The 5G message service makes the information communication between individual users richer and more convenient. In addition to sending text messages, users can also send pictures, audio and video and other media and information in various formats.

使用5G消息,政府和企业可以将公共服务和商业服务直接送达最终用户,用户也可以通过5G消息的目录服务功能,以类似应用商店的方式对服务进行搜索和选择。这些公共服务和商业服务以富媒体消息和交互式卡片的形式呈现在用户的消息界面上,用户可以随时与服务提供方交流或选择服务。借助5G消息,用户可以在消息窗口内方便地与各行各业的服务商对话,获得高效的个性化服务;行业客户与他们的用户也可以建立起便捷的智能服务通道,获得更多的用户反馈,从而与用户建立起更紧密的联系。Using 5G messaging, governments and enterprises can deliver public and commercial services directly to end users, and users can also use the directory service function of 5G messaging to search and select services in a manner similar to an app store. These public and commercial services are presented on the user's message interface in the form of rich media messages and interactive cards, and users can communicate with service providers or choose services at any time. With the help of 5G messages, users can conveniently communicate with service providers from all walks of life in the message window to obtain efficient personalized services; industry customers and their users can also establish convenient intelligent service channels to obtain more user feedback , so as to establish a closer relationship with users.

5G消息业务在保持用户原有通信习惯、充分继承电信业务的码号体系、实名制、安全性、互联互通和电信级服务质量的基础上,以终端原生方式升级短信服务。5G消息业务融合多种媒体和消息格式,并可无缝与传统短信融合。5G消息业务利用人工智能、云计算和大数据等能力,为用户提供高效的智能服务,满足了用户丰富的信息沟通需求和多样化的服务需求。On the basis of maintaining users' original communication habits and fully inheriting the code number system, real-name system, security, interconnection and carrier-level service quality of the 5G messaging service, the SMS service is upgraded in a terminal native way. 5G message service integrates multiple media and message formats, and can be seamlessly integrated with traditional SMS. The 5G messaging service utilizes capabilities such as artificial intelligence, cloud computing, and big data to provide users with efficient and intelligent services, meeting users' rich information communication needs and diversified service needs.

5G消息支持丰富的媒体格式,包括文本、图片、音视频等。5G消息业务分为两大类,一类是个人用户与个人用户之间交互的消息,另一类是行业客户与个人用户之间交互的消息。个人用户与个人用户之间的消息还分为点对点消息、群发消息和群聊消息。5G messages support rich media formats, including text, pictures, audio and video, etc. The 5G message service is divided into two categories, one is messages interacting between individual users and individual users, and the other is messages interacting between industry customers and individual users. Messages between individual users can also be classified into point-to-point messages, group messages and group chat messages.

个人用户之间的消息功能,5G消息中个人用户之间传送的消息可支持多种媒体格式,包括文本、图片、音频、视频、表情、位置和联系人等。支持在线消息和离线消息,并可向用户提供消息状态报告和消息历史管理。The message function between individual users, the messages transmitted between individual users in 5G messages can support a variety of media formats, including text, pictures, audio, video, emoticons, locations and contacts, etc. It supports online messages and offline messages, and can provide users with message status reports and message history management.

点对点消息:是指一个用户向另一个用户发送的消息。点对点消息除支持基本功能之外,还支持消息与短信之间的相互转化。若消息接收方不是5G消息用户或消息接收方是5G消息用户但当前不在线,则网络通过短信通道下发该消息。若消息中包含多媒体内容,回落为短信时,在短信内容中携带提取该多媒体内容的URL,接收方收到短信后点击该URL可访问该多媒体内容。Peer-to-peer messaging: Refers to a message sent from one user to another. In addition to supporting basic functions, peer-to-peer messages also support mutual conversion between messages and short messages. If the message recipient is not a 5G message user or the message recipient is a 5G message user but is not online, the network will send the message through the SMS channel. If the message contains multimedia content, when it falls back to a short message, the URL for extracting the multimedia content is carried in the short message content, and the receiver can click on the URL after receiving the short message to access the multimedia content.

群发消息:是指一个用户一次输入或选择多个联系人,向该联系人列表群发消息。群发消息在接收方终端上呈现为点对点消息。群发消息除支持基本功能之外,还支持消息转短信。若消息接收方不是5G消息用户或消息接收方是5G消息用户但当前不在线,则网络通过短信通道下发该消息。若消息中包含多媒体内容,回落为短信时,在短信内容中携带提取该多媒体内容的URL,接收方收到短信后点击该URL可访问该多媒体内容。用户可以选择多个具备5G消息能力的联系人来创建群。群创建成功后,所有已经加入群的用户可在群中进行消息交互。支持群管理功能,包括创建群、加入群、退出群、删除群成员和解散群等。Mass sending message: refers to a user inputting or selecting multiple contacts at one time, and sending a mass message to the contact list. A group message appears as a point-to-point message on the receiver's terminal. In addition to supporting basic functions, group messaging also supports transferring messages to SMS. If the message recipient is not a 5G message user or the message recipient is a 5G message user but is not online, the network will send the message through the SMS channel. If the message contains multimedia content, when it falls back to a short message, the URL for extracting the multimedia content is carried in the short message content, and the receiver can click on the URL after receiving the short message to access the multimedia content. Users can select multiple contacts with 5G messaging capabilities to create a group. After the group is successfully created, all users who have joined the group can exchange messages in the group. Supports group management functions, including creating groups, joining groups, exiting groups, deleting group members, and disbanding groups, etc.

群组聊天:用户可以选择多个具备5G消息能力的联系人来创建群。群创建成功后,所有已经加入群的用户可在群中进行消息交互。支持群管理功能,包括创建群、加入群、退出群、删除群成员和解散群等。Group Chat: Users can select multiple contacts with 5G messaging capabilities to create a group. After the group is successfully created, all users who have joined the group can exchange messages in the group. Supports group management functions, including creating groups, joining groups, exiting groups, deleting group members, and disbanding groups, etc.

行业与个人用户之间的消息功能,行业客户以Chatbot的形式与个人用户通过运营商网络进行消息交互。个人用户向行业客户的Chatbot发送的消息内容可以包含的媒体格式有:文本、图片、音频、视频、表情、位置和联系人等。The message function between industry and individual users, industry customers interact with individual users through the carrier network in the form of Chatbot. The message content sent by an individual user to an industry customer's Chatbot can contain media formats such as text, pictures, audio, video, emoticons, locations, and contacts.

行业客户的Chatbot通过点对点和群发消息方式向个人用户发送的消息内容可以包含的媒体格式有:文本、图片、音频、视频、表情、位置和联系人等,此外还可以包含富媒体卡片,消息中还可携带选项列表(包括“建议回复”和“建议操作”)。The message content sent by the Chatbot of an industry customer to an individual user through point-to-point and group messaging can include media formats such as text, pictures, audio, video, emoticons, locations, and contacts, etc. In addition, rich media cards can also be included in the message. A list of options (including "suggested responses" and "suggested actions") can also be carried.

发现Chatbot服务:用户与Chatbot的消息交互可以通过多种方式触发,如在消息搜索框内搜索后点击搜索结果触发,从浏览器的网页上点击触发、扫描二维码触发,输入Chatbot ID触发,触发后即可进入消息交互界面。Discover Chatbot service: The message interaction between the user and the Chatbot can be triggered in various ways, such as clicking the search result after searching in the message search box, clicking on the browser web page, scanning the QR code, or entering the Chatbot ID. After triggering, you can enter the message interaction interface.

查看Chatbot详细信息:Chatbot的详细信息包括账号、名称、头像、服务描述和客服电话等。用户可以查看终端获取的Chatbot详细信息。用户可将Chatbot详细信息存储在终端本地,也可删除终端本地已存储的Chatbot详细信息。第一次收到来自Chatbot的消息后,终端将向运营商网络查询校验此Chatbot的详情,若未发现该Chatbot,则认为此消息的来源为不可信,不向用户进行展示,从而确保了消息来源的可靠性。View Chatbot details: Chatbot details include account number, name, avatar, service description and customer service phone number, etc. Users can view the Chatbot details obtained by the terminal. Users can store Chatbot details locally on the terminal, or delete Chatbot details stored locally on the terminal. After receiving a message from the Chatbot for the first time, the terminal will check the details of the Chatbot from the operator network. If the Chatbot is not found, it will consider the source of the message as untrustworthy and will not display it to the user, thus ensuring Reliability of sources.

消息操作:个人用户可通过“建议回复”与Chatbot交互。“建议回复”在界面上展示为一个可点击的按键。当用户点击“建议回复”按键时,终端将该“建议回复”所定义的内容作为一条消息发送给Chatbot。这条发送内容是用户可见的。个人用户可以通过“建议操作”与Chatbot交互。“建议操作”在界面上展示为一个可点击的按键。当用户点击“建议操作”按键时,终端执行该“建议操作”定义的功能,如:打开特定网页或应用程序、调起电话拨号应用完成音视频电话呼叫至特定对象、在地图上查询位置和发送终端本地地理位置、添加日历事件、编辑起草和发送文本消息或音视频消息等。Chatbot发送的消息中的按键有三种呈现方式:悬浮按键、富媒体卡片内置按键、消息对话界面底部的固定按键。用户点击悬浮按键后,所有悬浮按键消失。用户点击富媒体卡片内置按键后,内置按钮不消失。用户点击固定按键后,固定按键不消失。Message operation: Individual users can interact with Chatbot through "suggested replies". "Suggested Reply" is displayed as a clickable button on the interface. When the user clicks the "suggested reply" button, the terminal sends the content defined by the "suggested reply" to Chatbot as a message. This sent content is visible to the user. Individual users can interact with the Chatbot through "suggested actions". The "suggested action" is displayed as a clickable button on the interface. When the user clicks the "suggested operation" button, the terminal executes the functions defined by the "suggested operation", such as: opening a specific webpage or application, invoking the phone dialing application to complete an audio and video call to a specific object, querying the location on the map and Send the local location of the terminal, add calendar events, edit and draft and send text messages or audio and video messages, etc. The buttons in the message sent by Chatbot can be displayed in three ways: floating buttons, built-in buttons in rich media cards, and fixed buttons at the bottom of the message dialog interface. After the user clicks the floating button, all floating buttons disappear. After the user clicks the built-in button of the rich media card, the built-in button does not disappear. After the user clicks the fixed button, the fixed button does not disappear.

对于5G消息的技术要求,其中基本要求为:5G消息是运营商基础通信能力的升级,应是5G时代终端和运营商网络普遍具备的基础通信能力。在终端上应原生支持,无需用户下载安装应用或操作业务开关即可使用5G消息功能。同时运营商将升级自身网络设备,实现5G消息功能,并实现全球互联互通。终端要求为:终端应支持GSMA RCS UniversalProfile v2.4版本,同时终端应具备根据后续标准演进进行升级的能力。For the technical requirements of 5G messages, the basic requirements are: 5G messages are an upgrade of the basic communication capabilities of operators, and should be the basic communication capabilities generally possessed by terminals and operator networks in the 5G era. It should be natively supported on the terminal, and users can use the 5G message function without downloading and installing applications or operating service switches. At the same time, operators will upgrade their own network equipment to realize 5G message function and realize global interconnection. The terminal requirements are: the terminal should support GSMA RCS UniversalProfile v2.4, and the terminal should have the ability to upgrade according to the subsequent standard evolution.

终端应支持5G消息中个人消息和行业消息功能,包括:根据接入运营商网络下发的配置文件对业务接入点、网络参数、业务参数等进行配置;根据SIM卡信息与网络间进行安全认证;基于Standalone Message方式发送和接收一对一消息、群发消息;通过Standalone Message方式与行业客户Chatbot进行交互;支持发送和接收群聊消息;在个人消息和行业消息中使用HTTP协议传输多媒体内容,包括图片、视频、音频、vCard格式的电子名片等;支持接收、展示和处理来自Chatbot的富媒体卡片消息;在与Chatbot的消息交互中支持“建议操作”、“建议回复”等功能;支持到运营商的Chatbot目录服务器中进行Chatbot搜索;支持到运营商的Chatbot信息服务器中进行Chatbot详情查询;支持识别Chatbot对应的Deeplink,并通过扫描二维码、网页点击等方式调用消息应用开始与Chatbot的对话;)支持对Chatbot消息和Chatbot进行投诉和举报;支持获取网络配置的Chatbot黑名单,支持用户配置终端本地的Chatbot或者联系人黑名单。The terminal should support the functions of personal messages and industry messages in 5G messages, including: configuring service access points, network parameters, service parameters, etc. according to the configuration files issued by the access operator's network; Authentication; send and receive one-to-one messages and group messages based on Standalone Message; interact with industry customer Chatbot through Standalone Message; support sending and receiving group chat messages; use HTTP protocol to transmit multimedia content in personal messages and industry messages, Including pictures, videos, audios, electronic business cards in vCard format, etc.; supports receiving, displaying and processing rich media card messages from Chatbot; supports functions such as "suggested operations" and "suggested replies" in the message interaction with Chatbot; supports to Search for Chatbot in the operator's Chatbot directory server; support Chatbot details query in the operator's Chatbot information server; support identifying the Deeplink corresponding to the Chatbot, and call the message application to start communicating with the Chatbot by scanning the QR code, clicking on the webpage, etc. Dialogue;) Supports complaints and reports on Chatbot messages and Chatbots; supports obtaining the Chatbot blacklist configured by the network, and supports users to configure the local Chatbot or contact blacklist of the terminal.

5G消息对网络要求:运营商网络应支持GSMA Universal Profile v2.4版本及其后续升级版本,支持终端接入并正常使用其5G消息功能,同时,还应支持:为终端提供统一的终端-网络接口,保证终端接入不同运营商网络后均可正常使用5G消息功能;为行业客户提供统一的Chatbot接口,保证行业客户Chatbot可以相同方式接入不同运营商网络;在终端功能版本升级后,支持不同版本终端的兼容和共存处理;个人用户之间的消息在运营商间的互联互通;对行业客户的Chatbot进行审核、认证;将Chatbot列表与Chatbot详情写入Chatbot目录和信息服务,完成相关数据管理,支持终端对Chatbot目录和Chatbot详情的查询;运营商网络应保障个人用户之间、行业客户与个人用户之间消息投递可达性(对无法使用5G消息投递的消息采用网络短信回落、消息撤回等方式进行投递);运营商网络根据标准版本的迭代更新,建立统一的技术规范标准,确保提供相对一致的产品功能和统一的技术服务能力;支持将终端上报的行业客户垃圾信息进行屏蔽。5G message requirements on the network: the operator network should support GSMA Universal Profile v2.4 and its subsequent upgrades, support terminal access and normal use of its 5G message function, and also support: provide a unified terminal-network for the terminal interface to ensure that the terminal can use the 5G message function normally after connecting to different operator networks; provide a unified Chatbot interface for industry customers to ensure that industry customers Chatbot can access different operator networks in the same way; after the terminal function version is upgraded, support Compatibility and coexistence processing of different versions of terminals; interconnection of messages between individual users between operators; review and certification of chatbots of industry customers; write chatbot list and chatbot details into chatbot directory and information service, and complete relevant data Management, support the terminal to query the Chatbot directory and Chatbot details; the operator network should ensure the accessibility of message delivery between individual users, between industry customers and individual users (for messages that cannot be delivered using 5G, use network SMS fallback, message Withdrawal and other means of delivery); the operator network establishes a unified technical specification standard based on the iterative update of the standard version to ensure the provision of relatively consistent product functions and unified technical service capabilities; it supports the shielding of industry customer spam information reported by the terminal.

5G消息的行业接入要求,行业客户可向运营商申请开通Chatbot,通过调用运营商提供的API,实现与终端间基于GSMA RCS Universal Profile v2.4中Standalone Message方式的消息交互。包括:调用运营商网络能力向终端发送点对点或广播消息;点对点或广播消息可发送文本或多媒体消息,消息中还可包含“建议回复”和“建议操作”;点对点或广播消息可发送富媒体卡片消息,富媒体卡片中可包含标题、介绍、多媒体内容、“建议回复”和“建议操作”;接收终端上发的多媒体消息;接收终端点击“建议回复”或“建议操作”后返回的消息和操作信息。5G message industry access requirements, industry customers can apply to the operator to activate the Chatbot, and by calling the API provided by the operator, realize message interaction with the terminal based on the Standalone Message method in GSMA RCS Universal Profile v2.4. Including: call the operator's network capabilities to send point-to-point or broadcast messages to the terminal; point-to-point or broadcast messages can send text or multimedia messages, and the messages can also include "recommended reply" and "suggested operation"; point-to-point or broadcast messages can send rich media cards Message, the rich media card can contain title, introduction, multimedia content, "suggested reply" and "suggested operation"; the multimedia message sent by the receiving terminal; the message returned by the receiving terminal after clicking "suggested reply" or "suggested operation" and Action information.

进一步的,本发明还涉及到深度链接,深度链接是应用程序中的深度链接,通过使用统一资源标识符(URI)链接到应用程序内的特定位置,而不仅仅是启动应用程序。如果把应用程序看做一个网站,那么深度链接就是网站中的一个页面,比如产品页面,活动促销页面等,通过深度链接可以从外部直接跳到这个页面上。深度链接在应用程序市场推广运营中价值明显:使用深度链接的广告商可以在用户点击广告后直接进入指定的应用程序,而没有使用深度链接的应用程序广告只能在点击后将用户跳转到应用程序首页上。深度链接目前已得到Android、iOS、Windows、Firefox OS、BlackBerry 10等主流操作系统的支持。Further, the present invention also relates to a deep link. A deep link is a deep link in an application, which uses a Uniform Resource Identifier (URI) to link to a specific location within the application, rather than just launching the application. If the application is regarded as a website, then a deep link is a page in the website, such as a product page, an event promotion page, etc. Through deep links, you can directly jump to this page from the outside. The value of deep links is obvious in application marketing operations: Advertisers who use deep links can directly enter the specified application after users click on the advertisement, while application advertisements that do not use deep links can only redirect users to on the application home page. Deep linking is currently supported by mainstream operating systems such as Android, iOS, Windows, Firefox OS, and BlackBerry 10.

以目标应用程序在iOS下的的深度链接为例,用户可以从其他应用中快速跳到“目标小程序”:用户在其他应用中调用目标小程序”的深度链接,询问用户是否启动目标应用程序,并直接跳转到“目标小程序”界面中。5G消息也支持深度链接功能,可以跳转到指定的Chatbot;同时,按照标准,还可以在跳转后增加发送特定消息内容等操作。Taking the deep link of the target application under iOS as an example, the user can quickly jump to the "target applet" from other applications: the user invokes the deep link of the "target applet" in other applications and asks the user whether to start the target application , and jump directly to the "target applet" interface. 5G messages also support the deep link function, which can jump to a specified Chatbot; at the same time, according to the standard, you can also add operations such as sending specific message content after the jump.

本发明提供一种安全验证方法及装置,应用于进行安全信息验证的场景中,在进行安全验证的情况下,首先获取目标验证信息和包括深度链接参数的预设消息模板,从而可以基于深度链接参数对目标验证信息进行编码,得到编码信息。以进一步的将编码信息添加至预设消息模板中,得到包括目标深度链接和目标验证信息的下发消息体,并将下发消息体发送至用户,完成安全验证信息的下发,从而完成对目标应用程序的安全验证。通过上述方法,可以提高传输通道的安全性,并通过携带更加丰富的验证信息形式,实现更高级别安全验证,避免了验证信息被截取的风险性,从而提高信息验证的安全性。The present invention provides a safety verification method and device, which are applied in the scene of safety information verification. In the case of safety verification, the target verification information and the preset message template including deep link parameters are first obtained, so that the deep link can be based on The parameter encodes the target verification information to obtain the encoded information. In order to further add the encoded information to the preset message template, obtain the sent message body including the target deep link and target verification information, and send the sent message body to the user to complete the sending of the security verification information, thereby completing the Security verification of the target application. Through the above method, the security of the transmission channel can be improved, and a higher level of security verification can be realized by carrying more abundant forms of verification information, avoiding the risk of verification information being intercepted, thereby improving the security of information verification.

上述主要从方法的角度对本发明实施例提供的方案进行了介绍。为了实现上述功能,其包含了执行各个功能相应的硬件结构和/或软件模块。本领域技术人员应该很容易意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,本发明实施例能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。The foregoing mainly introduces the solutions provided by the embodiments of the present invention from the perspective of methods. In order to realize the above functions, it includes corresponding hardware structures and/or software modules for performing various functions. Those skilled in the art should easily realize that, in combination with the units and algorithm steps of each example described in the embodiments disclosed herein, the embodiments of the present invention can be implemented in the form of hardware or a combination of hardware and computer software. Whether a certain function is executed by hardware or computer software drives hardware depends on the specific application and design constraints of the technical solution. Skilled artisans may use different methods to implement the described functions for each specific application, but such implementation should not be regarded as exceeding the scope of the present invention.

本发明实施例可以根据上述方法示例对一种安全验证装置进行功能模块的划分,例如,可以对应各个功能划分各个功能模块,也可以将两个或两个以上的功能集成在一个处理模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。可选的,本发明实施例中对模块的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。The embodiment of the present invention can divide a security verification device into functional modules according to the above method example, for example, each functional module can be divided corresponding to each function, or two or more functions can be integrated into one processing module. The above-mentioned integrated modules can be implemented in the form of hardware or in the form of software function modules. Optionally, the division of modules in this embodiment of the present invention is schematic, and is only a logical function division, and there may be another division manner in actual implementation.

图8为本发明实施例提供的一种安全验证装置的结构示意图。如图8所示,一种安全验证装置40用于提高信息验证的安全性,例如用于执行图2所示的一种安全验证方法。该一种安全验证装置40包括:获取单元401、处理单元402和发送单元403。Fig. 8 is a schematic structural diagram of a security verification device provided by an embodiment of the present invention. As shown in FIG. 8 , a security verification device 40 is used to improve the security of information verification, for example, to implement a security verification method shown in FIG. 2 . The security verification device 40 includes: an acquisition unit 401 , a processing unit 402 and a sending unit 403 .

获取单元401,用于在进行下行安全验证的情况下,获取目标验证信息和预设消息模板,预设消息模板包括深度链接参数。The obtaining unit 401 is configured to obtain target verification information and a preset message template when performing downlink security verification, and the preset message template includes deep link parameters.

处理单元402,用于基于深度链接参数对目标验证信息进行编码,得到编码信息。The processing unit 402 is configured to encode the target verification information based on the deep link parameters to obtain encoded information.

处理单元402,还用于将编码信息添加至预设消息模板中,得到下发消息体;下发消息体包括目标深度链接和目标验证信息,下发消息体用于完成对目标应用程序的安全验证。The processing unit 402 is also used to add the encoded information to the preset message template to obtain the sent message body; the sent message body includes the target deep link and target verification information, and the sent message body is used to complete the security of the target application verify.

发送单元403,用于将下发消息体发送至用户,完成安全验证信息的下发。The sending unit 403 is configured to send the sent message body to the user to complete the sending of the security verification information.

可选的,在本发明实施例提供的一种安全验证装置40中,如图9所示,安全验证装置40还可以包括:启动单元404和验证单元405。Optionally, in a security verification device 40 provided in an embodiment of the present invention, as shown in FIG. 9 , the security verification device 40 may further include: an activation unit 404 and a verification unit 405 .

启动单元404,用于用户触发下发消息体中包括的目标深度链接,启动目标应用程序。The starting unit 404 is configured for the user to trigger the target deep link contained in the message body to start the target application.

验证单元405,用于目标应用程序基于目标验证信息完成安全验证。The verification unit 405 is used for the target application program to complete security verification based on the target verification information.

可选的,在本发明实施例提供的一种安全验证装置40中,如图10所示,安全验证装置40还可以包括:构建单元406。Optionally, in a security verification device 40 provided in an embodiment of the present invention, as shown in FIG. 10 , the security verification device 40 may further include: a construction unit 406 .

构建单元406,用于预先构建预设消息模板,确定深度链接参数和字段信息采集规则;深度链接参数包括以下至少一项:深度链接格式、深度链接变量,字段信息采集规则用于确定并采集目标验证信息中所携带的目标字段信息。The construction unit 406 is configured to pre-build a preset message template, determine deep link parameters and field information collection rules; deep link parameters include at least one of the following: deep link format, deep link variables, and field information collection rules are used to determine and collect targets Verify the target field information carried in the information.

可选的,在本发明实施例提供的一种安全验证装置40中,获取单元401,还用于在进行上行安全验证的情况下,接收服务器发送的验证请求和目标标识,建立安全验证任务;服务器为目标应用程序所对应的服务器。Optionally, in a security verification device 40 provided in an embodiment of the present invention, the acquisition unit 401 is further configured to receive a verification request and a target identifier sent by the server when performing uplink security verification, and establish a security verification task; The server is a server corresponding to the target application program.

获取单元401,还用于接收用户发起的安全验证请求,安全验证请求中携带第一验证信息和用户标识。The acquiring unit 401 is further configured to receive a security verification request initiated by a user, where the security verification request carries first verification information and a user identifier.

处理单元402,还用于判断用户标识和目标标识是否匹配。The processing unit 402 is further configured to determine whether the user identifier matches the target identifier.

验证单元405,还用于在用户标识和目标标识匹配的情况下,对第一验证信息进行验证。The verification unit 405 is further configured to verify the first verification information when the user ID matches the target ID.

可选的,在本发明实施例提供的一种安全验证装置40中,安全验证装置40还可以包括:采集单元。Optionally, in a security verification device 40 provided in an embodiment of the present invention, the security verification device 40 may further include: a collection unit.

处理单元402,还用于在第一验证信息通过验证的情况下,判断第一验证信息中是否携带目标字段信息,目标字段信息用于进行安全验证。The processing unit 402 is further configured to determine whether the first verification information carries target field information when the first verification information passes the verification, and the target field information is used for security verification.

采集单元,用于在第一验证信息中携带目标字段信息的情况下,采集目标字段信息。The collection unit is configured to collect the target field information when the first verification information carries the target field information.

发送单元403,还用于将目标字段信息发送给服务器,完成安全验证信息的上传。The sending unit 403 is further configured to send the target field information to the server to complete the upload of the security verification information.

可选的,在本发明实施例提供的一种安全验证装置40中,处理单元402,还用于在进行双向安全验证的情况下,根据第一验证信息和其他信息生成目标验证信息;其他信息包括以下至少一项:目标标识、用户信息、目标应用程序信息。Optionally, in a security verification device 40 provided in an embodiment of the present invention, the processing unit 402 is further configured to generate target verification information according to the first verification information and other information in the case of performing two-way security verification; other information Including at least one of the following: target identification, user information, and target application program information.

发送单元403,还用于基于目标验证信息,完成下行安全验证流程。The sending unit 403 is further configured to complete the downlink security verification process based on the target verification information.

在采用硬件的形式实现上述集成的模块的功能的情况下,本发明实施例提供了上述实施例中所涉及的电子设备的另外一种可能的结构示意图。如图11所示,一种电子设备60,用于提高信息验证的安全性,例如用于执行图2所示的一种安全验证方法。该电子设备60包括处理器601,存储器602以及总线603。处理器601与存储器602之间可以通过总线603连接。In the case that the functions of the above-mentioned integrated modules are implemented in the form of hardware, this embodiment of the present invention provides another possible structural diagram of the electronic device involved in the above-mentioned embodiments. As shown in FIG. 11 , an electronic device 60 is used to improve the security of information verification, for example, to execute a security verification method shown in FIG. 2 . The electronic device 60 includes a processor 601 , a memory 602 and a bus 603 . The processor 601 and the memory 602 may be connected through a bus 603 .

处理器601是通信装置的控制中心,可以是一个处理器,也可以是多个处理元件的统称。例如,处理器601可以是一个通用中央处理单元(central processing unit,CPU),也可以是其他通用处理器等。其中,通用处理器可以是微处理器或者是任何常规的处理器等。The processor 601 is the control center of the communication device, and may be one processor, or may be a general term for multiple processing elements. For example, the processor 601 may be a general-purpose central processing unit (central processing unit, CPU), or other general-purpose processors. Wherein, the general-purpose processor may be a microprocessor or any conventional processor.

作为一种实施例,处理器601可以包括一个或多个CPU,例如图11中所示的CPU 0和CPU 1。As an embodiment, the processor 601 may include one or more CPUs, such as CPU 0 and CPU 1 shown in FIG. 11 .

存储器602可以是只读存储器(read-only memory,ROM)或可存储静态信息和指令的其他类型的静态存储设备,随机存取存储器(random access memory,RAM)或者可存储信息和指令的其他类型的动态存储设备,也可以是电可擦可编程只读存储器(electricallyerasable programmable read-only memory,EEPROM)、磁盘存储介质或者其他磁存储设备、或者能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其他介质,但不限于此。The memory 602 may be a read-only memory (read-only memory, ROM) or other types of static storage devices that can store static information and instructions, a random access memory (random access memory, RAM) or other types that can store information and instructions The dynamic storage device can also be an electrically erasable programmable read-only memory (electrically erasable programmable read-only memory, EEPROM), a magnetic disk storage medium or other magnetic storage devices, or can be used to carry or store instructions or data structures desired program code and any other medium that can be accessed by a computer, but not limited thereto.

作为一种可能的实现方式,存储器602可以独立于处理器601存在,存储器602可以通过总线603与处理器601相连接,用于存储指令或者程序代码。处理器601调用并执行存储器602中存储的指令或程序代码时,能够实现本发明实施例提供的一种安全验证方法。As a possible implementation manner, the memory 602 may exist independently of the processor 601, and the memory 602 may be connected to the processor 601 through the bus 603, and is used for storing instructions or program codes. When the processor 601 invokes and executes the instructions or program codes stored in the memory 602, a security verification method provided by the embodiment of the present invention can be implemented.

另一种可能的实现方式中,存储器602也可以和处理器601集成在一起。In another possible implementation manner, the memory 602 may also be integrated with the processor 601 .

总线603,可以是工业标准体系结构(Industry Standard Architecture,ISA)总线、外围设备互连(Peripheral Component Interconnect,PCI)总线或扩展工业标准体系结构(Extended Industry Standard Architecture,EISA)总线等。该总线可以分为地址总线、数据总线、控制总线等。为便于表示,图11中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。The bus 603 may be an Industry Standard Architecture (Industry Standard Architecture, ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (Extended Industry Standard Architecture, EISA) bus, etc. The bus can be divided into address bus, data bus, control bus and so on. For ease of representation, only one thick line is used in FIG. 11 , but it does not mean that there is only one bus or one type of bus.

需要指出的是,图11示出的结构并不构成对该电子设备60的限定。除图11所示部件之外,该电子设备60可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。It should be noted that the structure shown in FIG. 11 does not limit the electronic device 60 . In addition to the components shown in FIG. 11 , the electronic device 60 may include more or fewer components than shown, or combine certain components, or have a different arrangement of components.

作为一个示例,结合图8,电子设备中的获取单元401、处理单元402和发送单元403实现的功能与图11中的处理器601的功能相同。As an example, with reference to FIG. 8 , the functions implemented by the acquiring unit 401 , the processing unit 402 and the sending unit 403 in the electronic device are the same as those of the processor 601 in FIG. 11 .

可选的,如图11所示,本发明实施例提供的电子设备60还可以包括通信接口604。Optionally, as shown in FIG. 11 , the electronic device 60 provided in this embodiment of the present invention may further include a communication interface 604 .

通信接口604,用于与其他设备通过通信网络连接。该通信网络可以是以太网,无线接入网,无线局域网(wireless local area networks,WLAN)等。通信接口604可以包括用于接收数据的接收单元,以及用于发送数据的发送单元。The communication interface 604 is used to connect with other devices through the communication network. The communication network may be Ethernet, wireless access network, wireless local area network (wireless local area networks, WLAN) and so on. The communication interface 604 may include a receiving unit for receiving data, and a sending unit for sending data.

在一种设计中,本发明实施例提供的电子设备中,通信接口还可以集成在处理器中。In one design, in the electronic device provided by the embodiment of the present invention, the communication interface may also be integrated in the processor.

图12示出了本发明实施例中电子设备的另一种硬件结构。如图12所示,电子设备70可以包括处理器701、通信接口702、存储器703以及总线704。处理器701与通信接口702、存储器703耦合。Fig. 12 shows another hardware structure of the electronic device in the embodiment of the present invention. As shown in FIG. 12 , the electronic device 70 may include a processor 701 , a communication interface 702 , a memory 703 and a bus 704 . The processor 701 is coupled with the communication interface 702 and the memory 703 .

处理器701的功能可以参考上述处理器601的描述。此外,处理器701还具备存储功能,可以参考上述存储器602的功能。For functions of the processor 701, reference may be made to the description of the processor 601 above. In addition, the processor 701 also has a storage function, and reference may be made to the function of the above-mentioned memory 602 .

通信接口702用于为处理器701提供数据。该通信接口702可以是通信装置的内部接口,也可以是通信装置对外的接口(相当于通信接口604)。The communication interface 702 is used to provide data to the processor 701 . The communication interface 702 may be an internal interface of the communication device, or an external interface of the communication device (equivalent to the communication interface 604).

需要指出的是,图12中示出的结构并不构成对电子设备70的限定,除图12所示部件之外,该电子设备70可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。It should be pointed out that the structure shown in FIG. 12 does not constitute a limitation to the electronic device 70. In addition to the components shown in FIG. certain components, or a different arrangement of components.

通过以上的实施方式的描述,所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,仅以上述各功能单元的划分进行举例说明。在实际应用中,可以根据需要而将上述功能分配由不同的功能单元完成,即将装置的内部结构划分成不同的功能单元,以完成以上描述的全部或者部分功能。上述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Through the above description of the implementation, those skilled in the art can clearly understand that, for the convenience and brevity of the description, only the division of the above functional units is used as an example for illustration. In practical applications, the above function allocation can be completed by different functional units according to needs, that is, the internal structure of the device is divided into different functional units, so as to complete all or part of the functions described above. For the specific working process of the above-described system, device, and unit, reference may be made to the corresponding process in the foregoing method embodiments, and details are not repeated here.

本发明实施例还提供一种计算机可读存储介质,计算机可读存储介质中存储有指令,当计算机执行该指令时,该计算机执行上述方法实施例所示的方法流程中的各个步骤。An embodiment of the present invention also provides a computer-readable storage medium, in which instructions are stored. When a computer executes the instructions, the computer executes each step in the method flow shown in the above-mentioned method embodiments.

本发明的实施例提供一种包含指令的计算机程序产品,当指令在计算机上运行时,使得计算机执行上述方法实施例中的一种安全验证方法。An embodiment of the present invention provides a computer program product containing instructions, and when the instructions are run on a computer, the computer is made to execute a security verification method in the above method embodiments.

其中,计算机可读存储介质,例如可以是但不限于电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子(非穷举的列表)包括:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘。随机存取存储器(Random Access Memory,RAM)、只读存储器(Read-Only Memory,ROM)、可擦式可编程只读存储器(Erasable Programmable Read Only Memory,EPROM)、寄存器、硬盘、光纤、便携式紧凑磁盘只读存储器(Compact Disc Read-Only Memory,CD-ROM)、光存储器件、磁存储器件、或者上述的人以合适的组合、或者本领域数值的任何其他形式的计算机可读存储介质。一种示例性的存储介质耦合至处理器,从而使处理器能够从该存储介质读取信息,且可向该存储介质写入信息。当然,存储介质也可以是处理器的组成部分。处理器和存储介质可以位于特定用途集成电路(Application Specific Integrated Circuit,ASIC)中。在本发明实施例中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。Wherein, the computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or any combination thereof. More specific examples (non-exhaustive list) of computer readable storage media include: electrical connection having one or more wires, portable computer disk, hard disk. Random Access Memory (Random Access Memory, RAM), Read-Only Memory (Read-Only Memory, ROM), Erasable Programmable Read-Only Memory (Erasable Programmable Read Only Memory, EPROM), registers, hard disk, optical fiber, portable compact Disk read-only memory (Compact Disc Read-Only Memory, CD-ROM), an optical storage device, a magnetic storage device, or any other form of computer-readable storage medium in a suitable combination of the above, or values in the art. An exemplary storage medium is coupled to the processor such the processor can read information from, and write information to, the storage medium. Of course, the storage medium may also be a component of the processor. The processor and the storage medium may be located in an application specific integrated circuit (Application Specific Integrated Circuit, ASIC). In the embodiments of the present invention, a computer-readable storage medium may be any tangible medium containing or storing a program, and the program may be used by or in combination with an instruction execution system, apparatus or device.

由于本发明的实施例中的电子设备、计算机可读存储介质、计算机程序产品可以应用于上述方法,因此,其所能获得的技术效果也可参考上述方法实施例,本发明实施例在此不再赘述。Since the electronic devices, computer-readable storage media, and computer program products in the embodiments of the present invention can be applied to the above-mentioned methods, the technical effects that can be obtained can also refer to the above-mentioned method embodiments, and the embodiments of the present invention are not described herein Let me repeat.

以上,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何在本发明揭露的技术范围内的变化或替换,都应涵盖在本发明的保护范围之内。The above are only specific implementations of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or replacements within the technical scope disclosed in the present invention shall be covered within the protection scope of the present invention.

Claims (10)

1. A security verification method applied to a security verification device, the method comprising:
under the condition of carrying out downlink security verification, acquiring target verification information and a preset message template, wherein the preset message template comprises deep link parameters;
encoding the target verification information based on the deep link parameters to obtain encoded information;
adding the coding information into the preset message template to obtain a message body; the message body comprises a target deep link and the target verification information, and is used for completing safety verification of a target application program;
the message body is sent to the user to finish the sending of the security verification information;
Before the target verification information and the preset message template are obtained under the condition of carrying out the downlink security verification, the method further comprises the following steps:
under the condition of carrying out uplink security verification, receiving a verification request and a target identifier sent by a server, and establishing a security verification task; the server is a server corresponding to the target application program;
receiving a security verification request initiated by a user, wherein the security verification request carries first verification information and a user identifier;
judging whether the user identifier is matched with the target identifier or not, and verifying the first verification information under the condition that the user identifier is matched with the target identifier;
after the first verification information is verified, the method further includes:
judging whether the first verification information carries target field information or not under the condition that the first verification information passes verification, wherein the target field information is used for carrying out security verification;
and under the condition that the first verification information carries the target field information, acquiring the target field information, and sending the target field information to the server to finish uploading the security verification information.
2. The method of claim 1, wherein the sending the body of the delivery message to the user, after completing the delivery of the security verification information, further comprises:
triggering the target deep link included in the message body by a user, and starting the target application program;
the target application completes security verification based on the target verification information.
3. The method according to claim 2, wherein before the target verification information and the preset message template are obtained in the case of performing the downstream security verification, the method further includes:
pre-constructing the preset message template, and determining the deep link parameters and the field information acquisition rules; the deep link parameters include at least one of: and the field information acquisition rule is used for determining and acquiring target field information carried in the target verification information.
4. The method of claim 1, wherein the sending the target field information to the server, after the uploading of the security verification information is completed, further comprises:
Under the condition of bidirectional security verification, generating target verification information according to the first verification information and other information; the other information includes at least one of: the target identification, the user information and the target application information;
and completing the downlink security verification process based on the target verification information.
5. A security verification apparatus, comprising: the device comprises an acquisition unit, a processing unit and a sending unit;
the acquisition unit is used for acquiring target verification information and a preset message template under the condition of downlink security verification, wherein the preset message template comprises deep link parameters;
the processing unit is used for encoding the target verification information based on the deep link parameters to obtain encoded information;
the processing unit is further configured to add the encoded information to the preset message template to obtain a message body; the message body comprises a target deep link and the target verification information, and is used for completing safety verification of a target application program;
the sending unit is used for sending the sending message body to a user to finish the sending of the security verification information;
The acquisition unit is further used for receiving the verification request and the target identifier sent by the server under the condition of uplink security verification, and establishing a security verification task; the server is a server corresponding to the target application program;
the acquisition unit is further used for receiving a security verification request initiated by a user, wherein the security verification request carries first verification information and a user identifier;
the processing unit is further used for judging whether the user identifier is matched with the target identifier;
the verification unit is used for verifying the first verification information under the condition that the user identifier is matched with the target identifier;
the security verification apparatus further includes: an acquisition unit;
the processing unit is further configured to determine whether the first verification information carries target field information if the first verification information passes verification, where the target field information is used for security verification;
the acquisition unit is used for acquiring the target field information under the condition that the first verification information carries the target field information;
and the sending unit is also used for sending the target field information to the server to finish the uploading of the security verification information.
6. The security verification device of claim 5, further comprising: a starting unit and a verification unit;
the starting unit is used for triggering the target deep link included in the message body by a user and starting the target application program;
and the verification unit is used for completing security verification by the target application program based on the target verification information.
7. The security verification device of claim 6, wherein the security verification device further comprises: a construction unit;
the construction unit is used for constructing the preset message template in advance and determining the deep link parameters and the field information acquisition rules; the deep link parameters include at least one of: and the field information acquisition rule is used for determining and acquiring target field information carried in the target verification information.
8. The security authentication device of claim 5, wherein the processing unit is further configured to generate the target authentication information based on the first authentication information and other information in the case of bi-directional security authentication; the other information includes at least one of: the target identification, the user information and the target application information;
The sending unit is further configured to complete the downlink security verification process based on the target verification information.
9. A computer readable storage medium storing one or more programs, wherein the one or more programs comprise instructions, which when executed by a computer, cause the computer to perform a security verification method as claimed in any one of claims 1-4.
10. An electronic device, comprising: a processor and a memory; wherein the memory is configured to store one or more programs, the one or more programs comprising computer-executable instructions that, when executed by the electronic device, cause the electronic device to perform a security verification method as claimed in any one of claims 1 to 4.
CN202111264329.5A 2021-10-28 2021-10-28 A security verification method and device Active CN114039754B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111264329.5A CN114039754B (en) 2021-10-28 2021-10-28 A security verification method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111264329.5A CN114039754B (en) 2021-10-28 2021-10-28 A security verification method and device

Publications (2)

Publication Number Publication Date
CN114039754A CN114039754A (en) 2022-02-11
CN114039754B true CN114039754B (en) 2023-07-18

Family

ID=80135662

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111264329.5A Active CN114039754B (en) 2021-10-28 2021-10-28 A security verification method and device

Country Status (1)

Country Link
CN (1) CN114039754B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116916257B (en) * 2023-07-19 2024-09-27 中移互联网有限公司 5G message display method, device, 5G message system and electronic device
CN119325089B (en) * 2024-12-18 2025-03-04 联通在线信息科技有限公司 Anti-fraud number recanalization method and device based on SIM card authentication

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105357242A (en) * 2014-08-22 2016-02-24 中国电信股份有限公司 Method and system for accessing wireless local area network, short message push platform and portal system
CN105577619A (en) * 2014-10-15 2016-05-11 腾讯科技(深圳)有限公司 Method and system for logging in client and client
CN113079507A (en) * 2021-06-04 2021-07-06 广州讯鸿网络技术有限公司 Link security authentication system, method and device based on 5G message
CN113472741A (en) * 2021-05-25 2021-10-01 深圳壹账通智能科技有限公司 Verification code login method, device, equipment and storage medium
CN113596749A (en) * 2021-09-28 2021-11-02 广州讯鸿网络技术有限公司 Audio verification code authentication system, method and device based on 5G message

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8984605B2 (en) * 2011-08-23 2015-03-17 Zixcorp Systems, Inc. Multi-factor authentication
US9699161B2 (en) * 2014-04-29 2017-07-04 Twitter, Inc. Authentication mechanism
WO2019199282A1 (en) * 2018-04-10 2019-10-17 Visa International Service Association Deep link authentication
US20200014642A1 (en) * 2018-07-09 2020-01-09 Ov Loop, Inc. Enhanced Customer Interaction Platform for Enterprises

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105357242A (en) * 2014-08-22 2016-02-24 中国电信股份有限公司 Method and system for accessing wireless local area network, short message push platform and portal system
CN105577619A (en) * 2014-10-15 2016-05-11 腾讯科技(深圳)有限公司 Method and system for logging in client and client
CN113472741A (en) * 2021-05-25 2021-10-01 深圳壹账通智能科技有限公司 Verification code login method, device, equipment and storage medium
CN113079507A (en) * 2021-06-04 2021-07-06 广州讯鸿网络技术有限公司 Link security authentication system, method and device based on 5G message
CN113596749A (en) * 2021-09-28 2021-11-02 广州讯鸿网络技术有限公司 Audio verification code authentication system, method and device based on 5G message

Also Published As

Publication number Publication date
CN114039754A (en) 2022-02-11

Similar Documents

Publication Publication Date Title
CN105530175B (en) Message processing method, device and system
CN111160845B (en) Service processing method and device
CN103297325B (en) Method, device and equipment mutual with third-party application in instant communicating system
EP1958401B1 (en) Message modification apparatus and method
US9641575B2 (en) Method for sharing multimedia content between two users
US9565148B2 (en) Method and apparatus for processing micro web log messages
US12167302B2 (en) System and method for rich short messaging service
CN105897888B (en) Client connection method and system
CN114039754B (en) A security verification method and device
CN112866268B (en) Message processing method and system
WO2019100986A1 (en) Information sending method and apparatus
CN106911666B (en) Wearable intelligent device and message processing method and system thereof
CN105704001A (en) WeChat server message distribution method and WeChat server message distribution system
CN114095463B (en) Data processing methods, devices, equipment and media based on instant messaging
CN113722589B (en) Information generation method, device, server and storage medium
US8788638B2 (en) Method and arrangement for registering a user
CN107222559B (en) Information calling method
CN116051184A (en) Multimedia playback system, method, device and storage medium
CN116029398A (en) Registration service system, method, device and storage medium
EP3151519B1 (en) An intelligent system of unified content posting
CN114828000B (en) A login method, device and computer-readable storage medium
CN115835145B (en) Service management method, device and storage medium
CN112423249B (en) User short message sending method, device and system
CN103929442A (en) Resource sharing method and device
DK2555488T3 (en) A method for transmitting data to a functional application and a user terminal therefor

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant