CN113556696A - Method, device, system, equipment and storage medium for sending authentication short message - Google Patents

Method, device, system, equipment and storage medium for sending authentication short message Download PDF

Info

Publication number
CN113556696A
CN113556696A CN202110838310.0A CN202110838310A CN113556696A CN 113556696 A CN113556696 A CN 113556696A CN 202110838310 A CN202110838310 A CN 202110838310A CN 113556696 A CN113556696 A CN 113556696A
Authority
CN
China
Prior art keywords
application
short message
authentication
authenticated
authentication short
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110838310.0A
Other languages
Chinese (zh)
Inventor
修立春
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
TCL Communication Ningbo Ltd
Original Assignee
TCL Communication Ningbo 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 TCL Communication Ningbo Ltd filed Critical TCL Communication Ningbo Ltd
Priority to CN202110838310.0A priority Critical patent/CN113556696A/en
Publication of CN113556696A publication Critical patent/CN113556696A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • 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]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/06Authentication

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The application discloses a method, a device, a system, equipment and a storage medium for sending an authentication short message, wherein the method comprises the following steps: acquiring an authentication short message sent by a first service end, wherein the authentication short message is information sent by the first service end in response to an authentication request of an application to be authenticated of a first application end; packaging the authentication short message to obtain an authentication short message data packet; and directionally sending the authentication short message data packet to the application to be authenticated of the first application terminal according to the application characteristics of the application to be authenticated. According to the method and the device, the authentication short message data packet is directionally sent to the application to be authenticated of the first application terminal according to the application characteristics of the application to be authenticated, so that the purpose that the authentication short message for the operator application is directionally sent to the operator application is achieved, the situation that other types of short message applications on a user mobile phone receive the authentication short message is avoided, the authentication of the operator application can be ensured, and the safety of the operator data is improved.

Description

Method, device, system, equipment and storage medium for sending authentication short message
Technical Field
The present application relates to the field of communications technologies, and in particular, to a method, an apparatus, a system, a device, and a storage medium for sending an authentication short message.
Background
The survey shows that the mobile internet user access flow rate of 1656 hundred million GB all year round in 2020 is increased by 35.7% compared with the last year, and the internet surfing number is 9.89 hundred million people at the end of the year, wherein the mobile phone surfing number is 9.86 hundred million people. With the rapid development of the mobile internet, various internet manufacturers develop numerous mobile phone applications to meet the various needs of people for clothes, eating and housing. Besides providing a network communication channel, the network operator also develops operator applications for users to use, thereby increasing the user stickiness.
Before the mobile phone application developed by an internet manufacturer is used, the user identity can be verified in a short message verification code mode, and before the mobile phone application is used normally, the user identity needs to be verified, and authorization of user-related accessory services also needs to be authenticated, so that the mobile phone application cannot be realized in a simple short message verification code mode.
At present, the authentication of the operator application is realized by using an authentication short message carrying a long string of characters, the authentication short message is sent to the user mobile phone in a common short message form, so that all short message applications on the user mobile phone receive the authentication short message, the risk of leakage or malicious tampering of the operator data may exist, and the security cannot be guaranteed.
Disclosure of Invention
The application provides a method, a device, a system, equipment and a storage medium for sending an authentication short message, and aims to solve the problem that in the prior art, the authentication short message applied by an operator is sent to a user mobile phone in a common short message form, and the operator data carried by the authentication short message is possibly leaked or maliciously tampered, so that the safety is low.
In a first aspect, the present application provides an authentication short message sending method, including:
acquiring an authentication short message sent by a first service end, wherein the authentication short message is information sent by the first service end in response to an authentication request of an application to be authenticated of a first application end;
packaging the authentication short message to obtain an authentication short message data packet;
and directionally sending the authentication short message data packet to the application to be authenticated of the first application terminal according to the application characteristics of the application to be authenticated.
In a possible implementation manner of the present application, before obtaining the authentication short message sent by the first service end, the method includes:
analyzing the acquired interactive information to obtain a sending end identification code and an information characteristic code, wherein the sending end identification code is used for uniquely identifying a sending end for sending the interactive information, and the information characteristic code is used for representing the information type of the interactive information;
and judging whether the interactive information is the authentication short message sent by the first server side or not according to the identification code of the sending end and the information feature code.
In a possible implementation manner of the application, the authentication short message carries a first identification code and a first feature code, the first identification code is used for uniquely identifying the first service end, and the information type of the first feature code used for representing the authentication short message is information used for application authentication;
according to the identification code of the sending terminal and the information feature code, whether the interactive information is the authentication short message sent by the first server is judged, which comprises the following steps:
comparing the identification code of the sending terminal with the first identification code, and the information characteristic code with the first characteristic code;
if the condition that the identification code of the sending terminal is the same as the first identification code and the information characteristic code is the same as the first characteristic code is met, judging that the interactive information is an authentication short message sent by the first service terminal;
otherwise, judging that the interactive information is not the authentication short message sent by the first service terminal.
In one possible implementation manner of the present application, the packaging the authentication short message to obtain the authentication short message data packet includes:
and packaging the authentication short message according to an intention mechanism to obtain an authentication short message data packet.
In one possible implementation manner of the application, an authentication request of a first application end about an application to be authenticated carries a user identification code which uniquely identifies the first application end, an authentication short message sent by a first service end carries the user identification code, and application characteristics of the application to be authenticated comprise one or more of application authority, an application port and an application packet name;
according to the application characteristics of the application to be authenticated, the method for directionally sending the authentication short message data packet to the application to be authenticated of the first application end comprises the following steps:
and directionally sending the authentication short message data packet to the application to be authenticated of the first application terminal based on a broadcasting mechanism according to the user identification code and the application characteristics of the application to be authenticated.
In a possible implementation manner of the present application, after the authentication short message data packet is directionally sent to the application to be authenticated of the first application terminal according to the application characteristics of the application to be authenticated, the method includes:
and generating sending information of the authentication short message data packet, and deleting the authentication short message data packet according to the sending information.
In a second aspect, the present application further provides an authentication short message sending apparatus, including:
the acquisition module is used for acquiring an authentication short message sent by a first service end, wherein the authentication short message is information sent by the first service end in response to an authentication request of an application to be authenticated of a first application end;
the packaging module is used for packaging the authentication short message to obtain an authentication short message data packet;
and the directional sending module is used for directionally sending the authentication short message data packet to the application to be authenticated of the first application terminal according to the application characteristics of the application to be authenticated.
In one possible implementation manner of the present application, the authentication short message sending apparatus further includes:
the analysis module is used for analyzing the acquired interactive information to obtain a sending end identification code and an information characteristic code, wherein the sending end identification code is used for uniquely identifying a sending end for sending the interactive information, and the information characteristic code is used for representing the information type of the interactive information;
and the judging module is used for judging whether the interactive information is the authentication short message sent by the first server side according to the identification code of the sending end and the information feature code.
In a possible implementation manner of the present application, the authentication short message carries a first identification code and a first feature code, the first identification code is used for uniquely identifying the first service end, the first feature code is used for representing that the information type of the authentication short message is information used for application authentication, and the determining module is specifically configured to:
comparing the identification code of the sending terminal with the first identification code, and the information characteristic code with the first characteristic code;
if the condition that the identification code of the sending terminal is the same as the first identification code and the information characteristic code is the same as the first characteristic code is met, judging that the interactive information is an authentication short message sent by the first service terminal;
otherwise, judging that the interactive information is not the authentication short message sent by the first service terminal.
In one possible implementation manner of the present application, the packing module is specifically configured to:
and packaging the authentication short message according to an intention mechanism to obtain an authentication short message data packet.
In a possible implementation manner of the present application, an authentication request of a first application end regarding an application to be authenticated carries a user identifier that uniquely identifies the first application end, an authentication short message sent by a first service end carries the user identifier, application characteristics of the application to be authenticated include one or more of an application authority, an application port, and an application packet name, and the directional sending module is specifically configured to:
and directionally sending the authentication short message data packet to the application to be authenticated of the first application terminal based on a broadcasting mechanism according to the user identification code and the application characteristics of the application to be authenticated.
In one possible implementation manner of the present application, the authentication short message sending apparatus further includes:
the information generating module is used for generating the sending information of the authentication short message data packet;
and the deleting module is used for deleting the authentication short message data packet according to the sending information.
In a third aspect, the present application further provides an authentication short message sending system, where the authentication short message sending system includes a first server, a first application, and a server, which are in communication connection with each other;
the first application end is used for sending an authentication request of the application to be authenticated to the first service end;
the first service end is used for responding to the authentication request and sending an authentication short message to the server;
the server is used for acquiring an authentication short message sent by the first service terminal;
the server is used for packaging the authentication short message to obtain an authentication short message data packet;
and the server is used for directionally sending the authentication short message data packet to the application to be authenticated of the first application terminal according to the application characteristics of the application to be authenticated.
In a fourth aspect, the present application further provides an authentication short message sending device, which includes a processor, a memory, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the steps in the authentication short message sending method of the first aspect.
In a fifth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, where the computer program is executed by a processor to implement the steps in the method for sending the authentication short message of the first aspect.
From the above, the present application has the following advantageous effects:
1. in the application, the package processing is performed on the authentication short message sent by the first service end, and the authentication short message is an authentication request of the application to be authenticated of the first application end, so that the obtained authentication short message data packet is directionally sent to the application to be authenticated of the first application end according to the application characteristics of the application to be authenticated, the directional sending of the authentication short message to the operator application can be realized, the authentication and authentication of the operator application are performed, the problem that the operator data is leaked or maliciously tampered due to the fact that other types of short message applications on a mobile phone of a user receive the authentication short message is avoided, the authentication of the operator application can be ensured, the safety of the operator data is improved, meanwhile, the situation that the other types of short message applications are confused when receiving the authentication short message is avoided, and the user experience is improved.
2. According to the method and the device, whether the interactive information is the authentication short message sent by the first service end is judged according to the identification code of the sending end and the information feature code, the authentication short message and other types of short messages of the first service end can be accurately identified, the authentication short message of the first service end is further ensured to be directionally sent to the application to be authenticated of the first application end, and the reliability of directionally sending the authentication short message is improved.
Drawings
In order to more clearly illustrate the technical solutions in the present application, the drawings that are needed to be used in the description of the present application will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art that other drawings can be obtained based on these drawings without inventive effort.
Fig. 1 is a schematic view of a scenario of an authenticated short message transmission system provided in an embodiment of the present application;
fig. 2 is a schematic flowchart of an authentication short message sending method provided in an embodiment of the present application;
FIG. 3 is a schematic flow chart illustrating identification of an authentication SMS in an embodiment of the present application;
fig. 4 is a schematic structural diagram of an authentication short message sending apparatus provided in an embodiment of the present application;
fig. 5 is a schematic structural diagram of an authentication short message sending device provided in an embodiment of the present application.
Detailed Description
The technical solutions in the present application will be described clearly and completely with reference to the accompanying drawings in the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
In the description of the present application, it is to be understood that the terms "center", "longitudinal", "lateral", "length", "width", "thickness", "upper", "lower", "front", "rear", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer", and the like indicate orientations or positional relationships based on those shown in the drawings, and are used merely for convenience of description and for simplicity of description, and do not indicate or imply that the referenced device or element must have a particular orientation, be constructed in a particular orientation, and be operated, and thus should not be considered as limiting the present application. Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more features. In the description of the present application, "a plurality" means two or more unless specifically limited otherwise.
In this application, the word "exemplary" is used to mean "serving as an example, instance, or illustration. Any embodiment described herein as "exemplary" is not necessarily to be construed as preferred or advantageous over other embodiments. The following description is presented to enable any person skilled in the art to make and use the application. In the following description, details are set forth for the purpose of explanation. It will be apparent to one of ordinary skill in the art that the present application may be practiced without these specific details. In other instances, well-known structures and processes are not set forth in detail in order to avoid obscuring the description of the present application with unnecessary detail. Thus, the present application is not intended to be limited to the embodiments shown, but is to be accorded the widest scope consistent with the principles and features disclosed herein.
The present application provides an authentication short message transmission method, apparatus, system, device and storage medium, which will be described in detail below.
Referring to fig. 1, fig. 1 is a schematic view of a scenario of an authentication short message sending system according to an embodiment of the present application, where the authentication short message sending system may include a first server 300, a first application 100, and a server 200, which are communicatively connected to each other; the first application terminal 100 may be configured to send an authentication request of an application to be authenticated to the first service terminal 300; the first service end 300 may be configured to respond to the authentication request and send a corresponding authentication short message to the server 200; the server 200 may be configured to obtain an authentication short message sent by the first service end 300, package the authentication short message to obtain an authentication short message data packet, and directionally send the authentication short message data packet to the application to be authenticated of the first application end 100 according to the application characteristic of the application to be authenticated, so that the first application end 100 authenticates the application to be authenticated according to the authentication short message data packet.
In the present application, the first application 100 may be a mobile phone of a user, the first service 300 may be a network operator server, and the user may download and install a plurality of applications on the first application 100 to meet various requirements of the user for clothing, housing, etc., where the plurality of applications may include applications provided by the network operator.
When a user uses an application program of a network operator for the first time, the network operator needs to verify the identity of the user and authenticate the authorization of the accessory service related to the user, so that the network operator authenticates the operator application on the mobile phone of the user in a mode of authenticating short messages.
When a user clicks an application to be authenticated provided by a network operator on the first application terminal 100 for the first time, the first application terminal 100 initiates an authentication request to the first service terminal 300 corresponding to the application to be authenticated, and after the first service terminal 300, i.e. a network operator server, receives the authentication request, a corresponding authentication short message is sent to the server 200, so that the authentication short message is sent to the application to be authenticated of the first application terminal 100 through the server 200, authentication of the application to be authenticated is further performed, and after the authentication is successful, a user party can use the application to be authenticated provided by the network operator.
In this embodiment, the server 200 is mainly used to obtain an authentication short message sent by a first service end, where the authentication short message is information sent by the first service end in response to an authentication request of an application to be authenticated of a first application end; packaging the authentication short message to obtain an authentication short message data packet; according to the application characteristics of the application to be authenticated.
In this embodiment, the server 200 and the first server 300 may be independent servers, or may be a server network or a server cluster composed of servers, for example, the server 200 and the first server 300 described in this application may include, but are not limited to, a computer, a network host, a single network server, a plurality of network server sets, or a cloud server composed of a plurality of servers. Among them, the Cloud server is constituted by a large number of computers or web servers based on Cloud Computing (Cloud Computing).
In this embodiment, the first application terminal 100, the server 200, and the first server terminal 300 may implement network communication between each other through any communication manner, including but not limited to mobile communication based on the third Generation Partnership Project (3 GPP), Long Term Evolution (LTE), Worldwide Interoperability for Microwave Access (WiMAX), or computer network communication based on the TCP/IP Protocol Suite (TCP/IP), User Datagram Protocol (UDP), and the like.
In this embodiment, the first application 100 may be a general-purpose computer device or a special-purpose computer device. In a specific implementation, the user terminal 200 may be a palm computer, a Personal Digital Assistant (PDA), a mobile phone, a tablet computer, a wireless terminal device, or other terminal devices with a communication function, and the application does not limit the type of the first application 100.
Those skilled in the art can understand that the application environment shown in fig. 1 is only one application scenario adapted to the present application scheme, and does not constitute a limitation of the application scenario of the present application scheme, and that other application scenarios may further include more or less first application terminals 100 and first service terminals 300 than those shown in fig. 1, for example, only 1 first application terminal 100 and 1 first service terminal 300 are shown in fig. 1, and it can be understood that the authentication short message sending system may further include more other application terminals or service terminals communicatively connected to the server 200, and is not limited herein.
It should be noted that the scene schematic diagram of the authentication short message sending system shown in fig. 1 is only an example, the authentication short message sending system and the scene described in the present application are for more clearly illustrating the technical solution of the present application, and do not constitute a limitation to the technical solution provided in the present application, and as a person having ordinary skill in the art knows, along with the evolution of the authentication short message sending system and the occurrence of a new service scene, the technical solution provided in the present application is also applicable to similar technical problems.
Firstly, the present application provides an authentication short message sending method, which is applied to a server, an execution subject of the authentication short message sending method is an authentication short message sending apparatus, and the authentication short message sending method includes: acquiring an authentication short message sent by a first service end, wherein the authentication short message is information sent by the first service end in response to an authentication request of an application to be authenticated of a first application end; packaging the authentication short message to obtain an authentication short message data packet; and directionally sending the authentication short message data packet to the application to be authenticated of the first application terminal according to the application characteristics of the application to be authenticated.
Fig. 2 is a schematic flow chart of an authentication short message sending method provided in the embodiment of the present application. It should be noted that while a logical order is shown in the flow diagram, in some cases, the steps shown or described may be performed in an order different than presented herein. The authentication short message sending method is applied to a server and comprises the following steps:
s201, obtaining an authentication short message sent by a first service end, wherein the authentication short message is information sent by the first service end in response to an authentication request of an application to be authenticated of a first application end.
The first service end may be an operator server, the first application end may be user equipment such as a user mobile phone, and the first application end is installed with an application to be authenticated, which is provided by an operator.
It can be understood that the Short Message Service is a store and forward Service, that is, the Short Message is not directly sent from the sender to the recipient, but is always forwarded through a Short Message Service center, so in this embodiment of the present application, the server may be a Short Message Service center in an existing Short Message Service (SMS) system.
The short message service center can acquire information sent by any terminal or server end in communication connection with the short message service center, and as can be understood, the first server end can send an authentication short message related to an application to be authenticated to the short message service center, namely the server, and can also send other types of short messages, such as a login confirmation short message, a logout confirmation short message and the like to the server, so that the related short messages are forwarded to corresponding request ends, namely user equipment through the server.
In the embodiment of the application, the manner in which the server obtains the authentication short message may be passive obtaining, for example, the first service end sends a corresponding authentication short message to the server in response to an authentication request of the first application end regarding the application to be authenticated, so that the server forwards the authentication short message; the method for acquiring the authentication short message by the server may also be actively acquired, for example, the first service end generates a corresponding authentication short message in response to an authentication request of the first application end regarding an application to be authenticated, and stores the corresponding authentication short message in a certain fixed storage area, and the server may access the fixed storage area at regular time according to a preset interval time, so as to acquire the corresponding authentication short message and further forward the corresponding authentication short message.
It can be understood that the authentication short message is information for authenticating an operator application provided by a network operator, and is only for an application to be authenticated on the first application side, and the authentication short message is invalid for a default short message application or other types of short message applications on the first application side.
S202, packaging the authentication short message to obtain an authentication short message data packet.
In the embodiment of the application, the authentication short message sent by the first service terminal to the server may include short message content and other content used for representing the sending terminal, the receiving terminal and the timestamp, and it can be understood that the authentication short message may include many contents, and if the contents are forwarded one by one, not only the forwarding efficiency is low, but also the forwarding error is easily caused.
S203, according to the application characteristics of the application to be authenticated, the authentication short message data packet is directionally sent to the application to be authenticated of the first application end.
It can be understood that other types of application programs may be installed on the first application end in addition to the application to be authenticated, and the other types of application programs may include a default short message application and other types of short message applications.
Since the authentication short message is information for authenticating the operator application provided by the network operator, the authentication short message is only for the application to be authenticated on the first application end, the authentication short message is invalid for the default short message application or other types of short message applications on the first application end, if the authentication short message is sent to the first application end in the form of a common short message, all short message applications on the first application end can receive the authentication short message, and since the authentication short message carries the operator data for authentication, the operator data may be leaked or tampered after other types of short message applications receive the authentication short message.
Therefore, in the embodiment of the application, the server directionally sends the authentication short message data packet to the application to be authenticated of the first application end according to the application characteristics of the application to be authenticated, so that the problem that the data of an operator is leaked or maliciously tampered when other types of short message applications on the first application end receive the authentication short message can be avoided.
In the embodiment of the application, the package processing is carried out on the authentication short message sent by the first service end, and the authentication short message is an authentication request of the application to be authenticated of the first application end, so the obtained authentication short message data packet is directionally sent to the application to be authenticated of the first application end according to the application characteristics of the application to be authenticated, the purpose of directionally sending the authentication short message of the operator application to the operator application by using a basic short message channel can be realized, the authentication of the operator application is carried out, the problem that the operator data is leaked or maliciously tampered because other types of short message applications on a mobile phone of a user receive the authentication short message is avoided, the authentication of the operator application is ensured, the safety of the operator data is improved, the problem that other types of short message applications are confused when receiving the authentication short message and the authentication short message is invisible to the user is avoided, the user experience is improved.
As shown in fig. 3, which is a schematic flow chart of identifying an authentication short message in the embodiment of the present application, in some embodiments of the present application, before acquiring the authentication short message sent by the first service end, the method may further include:
s301, analyzing the acquired interactive information to obtain a sending end identification code and an information feature code, wherein the sending end identification code is used for uniquely identifying a sending end sending the interactive information, and the information feature code is used for representing the information type of the interactive information.
It can be understood that there may be a plurality of terminals or servers interacting with the server, where the interaction information may be information sent to the server by each terminal or server, and in order to enable the server to know which end is interacted with the server, the interaction information sent to the server by each terminal or server may carry an identification code capable of identifying its own identity, that is, a sender identification code, and the server may determine a sender sending the interaction information through the sender identification code.
In general, in the same interactive system, each terminal or server and its sender id should be in one-to-one correspondence, that is, one sender id only corresponds to one terminal or server, and one terminal or server only corresponds to one sender id.
It can be understood that the interaction information sent by the terminal or the server to the server may be authentication information for application authentication, or logout confirmation information for logging out an application, payment information for payment confirmation, and the like.
In the embodiment of the application, in order to identify the information type of the interactive information, the server may agree with each terminal or server in the interactive system with an information feature code capable of representing each information type, so that the interactive information sent by each terminal or server may carry the information feature code capable of representing the information type of the interactive information, and the server may extract the information feature code therein by analyzing the interactive information, so as to determine the information type of the interactive information.
S302, judging whether the interactive information is an authentication short message sent by the first server side according to the identification code of the sending end and the information feature code.
In some embodiments of the present application, the authentication short message may carry a first identification code and a first feature code, where the first identification code may be used to uniquely identify the first server, and the first feature code may be used to represent that the information type of the authentication short message is information used for application authentication, and then, according to the identification code of the sending end and the information feature code, determine whether the interaction information is the authentication short message sent by the first server, and may further include:
comparing the identification code of the sending terminal with the first identification code, and the information characteristic code with the first characteristic code;
if the condition that the identification code of the sending terminal is the same as the first identification code and the information characteristic code is the same as the first characteristic code is met, judging that the interactive information is an authentication short message sent by the first service terminal; otherwise, judging that the interactive information is not the authentication short message sent by the first service terminal.
It can be understood that the server may have a first feature code for characterizing the authentication short message agreed in advance with the first service end, and the server may compare the sending-end identification code extracted from the interaction information with the first identification code uniquely identifying the first service end, and simultaneously compare the information feature code extracted from the interaction information with the first feature code for characterizing the type of the authentication short message as the application authentication.
When the identification code of the sending end is the same as the first identification code and the information feature code is the same as the first feature code, the interactive information can be determined to be the authentication short message sent by the first service end; if the identification code of the sending terminal is the same as the first identification code, but the information feature code is different from the first feature code, the interactive information can be determined to be the non-authentication short message sent by the first service terminal; if the identification code of the sending terminal is different from the first identification code, but the information feature code is the same as the first feature code, the interactive information can be determined to be an authentication short message sent by other terminals or the service terminal; if the identification code of the sending terminal is different from the first identification code, and the information feature code is different from the first feature code, it can be determined that the interactive information is a non-authentication short message sent by other terminals or the service terminal.
For example, the first identification code of the first service end is ID1101, and the first feature code representing the authentication short message is "// sys: "if the sender ID (e.g.," IDxx ") extracted from the interactive message is the same as the first ID1101, and the information feature code (e.g.," xxxx ") extracted from the interactive message is the same as the first feature code"// sys: if the two pieces of information are the same, it may be determined that the interaction information is the authentication short message sent by the first service end.
It should be noted that the first identification code and the first feature code are only an example of the present application, and in the present application, the first identification code, the first feature code, the identification code of the transmitting end, and the information feature code may be identification codes formed by one or more characters of upper and lower case letters, numbers, punctuation marks, special symbols, and the like, and may be selected according to an actual application scenario, which is not limited herein.
In some embodiments of the present application, the packaging the authentication short message to obtain the authentication short message data packet may further include: and packaging the authentication short message according to an intention mechanism to obtain an authentication short message data packet.
In an Android application environment, an intention mechanism can solve communication among various components of an application, is equivalent to the function of a media intermediary, specially provides related information for mutual calling of the components, and realizes decoupling between a caller and a callee.
In the embodiment of the application, the application characteristic of the application to be authenticated is set as an application package name (such as "com.
In some embodiments of the present application, an authentication request of the first application terminal for the application to be authenticated may carry a user identifier that uniquely identifies the first application terminal, an authentication short message sent by the first service terminal may carry the user identifier, and application characteristics of the application to be authenticated may include one or more of an application authority, an application port, and an application package name.
According to the application characteristics of the application to be authenticated, the method for sending the authentication short message data packet to the application to be authenticated of the first application terminal in a targeted manner may further include: and directionally sending the authentication short message data packet to the application to be authenticated of the first application terminal based on a Broadcast mechanism according to the user identification code and the application characteristics of the application to be authenticated.
In the embodiment of the application, in order to be able to directionally send the authentication short message data packet to the application to be authenticated of the first application end, the authentication short message sent by the first service end may carry a user identification code uniquely identifying the first application end, and the server may agree with the first service end about application characteristics of the application to be authenticated, and then the server may directionally send the authentication short message data packet to the application to be authenticated of the first application end based on the application characteristics.
In the Android application environment, a Broadcast mechanism is a mechanism for propagating data among components, and the components can be located in different processes and play a role in inter-process communication.
Specifically, in this embodiment, the application characteristics of the application to be authenticated may be one or more of application permissions, application ports, and application package names, and the number of the application permissions, the application ports, or the application package names may be one or more.
For example, in this embodiment, assuming that the application feature is an application package name, and the application package names are two (e.g., "com. great. level" and "com. bestbuy. core"), first, the server may find the first application end according to the User identifier (e.g., "User 01") of the first application end, then package all the contents of the authentication short message according to the intention mechanism, and direct Broadcast based on the Broadcast mechanism, which may specifically be:
intent.setPackage("com.greatcall.lively");mContext.sendBroadcast(intent);
intent.setPackage("com.bestbuy.core");mContext.sendBroadcast(intent)。
by the method, the server can directionally send the authentication short message data packet to the application to be authenticated of the first application terminal.
In addition, in some embodiments of the present application, after the authentication short message data packet is directionally sent to the application to be authenticated of the first application end according to the application characteristics of the application to be authenticated, the method may further include: and generating sending information of the authentication short message data packet, and deleting the authentication short message data packet according to the sending information.
In order to avoid that the first application end fails to receive the authentication short message data packet due to power failure, insufficient memory and the like, so that the authentication short message data packet is cached in the server, and the server sends the authentication short message data packet for the second time.
In order to better implement the method for sending the authentication short message in the present application, the present application further provides an authentication short message sending apparatus, as shown in fig. 4, which is a schematic structural diagram of the authentication short message sending apparatus provided in the embodiment of the present application, where the authentication short message sending apparatus of the present application is applied to a server, and the authentication short message sending apparatus 400 includes:
an obtaining module 401, configured to obtain an authentication short message sent by a first service end, where the authentication short message is information sent by the first service end in response to an authentication request of an application to be authenticated of a first application end;
a packing module 402, configured to pack the authentication short message to obtain an authentication short message data packet;
the directional sending module 403 is configured to directionally send the authentication short message packet to the application to be authenticated at the first application end according to the application characteristics of the application to be authenticated.
In the embodiment of the present application, the packaging module 402 performs packaging processing on the authentication short message sent by the first service end, since the authentication short message is an authentication request in response to the application to be authenticated of the first application terminal, the directional sending module 403 directionally sends the obtained authentication short message data packet to the application to be authenticated of the first application terminal according to the application characteristics of the application to be authenticated, the method can realize the directional sending of the authentication short message aiming at the operator application to the operator application so as to carry out authentication and authentication on the operator application, avoid the problem that other short message applications on a user mobile phone receive the authentication short message to cause the leakage or malicious tampering of the operator data, ensure the authentication of the operator application, improve the safety of the operator data, meanwhile, the problem that other short message applications receive the authentication short message to cause the user to be confused is avoided, and the user experience is improved.
In some embodiments of the present application, the authentication short message sending apparatus 400 may further include:
the analyzing module 404 is configured to analyze the acquired interactive information to obtain a sender identification code and an information feature code, where the sender identification code is used to uniquely identify a sender sending the interactive information, and the information feature code is used to characterize an information type of the interactive information;
the determining module 405 is configured to determine whether the interactive information is an authentication short message sent by the first server according to the identification code of the sending end and the information feature code.
In some embodiments of the present application, the authentication short message carries a first identification code and a first feature code, the first identification code is used to uniquely identify the first service end, the first feature code is used to represent that the information type of the authentication short message is information used for application authentication, and the determining module 405 may be specifically configured to:
comparing the identification code of the sending terminal with the first identification code, and the information characteristic code with the first characteristic code;
if the condition that the identification code of the sending terminal is the same as the first identification code and the information characteristic code is the same as the first characteristic code is met, judging that the interactive information is an authentication short message sent by the first service terminal;
otherwise, judging that the interactive information is not the authentication short message sent by the first service terminal.
In some embodiments of the present application, the packing module 402 may be specifically configured to:
and packaging the authentication short message according to an intention mechanism to obtain an authentication short message data packet.
In some embodiments of the present application, an authentication request of a first application end for an application to be authenticated carries a user identifier that uniquely identifies the first application end, an authentication short message sent by a first service end carries the user identifier, application characteristics of the application to be authenticated include one or more of an application authority, an application port, and an application package name, and the directional sending module 403 may be specifically configured to:
and directionally sending the authentication short message data packet to the application to be authenticated of the first application terminal based on a Broadcast mechanism according to the user identification code and the application characteristics of the application to be authenticated.
In some embodiments of the present application, the authentication short message sending apparatus 400 may further include:
an information generating module 406, configured to generate sending information of the authentication short message data packet;
and the deleting module 407 is configured to delete the authentication short message data packet according to the sending information.
It should be noted that, in the present application, the relevant contents of the obtaining module 401, the packing module 402, the directional sending module 403, the parsing module 404, the judging module 405, the information generating module 406, and the deleting module 407 correspond to the above one to one, and persons skilled in the art can clearly understand that, for convenience and simplicity of description, the specific working process of the authentication short message sending apparatus and the corresponding modules described above may refer to the description of the authentication short message sending method in any embodiment corresponding to fig. 2 to fig. 3, and details are not repeated herein.
In order to better implement the authentication short message sending method of the present application, on the basis of the authentication short message sending method, the present application further provides an authentication short message sending device, the authentication short message sending device integrates any one of the authentication short message sending apparatuses provided by the present application, the authentication short message sending device includes a processor 501, a memory 502, and a computer program stored in the memory 502 and operable on the processor 501, and the processor 501 executes the computer program to implement the steps in the authentication short message sending method of any one of the above embodiments.
As shown in fig. 5, a schematic structural diagram of an authentication short message sending device according to an embodiment of the present application is shown, specifically:
the apparatus may include components such as a processor 501 of one or more processing cores, memory 502 of one or more computer-readable storage media, a power supply 503, and an input unit 504. Those skilled in the art will appreciate that the configuration of the apparatus shown in fig. 5 is not intended to be limiting of the apparatus and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components. Wherein:
the processor 501 is a control center of the apparatus, connects various parts of the entire apparatus using various interfaces and lines, and performs various functions of the apparatus and processes data by running or executing software programs and/or modules stored in the memory 502 and calling data stored in the memory 502, thereby monitoring the entire apparatus. Optionally, processor 501 may include one or more processing cores; the Processor 501 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component, etc. The general purpose processor may be a microprocessor or the processor may be any conventional processor or the like, and preferably the processor 501 may integrate an application processor, which handles primarily the operating system, user interfaces, application programs, etc., and a modem processor, which handles primarily wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 501.
The memory 502 may be used to store software programs and modules, and the processor 501 executes various functional applications and data processing by operating the software programs and modules stored in the memory 502. The memory 502 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required for at least one function, and the like; the storage data area may store data created according to use of the device, and the like. Further, the memory 502 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory 502 may also include a memory controller to provide the processor 501 with access to the memory 502.
The device further comprises a power supply 503 for supplying power to the various components, and preferably, the power supply 503 may be logically connected to the processor 501 through a power management system, so that functions of managing charging, discharging, power consumption, and the like are realized through the power management system. The power supply 503 may also include any component of one or more dc or ac power sources, recharging systems, power failure detection circuitry, power converters or inverters, power status indicators, and the like.
The device may further comprise an input unit 504 and an output unit 505, the input unit 504 being operable to receive entered numeric or character information and to generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control.
Although not shown, the apparatus may further include a display unit and the like, which will not be described in detail herein. Specifically, in the present application, the processor 501 in the device loads the executable file corresponding to the process of one or more application programs into the memory 502 according to the following instructions, and the processor 501 runs the application programs stored in the memory 502, thereby implementing various functions as follows:
acquiring an authentication short message sent by a first service end, wherein the authentication short message is information sent by the first service end in response to an authentication request of an application to be authenticated of a first application end;
packaging the authentication short message to obtain an authentication short message data packet;
and directionally sending the authentication short message data packet to the application to be authenticated of the first application terminal according to the application characteristics of the application to be authenticated.
It will be understood by those skilled in the art that all or part of the steps of the above methods may be performed by instructions or by instructions controlling associated hardware, and the instructions may be stored in a computer readable storage medium and loaded and executed by a processor.
To this end, the present application provides a computer-readable storage medium, which may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like. The computer readable storage medium has stored thereon a computer program for execution by a processor to perform the steps of any of the methods for authenticating a short message transmission provided herein. For example, the computer program is executed by a processor to implement the steps of:
acquiring an authentication short message sent by a first service end, wherein the authentication short message is information sent by the first service end in response to an authentication request of an application to be authenticated of a first application end;
packaging the authentication short message to obtain an authentication short message data packet;
and directionally sending the authentication short message data packet to the application to be authenticated of the first application terminal according to the application characteristics of the application to be authenticated.
Since the instructions stored in the computer-readable storage medium can execute the steps in the authentication short message sending method in any embodiment corresponding to fig. 2 to fig. 3 in the present application, the beneficial effects that can be achieved by the authentication short message sending method in any embodiment corresponding to fig. 2 to fig. 3 in the present application can be achieved, for details, see the foregoing description, and are not repeated herein.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and parts that are not described in detail in a certain embodiment may refer to the above detailed descriptions of other embodiments, and are not described herein again.
In a specific implementation, each unit or structure may be implemented as an independent entity, or may be combined arbitrarily to be implemented as one or several entities, and the specific implementation of each unit or structure may refer to the foregoing embodiments, which are not described herein again.
The method, the apparatus, the system, the device and the storage medium for sending the authentication short message provided by the present application are introduced in detail, and a specific example is applied in the present application to illustrate the principle and the implementation of the present application, and the above description is only used to help understanding the method and the core idea of the present application; meanwhile, for those skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (10)

1. An authenticated short message sending method, comprising:
acquiring an authentication short message sent by a first service end, wherein the authentication short message is information sent by the first service end in response to an authentication request of an application to be authenticated of a first application end;
packaging the authentication short message to obtain an authentication short message data packet;
and directionally sending the authentication short message data packet to the application to be authenticated of the first application end according to the application characteristics of the application to be authenticated.
2. The method according to claim 1, wherein before the obtaining of the authentication short message sent by the first service end, the method comprises:
analyzing the acquired interactive information to obtain a sending end identification code and an information feature code, wherein the sending end identification code is used for uniquely identifying a sending end for sending the interactive information, and the information feature code is used for representing the information type of the interactive information;
and judging whether the interactive information is the authentication short message sent by the first server side or not according to the identification code of the sending end and the information feature code.
3. The method according to claim 2, wherein the authentication short message carries a first identification code and a first feature code, the first identification code is used for uniquely identifying the first service end, and the first feature code is used for representing that the information type of the authentication short message is information used for application authentication;
the judging whether the interactive information is the authentication short message sent by the first server side according to the identification code of the sending end and the information feature code comprises the following steps:
comparing the identification code of the sending end with the first identification code, and the information feature code with the first feature code;
if the identification code of the sending end is the same as the first identification code and the information feature code is the same as the first feature code, judging that the interactive information is an authentication short message sent by the first service end;
otherwise, judging that the interactive information is not the authentication short message sent by the first service terminal.
4. The method of claim 1, wherein the packaging the authentication short message to obtain an authentication short message data packet comprises:
and packaging the authentication short message according to an intention mechanism to obtain an authentication short message data packet.
5. The method according to claim 1, wherein an authentication request of the first application terminal for the application to be authenticated carries a user identification code uniquely identifying the first application terminal, the authentication short message sent by the first service terminal carries the user identification code, and the application characteristics of the application to be authenticated comprise one or more of application authority, application port and application packet name;
the directionally sending the authentication short message data packet to the application to be authenticated of the first application end according to the application characteristics of the application to be authenticated comprises the following steps:
and directionally sending the authentication short message data packet to the application to be authenticated of the first application terminal based on a broadcasting mechanism according to the user identification code and the application characteristics of the application to be authenticated.
6. The method according to any one of claims 1 to 5, wherein after the authentication short message packet is directed to the application to be authenticated of the first application side according to the application characteristics of the application to be authenticated, the method comprises:
and generating sending information of the authentication short message data packet, and deleting the authentication short message data packet according to the sending information.
7. An authentication short message transmission device, comprising:
the system comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring an authentication short message sent by a first service end, and the authentication short message is information sent by the first service end in response to an authentication request of an application to be authenticated of a first application end;
the packaging module is used for packaging the authentication short message to obtain an authentication short message data packet;
and the directional sending module is used for directionally sending the authentication short message data packet to the application to be authenticated of the first application end according to the application characteristics of the application to be authenticated.
8. An authentication short message sending system is characterized by comprising a first server, a first application end and a server which are in communication connection with each other;
the first application end is used for sending an authentication request of an application to be authenticated to the first service end;
the first service end is used for responding to the authentication request and sending an authentication short message to the server;
the server is used for acquiring the authentication short message sent by the first service end;
the server is used for packaging the authentication short message to obtain an authentication short message data packet;
and the server is used for directionally sending the authentication short message data packet to the application to be authenticated of the first application end according to the application characteristics of the application to be authenticated.
9. An authenticated short message transmission device comprising a processor, a memory, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the steps in the authenticated short message transmission method according to any one of claims 1 to 6.
10. A computer-readable storage medium, having stored thereon a computer program for execution by a processor to perform the steps of the method of sending an authenticated short message according to any one of claims 1 to 6.
CN202110838310.0A 2021-07-23 2021-07-23 Method, device, system, equipment and storage medium for sending authentication short message Pending CN113556696A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110838310.0A CN113556696A (en) 2021-07-23 2021-07-23 Method, device, system, equipment and storage medium for sending authentication short message

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110838310.0A CN113556696A (en) 2021-07-23 2021-07-23 Method, device, system, equipment and storage medium for sending authentication short message

Publications (1)

Publication Number Publication Date
CN113556696A true CN113556696A (en) 2021-10-26

Family

ID=78104294

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110838310.0A Pending CN113556696A (en) 2021-07-23 2021-07-23 Method, device, system, equipment and storage medium for sending authentication short message

Country Status (1)

Country Link
CN (1) CN113556696A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105553663A (en) * 2015-12-09 2016-05-04 小米科技有限责任公司 Verification code input method and device
WO2016154783A1 (en) * 2015-03-27 2016-10-06 华为技术有限公司 Control method and terminal for short message reading
WO2017035758A1 (en) * 2015-08-31 2017-03-09 华为技术有限公司 Sms processing method, apparatus and terminal
CN107182043A (en) * 2017-06-27 2017-09-19 努比亚技术有限公司 The labeling method and mobile terminal of identifying code short message
US20180262284A1 (en) * 2017-03-10 2018-09-13 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Method, apparatus and terminal device for sending broadcast

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016154783A1 (en) * 2015-03-27 2016-10-06 华为技术有限公司 Control method and terminal for short message reading
WO2017035758A1 (en) * 2015-08-31 2017-03-09 华为技术有限公司 Sms processing method, apparatus and terminal
CN107533603A (en) * 2015-08-31 2018-01-02 华为技术有限公司 SMS processing method, device and terminal
CN105553663A (en) * 2015-12-09 2016-05-04 小米科技有限责任公司 Verification code input method and device
US20180262284A1 (en) * 2017-03-10 2018-09-13 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Method, apparatus and terminal device for sending broadcast
CN107182043A (en) * 2017-06-27 2017-09-19 努比亚技术有限公司 The labeling method and mobile terminal of identifying code short message

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
MINGLI198611: "android 限制广播消息的接收者", 《HTTPS://BLOG.CSDN.NET/MINGLI198611/ARTICLE/DETAILS/17762149》 *

Similar Documents

Publication Publication Date Title
CN108901022B (en) Micro-service unified authentication method and gateway
US20190236300A1 (en) Service processing method and apparatus, data sharing system, and storage medium
US10893051B2 (en) Resource-driven dynamic authorization framework
KR101270323B1 (en) Methods, apparatuses, and computer program products for providing a single service sign-on
CN109905312B (en) Message pushing method, device and system
CN112491776B (en) Security authentication method and related equipment
CN108234439B (en) Attack protection for network real-time communication providers
CN107862091B (en) Control method and device for realizing webpage access
US20170303065A1 (en) Method and device for creating subscription resource
CN110958119A (en) Identity verification method and device
CN110113351A (en) The means of defence and device, storage medium, computer equipment of CC attack
CN112448956A (en) Authority processing method and device of short message verification code and computer equipment
CN113259429B (en) Session maintenance management and control method, device, computer equipment and medium
CN114338682A (en) Flow identity mark transmission method and device, electronic equipment and storage medium
CN112087475B (en) Message pushing method and device for cloud platform component application and message server
WO2019112923A1 (en) Improving security via automated sideband communication for m2m/iot
CN113556696A (en) Method, device, system, equipment and storage medium for sending authentication short message
CN113225348B (en) Request anti-replay verification method and device
CN115664686A (en) Login method, login device, computer equipment and storage medium
CN108200046B (en) Registration method and device of terminal equipment, terminal equipment and proxy server
CN112219416A (en) Techniques for authenticating data transmitted over a cellular network
KR102534012B1 (en) System and method for authenticating security level of content provider
CN111193694A (en) Application authorization management method, terminal and medium based on dual-system operating environment
CN109684818A (en) A kind of server log method for the cross-terminal formula for preventing owner's login password from revealing
CN112688943B (en) Dynamic password generation method, server, terminal device and storage medium

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20211026