CN107294832B - Method and device for adding friends - Google Patents

Method and device for adding friends Download PDF

Info

Publication number
CN107294832B
CN107294832B CN201610192499.XA CN201610192499A CN107294832B CN 107294832 B CN107294832 B CN 107294832B CN 201610192499 A CN201610192499 A CN 201610192499A CN 107294832 B CN107294832 B CN 107294832B
Authority
CN
China
Prior art keywords
user
friend
password
server
information
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
CN201610192499.XA
Other languages
Chinese (zh)
Other versions
CN107294832A (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.)
Advanced New Technologies Co Ltd
Advantageous New Technologies Co Ltd
Original Assignee
Advanced New Technologies 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 Advanced New Technologies Co Ltd filed Critical Advanced New Technologies Co Ltd
Priority to CN201610192499.XA priority Critical patent/CN107294832B/en
Priority to CN202110126707.7A priority patent/CN112769684B/en
Publication of CN107294832A publication Critical patent/CN107294832A/en
Application granted granted Critical
Publication of CN107294832B publication Critical patent/CN107294832B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/52User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail for supporting social networking services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/04Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
    • H04L63/0407Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the identity of one or more communicating identities is hidden
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/08Key distribution or management, e.g. generation, sharing or updating, of cryptographic keys or passwords
    • H04L9/0861Generation of secret information including derivation or calculation of cryptographic keys or passwords
    • H04L9/0866Generation of secret information including derivation or calculation of cryptographic keys or passwords involving user or device identifiers, e.g. serial number, physical or biometrical information, DNA, hand-signature or measurable physical characteristics
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/32Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
    • H04L9/3226Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials using a predetermined code, e.g. password, passphrase or PIN

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computing Systems (AREA)
  • Computer Hardware Design (AREA)
  • General Engineering & Computer Science (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The application discloses a method and a device for adding friends, which are used for solving the problem that information security risks exist in a friend adding mode in the prior art. The method comprises the following steps: a server receives a friend password generation request of a first user; determining identification information of the first user according to the friend password generation request of the first user, and generating a friend password of the first user according to the identification information of the first user; returning the friend password of the first user to the first user so that the first user can share the friend password with a second user conveniently; and when a friend adding request carrying the friend password of the first user is received, adding the first user as a friend of the second user according to the friend password and the identification information of the second user, wherein the friend adding request is a request of the second user.

Description

Method and device for adding friends
Technical Field
The present application relates to the field of network technologies, and in particular, to a method and an apparatus for adding a friend.
Background
With the rapid development of computer technology and internet technology, various applications on the internet bring great convenience to the life of people. In order to facilitate the mutual contact and communication among users, many applications have friend functions at present, and a certain user can add another user as a friend in the application based on the friend functions of the application. Generally, an instant messaging application, an electronic commerce application, a Social Networking service (Social Networking Services) application, and the like have a friend function.
In the prior art, one way to add friends is to: the first user publishes the identification ID (such as a user account) of the first user in the application, when the second user sees the ID of the first user, the ID of the first user can be input on a page provided by the client for adding friends after logging in on the client of the application, and then the page is submitted to the server of the application, and the server adds the first user as the friends of the second user.
However, in the method for adding friends, the first user needs to publish the ID of the first user, which is equivalent to directly revealing part of personal information of the first user, and is easily disturbed by other irrelevant users, so that information security risk exists.
Disclosure of Invention
The embodiment of the application provides more than one method and device for adding friends, and aims to solve the problem that information security risks exist in a friend adding mode in the prior art.
The method for adding the friend provided by the embodiment of the application comprises the following steps:
a server receives a friend password generation request of a first user;
the server side determines identification information of the first user according to a friend password generation request of the first user, and generates a friend password of the first user according to the identification information of the first user;
the server returns the friend password of the first user to the first user so that the first user can share the friend password with a second user conveniently;
and when receiving a friend adding request carrying the friend password of the first user, the server adds the first user as a friend of the second user according to the friend password and the identification information of the second user, wherein the friend adding request is a request of the second user.
The device for adding friends provided by the embodiment of the application is located on a server side and comprises:
the request receiving module is used for receiving a friend password generation request of a first user;
the password generation module is used for generating a friend password of the first user according to the identification information of the first user;
the password returning module is used for returning the friend password of the first user to the first user so that the first user can share the friend password to a second user conveniently;
and the friend adding module is used for adding the first user as a friend of the second user according to the friend password and the identification information of the second user when receiving a friend adding request carrying the friend password of the first user, wherein the friend adding request is a request of the second user.
The method for adding the friend provided by the embodiment of the application comprises the following steps:
sending a friend password generation request of a first user to a server;
and receiving a friend password of the first user generated and returned by the server according to the identification information of the first user, so that the first user shares the friend password with a second user, the second user sends a friend adding request carrying the friend password to the server, and the server adds the first user as a friend of the second user.
The device for adding friends provided by the embodiment of the application is located on a client of a first user, and comprises:
the password request module is used for sending a friend password generation request of the first user to a server;
and the password receiving module is used for receiving the friend password of the first user generated and returned by the server according to the identification (identification information) of the first user, so that the first user can share the friend password with a second user, the second user can send a friend adding request carrying the friend password to the server, and the server adds the first user as a friend of the second user.
The method for adding the friend provided by the embodiment of the application comprises the following steps:
acquiring a friend password of a first user, wherein the friend password is generated by a server side in response to a friend password generation request of the first user according to identification information of the first user;
and sending a friend adding request carrying the friend password of the first user to the server, so that the server adds the first user as a friend of the second user according to the friend password and the identification information of the second user, wherein the friend adding request is a request of the second user.
The device for adding friends provided by the embodiment of the application is located on a client of a second user, and comprises:
the password acquisition module is used for acquiring a friend password of a first user, and the friend password is generated by a server side in response to a friend password generation request of the first user and according to identification information of the first user;
and the password sending module is used for sending a friend adding request carrying the friend password of the first user to the server, so that the server adds the first user as a friend of the second user according to the friend password and the identification information of the second user, and the friend adding request is a request of the second user.
According to the embodiment of the application, through the at least one technical scheme, in the process of adding the friends, the user does not need to directly publish the own identification, namely personal information of the user can not be directly disclosed, and the information security risk is reduced. The solution of the present application thus solves the problems of the prior art, partially or totally. Moreover, the length of the friend password is controllable, when the friend password is a short password, the friend password can be conveniently shared by users in a spoken form, and other users can conveniently remember the friend password, so that the friend password is convenient to use.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application.
In the drawings:
fig. 1 is a process of a method for adding a friend, which is described from a server side perspective according to an embodiment of the present application;
fig. 2 is a process of a method for adding a friend, which is described from the perspective of a client of a first user according to an embodiment of the present application;
fig. 3 is a process of a method for adding a friend, which is described from the perspective of a client of a second user according to an embodiment of the present application;
fig. 4 is an interaction diagram of three ends, namely, a server, a client of a first user, a client of a second user, and a third-party platform when a part of the scheme of the present application is executed in an actual application scenario provided in the embodiment of the present application;
FIG. 5 is a diagram of a system architecture that may be used to implement aspects of the present application, provided by an embodiment of the present application;
fig. 6 is a schematic structural diagram of a device for adding a friend, which corresponds to fig. 1 according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of a device for adding a buddy, which corresponds to fig. 2 according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of a device for adding a buddy, which corresponds to fig. 3 according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the technical solutions of the present application will be described in detail and completely with reference to the following specific embodiments of the present application and the accompanying drawings. It should be apparent that the described embodiments are only some 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 prior art, in addition to the manner of adding a friend mentioned in the background art, there is a manner of adding a friend based on a two-dimensional code, and specifically, after a first user logs in on an application client, a two-dimensional code may be generated according to personal information of the first user, and then a second user adds the first user as a friend by scanning the two-dimensional code. However, the method of adding friends based on the two-dimensional code also has a problem, and the first user and the second user need to use equipment supporting the two-dimensional code function, and generally involve switching between applications, which is poor in convenience.
The solution of the present application may solve the above problems and problems of the background art partially or completely. The following describes the scheme of the present application.
Generally, a user participating in a process of adding a friend has two users, or more than two users, and the scheme of the application is applicable to both of the two application scenarios. Since the process of adding friends among multiple users can also be decomposed into a process of adding friends among multiple users, for convenience of description, the scheme of the present application is mainly explained below based on an application scenario that "a user participating in a process of adding friends has two users".
In the embodiment of the present application, for the two users, one of the two users who adds the friend by itself is referred to as a "first user", and correspondingly, one of the two users who adds the friend by itself is referred to as a "second user". In this case, the process of adding buddies may involve three terminals, namely: the system comprises a server, a client of a first user and a client of a second user. The following describes the embodiments of the present application from the perspective of each of the three ends.
Fig. 1 is a process of a method for adding a friend according to an embodiment of the present application, where the process in fig. 1 is described from the perspective of a server, and an execution subject is the server. The server may be any server of an application having a friend function, the first user and the second user are users of the application, and the server is generally mounted on a server, where the server includes but is not limited to: personal computers, large and medium sized computers, computer clusters, etc. as servers. Applications with buddy functionality include, but are not limited to: an instant messaging type application, an e-commerce type application (such as an e-wallet application, a shopping application, etc.), an SNS type application, and the like.
The process in fig. 1 may specifically include the following steps:
s101: the server receives a friend password generation request of a first user.
In the embodiment of the application, the client of the first user and the client of the second user are both clients of the server, and the first user can send a friend password generation request of the first user to the server through the client of the first user.
In the embodiment of the application, the friend password may be a character string, and the characters included in the character string may specifically be numeric characters, english characters, chinese characters, and the like.
S102: the server side determines the identification information of the first user according to the friend password generation request of the first user, and generates the friend password of the first user according to the identification information of the first user.
In the embodiment of the present application, the identification information of the first user may be one or a combination of a plurality of information for uniquely identifying the first user (i.e., distinguishing the first user from other users). For example, the identification information of the first user may be an identification ID of the first user, a mailbox address of the first user, a user name specified by the first user, or the like, or may also be information such as a user number assigned to the first user by the server. The identification information of the first user may also be a combination of a plurality of kinds of these enumerated information. For convenience of description, the following embodiments mainly take the example that the identification information of the first user is the ID of the first user as an example.
The friend password generation request may carry related information of the first user, such as identification information of the first user. The server side responds to a received friend password generation request of a first user, generates a friend password of the first user according to identification information of the first user carried by the friend password generation request, and the friend password can uniquely correspond to the identification information of the first user in a valid period (if the valid period is set) of the friend password.
Certainly, the friend password generation request may not carry identification information of the first user, and in this case, the server may determine the identification information of the first user according to a communication condition (for example, detailed information of an established communication connection, and the like) between the server and the client of the first user, and then generate the friend password of the first user according to the identification information of the first user.
The process of generating the friend password by the server may specifically be a process of converting specific information by the server by using a predetermined information conversion algorithm to generate a character string as the friend password. The specific information may generally include identification information of the first user, in addition, other personal information (such as a cell phone number, etc.) of the first user, environment information (such as a request time corresponding to a friend password generation request, etc.), and the like. The information conversion algorithm is not limited in the present application, and the information conversion algorithm may be, for example, an algorithm for calculating a hash (hash) value, a server-side customized character mapping algorithm, various existing encryption algorithms, and the like.
In the case that the friend password is generated according to the identification information of the first user, it may be considered that the friend password implicitly includes the identification information of the first user, or implicitly includes information that can be used to determine the identification information of the first user. However, generally, only the server that generates the friend password may determine the identification information of the first user according to the friend password, but for the user, it is difficult for any user to determine the identification information of the first user according to the friend password.
S103: and the server returns the friend password of the first user to the first user so that the first user can share the friend password with a second user conveniently.
In the embodiment of the application, the server returns the generated friend password to the first user. For example, returning to the client of the first user, the client of the first user may display the friend password, and after seeing the friend password, the first user may share the friend password with the second user, so that the second user may add the first user as a friend based on the friend password.
When the first-type friend adding mode in the prior art is adopted, the first user needs to share the own identifier with the second user, and if the first user is supposed to share the own identifier with the second user by publishing the own identifier on a third-party platform (such as a microblog, a forum and the like) outside an application corresponding to the server, other irrelevant users may see the identifier of the first user besides the second user, so that the first user is equivalently that part of personal information of the first user is directly leaked, and is easily disturbed by other irrelevant users, and an information security risk exists.
As described above, since it is difficult for any user to determine the identification information of the first user according to the friend password, even if the user publishes the friend password on the third-party platform, the user cannot directly see the identification of the first user, and therefore, compared with the first-class friend adding manner in the prior art, the scheme of the present application can reduce the information security risk.
In the embodiment of the application, the first user can share the friend password to the second user in a verbal form, can share the friend password to the second user through the third-party platform, can share the friend password to the second user in a temporary conversation (a conversation between non-friends) form through the server, and the like. After the second user obtains the friend password, the friend password can be sent to the server through the client of the second user (this action may be equivalent to requesting the server to add the user corresponding to the friend password as a friend of the second user, and the user corresponding to the friend password is also the first user).
S104: and when receiving a friend adding request carrying the friend password of the first user, the server adds the first user as a friend of the second user according to the friend password and the identification information of the second user, wherein the friend adding request is a request of the second user.
In the embodiment of the application, after the first user shares the friend password with the second user, the second user can send the friend password to the server through the client of the second user.
As mentioned above, the friend password may be generated by the server using a predetermined information conversion algorithm, and accordingly, the server may also parse the friend password based on the information conversion algorithm to obtain the information implicit in the friend password, and determine the identification information of the first user based on the implicit information. Therefore, the server knows that the friend which the second user sends the friend password and wants to request to add is the first user, and further, the server can add the first user as the friend of the second user.
Further, in order to prevent irrelevant users other than the second user from adding the first user as a friend by using the friend password, the server may not directly add the first user as a friend of the second user after analyzing the friend password to obtain the identification information of the first user, but only add the first user as a friend of the second user after obtaining the agreement of the first user.
Similarly, in order to prevent other unrelated users from pretending that the first user shares friend passwords of other unrelated users with the second user, so as to mislead the second user to add other unrelated users as friends, after the server analyzes the friend password to obtain identification information of the first user, the server may notify the second user that the user corresponding to the friend password is indeed the first user, or may send predetermined information of the user corresponding to the friend password to the second user, so that the second user can determine whether the user corresponding to the friend password is the first user according to the predetermined information. The second user may send confirmation information to the server after determining that the user corresponding to the friend password is the first user, and then the server adds the first user as a friend of the second user after receiving the confirmation information. The predetermined information of the first user may be part or all of attribute information of the first user, for example, attribute information of the first user, such as a nickname, an age, a sex, a birthday, and the like.
The prior art may have other problems in addition to the above-mentioned problems. For example, since the number of users in many applications is huge at present, in the case that the identification information is an ID, the length of the ID of the user may be relatively long, so that, in the prior art, when the first user shares the ID of the first user with the second user in a verbal form, the second user is difficult to remember, and further, the convenience of adding friends is also affected. With regard to such a problem, the solution of the present application may also solve, specifically, even if the ID of the user is relatively long, but the length of the friend password generated by the server is controllable, and a short password having a length shorter (even much shorter) than the ID of the user may be generated by the server as the friend password, and generally, the short password is easier to memorize than the ID of the user, and thus, the solution of the present application may partially or completely solve the problem mentioned in this paragraph.
For example, assuming that the ID of the first user is a certain mailbox address abcdef @ fgh.com, which is relatively long and has a length of 14 characters, the server may generate a friend password having a length shorter than 14 characters by selecting an appropriate information conversion algorithm when performing step S101, for example, the generated friend password may be a 4-digit string "1234" similar to a short message authentication code or 6 may be a string "123456", may be 4 chinese character strings "i am happy", may be a 10-digit and english alphabet mixed string "12345 abcde", and so on.
In practical applications, the IDs of most users may be relatively long, but the IDs of a small number of users may be relatively short. If the server sets a fixed length for the generated friend password in advance, the length of the ID of most users is longer than that of the corresponding friend password, but the length of the ID of a small part of users is not longer than that of the corresponding friend password. For such a situation, the scheme of the application can still partially solve the problem that the opposite user is difficult to memorize and the convenience of adding friends is further influenced because the ID of the user may be longer.
Of course, in the scheme of the application, the length of the friend password may not be limited. Under the circumstance, the problem that information security risks exist in a friend adding mode in the prior art is still solved partially or completely without influencing the scheme of the application.
Through the method in fig. 1, in the process of adding a friend, a user does not need to directly publish an identification of the user, which means that personal information of the user cannot be directly disclosed, so that information security risks are reduced, other users can add the user as a friend by inputting a friend password submitted to the user for sharing, two-dimensional code function support is not needed, when the user shares the friend password in a spoken form, switching between applications does not need to be involved, and convenience is good. Moreover, the lengths of the friend passwords are controllable, and when the friend passwords are short passwords, the friend passwords can be shared orally by users conveniently, and other users can remember the friend passwords conveniently.
Based on the method in fig. 1, the present application also provides some specific embodiments of the method in fig. 1, and further embodiments, which are described below.
In practical application, the number of users of many applications is huge, the number of friend password generation requests received by the server may be large, and the friend passwords have limited lengths, but the server needs to generate different friend passwords for different users.
In the embodiment of the application, the survival time of the friend password can be recorded according to the request time corresponding to the friend password generation request or the time when the friend password is to be generated, and the server can record the time information for the subsequent process.
For example, the server may hide the time information in the friend password. Specifically, for step S102, generating a friend password of the first user according to the identification information of the first user may specifically include: and generating the friend password of the first user according to the identification information of the first user, the request time corresponding to the friend password generation request and/or the time when the server side needs to generate the friend password.
Of course, besides the time information, other personal information of the first user may also be hidden in the friend password, and the content of the information that can be hidden in the friend password generated in step S102 is not illustrated in this application one by one, as long as the service end can determine the identification information of the first user according to the friend password.
Further, for step S104, adding the first user as a friend of the second user according to the friend password and the identification information of the second user, specifically, the adding may include: analyzing the friend password to obtain identification information of the first user; and adding the first user as a friend of the second user according to the identification information of the first user and the identification information of the second user. Therefore, the recovery of the information hidden in the friend password is realized, and the process of adding friends can be completed.
In the embodiment of the application, when the server determines that the friend password corresponds to the identification information of the first user after receiving the friend adding request of the second user carrying the friend password of the first user, the server may add the first user as a friend of the second user after obtaining the agreement of the first user. Specifically, for step S104, according to the identification information of the first user and the identification information of the second user, before adding the first user as a friend of the second user, the following steps may be further performed: obtaining the preset information of the second user according to the identification information of the second user and sending the preset information to the first user, wherein the preset information of the second user comprises part or all attribute information of the second user; and receiving confirmation information returned by the first user aiming at the predetermined information of the second user. If the server side does not receive the confirmation information returned by the first user, the subsequent steps can not be executed.
In this embodiment of the application, for step S104, before adding the first user as a friend of the second user according to the identification information of the first user and the identification information of the second user, the following may be further performed: obtaining the preset information of the first user according to the identification information of the first user and sending the preset information to the second user; and receiving confirmation information returned by the second user aiming at the preset information of the first user. If the server does not receive the confirmation information returned by the second user, the subsequent steps may not be executed.
Through the scheme in the two sections, the information security risk can be further reduced, and the reliability and controllability of the process of adding friends are improved.
In the embodiment of the application, the friend password can be used for adding friends and realizing other services. Specifically, the friend password request of the first user sent to the server may simultaneously carry other service password generation requests, or directly send other service password generation requests to the server without sending the friend password generation request. For the former scheme, the server may only generate a friend password and carry the service type information in the friend password, wherein the service type information includes service type information corresponding to the service of "adding friend" and/or service type information corresponding to the other services; for the latter scheme, the server may generate other service passwords, and carry the service type information corresponding to the other services in the other service passwords. Therefore, the scheme of the application can be expanded to support other services.
For example, in the former scheme, when receiving the friend password sent by the second user, the server may execute a service corresponding to the service type information according to the friend password including the service type information.
It should be noted that, the manner of carrying the service type information in the friend password is not limited in the present application. Generally, the service type information may be saved by one or more characters in the friend password.
In the embodiment of the present application, it has been mentioned above that, for convenience, the friend password described in the present application may be a short password, and "short" herein may be relative to the length of the ID of the user. Specifically, in practical applications, the length of the friend password may be shorter than the length of the ID of the user corresponding to the friend password, or the length of the friend password may be shorter than the length of the IDs of most users, and so on, and of course, the scheme of the present application also allows such a situation to occur: the length of the ID of a small number of users is not longer than the length of their corresponding friend passwords.
Based on the same idea as that of the method in fig. 1, the present application further provides a method for adding a friend, which is described from the perspective of the client of the first user, and the process of the method is as shown in fig. 2.
The executing body of the process in fig. 2 is the client of the first user. The client of the first user is typically mounted on a terminal, including but not limited to: personal computers, cell phones, tablet computers, smart watches, vehicle-mounted mobile stations, and the like.
The process in fig. 2 may specifically include the following steps:
s201: and sending a friend password generation request of the first user to the server.
S202: and receiving a friend password of the first user generated and returned by the server according to the identification information of the first user, so that the first user shares the friend password with a second user, the second user sends a friend adding request carrying the friend password to the server, and the server adds the first user as a friend of the second user.
Through the method in fig. 2, in the process of adding a friend, a user does not need to directly publish an identification of the user, which means that personal information of the user cannot be directly disclosed, so that information security risks are reduced, other users can add the user as a friend by inputting a friend password shared by the user, devices where a client of a first user and a client of a second user are located do not need to be supported by a two-dimensional code function, when the user shares the friend password in a spoken form, switching between applications does not need to be involved, and convenience is good. Moreover, the lengths of the friend passwords are controllable, and when the friend passwords are short passwords, the friend passwords can be shared orally by users conveniently, and other users can remember the friend passwords conveniently.
In the embodiment of the present application, there are various ways for the first user to share the friend password with the second user, and two types are listed as examples below.
In the first type, a first user can share a friend password with a second user in a spoken form, and a client of the first user, a client of the second user and a server are not required to participate in the sharing process.
In the second category, the first user may share the friend password with the second user based on the third-party platform, and in the sharing process, the client of the first user and the client of the second user may be required to participate. The third-party platform may be another application or website, such as a microblog or a forum, other than the application corresponding to the client of the first user.
Taking the way of the friend password of the second type as an example, specifically, for step S202, after receiving the friend password of the first user returned by the server, the following steps may be further performed: and sharing the friend password of the first user to a third-party platform based on the sharing operation of the first user, so that the second user can conveniently acquire the friend password from the third-party platform.
Based on the same idea as that of the method in fig. 1, the present application further provides a method for adding a friend, which is described from the perspective of the client of the second user, and the process of the method is shown in fig. 3.
The executing body of the process in fig. 3 is the client of the second user. The client of the second user is typically mounted on a terminal, including but not limited to: personal computers, cell phones, tablet computers, smart watches, vehicle-mounted mobile stations, and the like.
The process in fig. 3 may specifically include the following steps:
s301: and acquiring a friend password of the first user, wherein the friend password is generated by the server side in response to a friend password generation request of the first user and according to the identification information of the first user.
S302: and sending a friend adding request carrying the friend password of the first user to the server, so that the server adds the first user as a friend of the second user according to the friend password and the identification information of the second user, wherein the friend adding request is a request of the second user.
Through the method in fig. 3, in the process of adding a friend, a user does not need to directly publish an identification of the user, which means that personal information of the user cannot be directly disclosed, so that information security risks are reduced, other users can add the user as a friend by inputting a friend password shared by the user, devices where a client of a first user and a client of a second user are located do not need to be supported by a two-dimensional code function, when the user shares the friend password in a spoken form, switching between applications does not need to be involved, and convenience is good. Moreover, the lengths of the friend passwords are controllable, and when the friend passwords are short passwords, the friend passwords can be shared orally by users conveniently, and other users can remember the friend passwords conveniently.
In the embodiment of the application, the first user can share the friend password with the second user in a verbal form, and then the second user can manually input the friend password on the client of the second user; the first user can also share the friend password with the second user based on the client of the first user and the third-party platform, and then the second user inputs the friend password on the client of the second user in a copying and pasting mode, or the client of the second user can also automatically identify and obtain the friend password, so that the mode is good in convenience.
For example, for step S301, acquiring a friend password may specifically include: receiving a friend password input by the second user; or actively identifying the friend password stored in the clipboard of the second user, wherein the friend password stored in the clipboard is copied by the second user from a third-party platform of the first user sharing the friend password.
In this embodiment, according to the above description of fig. 1, for step S302, after sending the friend addition request carrying the friend password of the first user to the server, the following may be further performed: receiving preset information of the first user returned by the server according to the friend password, and displaying the preset information of the first user to the second user, wherein the preset information of the first user comprises part or all attribute information of the first user; when the confirmation operation of the second user for the preset information is monitored, returning the confirmation information for the preset information to the server, so that the server can add the first user as a friend of the second user according to the friend password and the identification information of the second user. In this way, the second user can be prevented from mistakenly adding other irrelevant users except the first user as friends.
The scheme of the present application is explained above from three terminals, respectively. For convenience of understanding, the embodiment of the present application further provides an interactive schematic diagram of three terminals and a third-party platform when a part of the scheme of the present application is executed in an actual application scenario, as shown in fig. 4.
In fig. 4, the applications corresponding to the three terminals, i.e., the server, the client of the first user, and the client of the second user, are e-wallet applications, and the third-party platform for sharing the friend password is a microblog application.
The interaction process in fig. 4 may include the following steps:
s401: the client side of a first user of the electronic wallet application sends a friend password generation request of the first user to the server side.
The execution of step S401 may be triggered by the first user operating a preset control on the client of the first user. For example, the preset control may be a button control for requesting generation of a friend password, and when the first user clicks the button control, the execution of step S401 is triggered.
S402: and the server side of the electronic wallet application generates a friend password of the first user according to the ID of the first user and the request time.
The ID of the first user may be directly carried in the friend password generation request, or may be determined by the server in other manners.
S403: and the server side of the electronic wallet application returns the generated friend password of the first user to the client side of the first user.
S404: the method comprises the steps that a client side of a first user of the electronic wallet application shares a friend password of the first user to a microblog application platform based on sharing operation of the first user.
It should be noted that, instead of performing steps S404 and S405, the first user directly shares the friend password with the second user in a verbal form, so that the second user can manually input the friend password in the client of the second user, and further, the steps S406 may be performed continuously.
S405: the client side of a second user of the electronic wallet application obtains the friend password of the first user based on the input operation of the second user or the copying operation of the second user on the microblog application platform.
For example, the second user may copy a friend password on the microblog application platform (the friend password is stored in the clipboard after being copied), then open the client of the second user, and the client of the second user actively recognizes the friend password in the clipboard, or the second user may paste the copied friend password in a related interface of the client of the second user.
S406: and the client of the second user of the electronic wallet application sends a friend adding request carrying the friend password of the first user to the server.
S407: and the server side of the electronic wallet application analyzes the received friend password of the first user and determines the ID of the first user.
S408: and the server side of the electronic wallet application acquires the preset information of the first user according to the ID of the first user and returns the preset information to the client side of the second user.
S409: and the client of the second user of the electronic wallet application returns corresponding confirmation information to the server based on the confirmation operation of the second user on the predetermined information of the first user.
S410: and after receiving the confirmation information, the server of the electronic wallet application adds the first user as a friend of the second user.
Embodiments of the present application also provide a system architecture diagram that may be used to implement aspects of the present application, as shown in fig. 5.
In fig. 5, the password server is the server, the password client may be the client of the first user or the client of the second user, and a gateway may be provided between the password server and the password client. The password client side can comprise a data acquisition and business attribution component, a rule execution component, a protocol analyzer and the like, and the password server side can comprise a communication protocol component, a rule generator and the like.
The system in fig. 5 may support not only the service of adding a friend, but also other services. It can be seen that the first two characters of the password generated by the system in fig. 5 are service types (that is, carry service type information), and after receiving the password, the password service end may execute a service processing operation corresponding to the service type information according to the service type information carried by the password. For example, assuming that the service type information carried by the password corresponds to a friend adding service, the server may perform a friend adding operation accordingly.
The method for adding a friend provided by the embodiment of the present application is described in detail above, and based on the same idea, a corresponding device for adding a friend is also provided in the embodiment of the present application, as shown in fig. 6, fig. 7, and fig. 8.
Fig. 6 is a schematic structural diagram of a device for adding a buddy, which is located on a server and corresponds to fig. 1 according to an embodiment of the present application, where the device includes:
a request receiving module 601, configured to receive a friend password generation request of a first user;
a password generating module 602, configured to determine identification information of the first user according to the friend password generation request of the first user, and generate a friend password of the first user according to the identification information of the first user;
a password returning module 603, configured to return the friend password of the first user to the first user, so that the first user shares the friend password with a second user;
a friend adding module 604, configured to, when a friend adding request carrying a friend password of the first user is received, add the first user as a friend of the second user according to the friend password and the identification information of the second user, where the friend adding request is a request of the second user.
Optionally, the password generating module 602 is specifically configured to: and generating a friend password of the first user according to the identification information of the first user and the request time corresponding to the friend password generation request.
Optionally, the friend adding module 604 is specifically configured to: analyzing the friend password to obtain identification information of the first user; and adding the first user as a friend of the second user according to the identification information of the first user and the identification information of the second user.
Optionally, the friend adding module 604 is further configured to: before the first user is added as a friend of the second user according to the identification information of the first user and the identification information of the second user, obtaining the preset information of the first user according to the identification information of the first user and sending the preset information to the second user, wherein the preset information of the first user comprises part or all attribute information of the first user; and receiving confirmation information returned by the second user aiming at the preset information.
Optionally, the friend password includes service type information, and the apparatus further includes:
and the service processing module 605 is configured to, when the friend password sent by the second user is received, execute a service corresponding to the service type information according to the friend password containing the service type information.
Optionally, the identification information of the first user includes an identification ID of the first user, the friend password of the first user is a short password, and the length of the short password is shorter than the length of the identification information of the first user.
Fig. 7 is a schematic structural diagram of a device for adding a buddy, which is located on a client of a first user and corresponds to fig. 2 according to an embodiment of the present application, and includes:
a password request module 701, configured to send a friend password generation request of the first user to a server;
a password receiving module 702, configured to receive a friend password of the first user generated and returned by the server according to the identification information of the first user, so that the first user shares the friend password with a second user, and the second user sends a friend adding request carrying the friend password to the server, and the server adds the first user as a friend of the second user.
Optionally, the apparatus further comprises:
the password sharing module 703 is configured to, after the password receiving module receives the friend password of the first user returned by the server, share the friend password of the first user to a third-party platform based on the sharing operation of the first user, so that the second user can obtain the friend password from the third-party platform.
Fig. 8 is a schematic structural diagram of a device for adding a buddy, which is located on a client of a second user and corresponds to fig. 3 according to an embodiment of the present application, and specifically includes:
a password obtaining module 801, configured to obtain a friend password of a first user, where the friend password is generated by a server in response to a friend password generation request of the first user and according to identification information of the first user;
a password sending module 802, configured to send a friend adding request carrying the friend password of the first user to the server, so that the server adds the first user as a friend of the second user according to the friend password and the identification information of the second user, where the friend adding request is a request of the second user.
Optionally, the password obtaining module 801 is specifically configured to: receiving a friend password input by the second user; or,
and actively identifying the friend password stored in the clipboard of the second user, wherein the friend password stored in the clipboard is copied by the second user from a third-party platform of the first user sharing the friend password.
Optionally, the apparatus further comprises:
a confirming module 803, configured to receive, after the password sending module sends the friend password to the server, the predetermined information of the first user returned by the server according to the friend password of the first user, and display the predetermined information of the first user to the second user, where the predetermined information of the first user includes part or all of attribute information of the first user; when the confirmation operation of the second user for the preset information is monitored, returning the confirmation information for the preset information to the server, so that the server can add the first user as a friend of the second user according to the friend password and the identification information of the second user.
Through the device, in the process of adding the friend, a user does not need to directly publish own identification, namely personal information of the part of the user can not be directly disclosed, information security risks are reduced, other users can add the user as the friend by inputting a friend password shared by the user, two-dimensional code function support is not needed, when the user shares the friend password in a spoken form, switching among applications does not need to be involved, convenience is good, and therefore the scheme can partially or completely solve the problems in the prior art. Moreover, the lengths of the friend passwords are controllable, and when the friend passwords are short passwords, the friend passwords can be shared orally by users conveniently, and other users can remember the friend passwords conveniently.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The above description is only an example of the present application and is not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims (18)

1. A method for adding friends, comprising:
a server receives a friend password generation request of a first user, wherein the friend password generation request does not carry identification information of the first user;
the server side determines the identification information of the first user according to the communication condition between the server side and the client side of the first user; the server side adopts a preset information conversion algorithm to convert specific information into a character string as a friend password of the first user; the specific information comprises identification information of the first user, request time corresponding to the friend password generation request and/or time for a server to generate a friend password;
the server side records the survival time of the friend password according to the request time corresponding to the friend password generation request or the friend password generation time, and returns the friend password of the first user to the first user, so that the first user can share the friend password to a second user;
when the server receives a friend adding request carrying a friend password of the first user, if the survival time of the friend password does not exceed a set life cycle, adding the first user as a friend of the second user according to the friend password and the identification information of the second user, wherein the friend adding request is a request of the second user;
the friend password generation request of the first user carries other service password generation requests except for adding friends, and the friend password of the first user carries service type information of other services; when the server receives a friend adding request carrying a friend password of the first user, the server executes other services according to the service type information of the other services carried in the friend password;
the server adds the first user as a friend of the second user according to the friend password and the identification information of the second user, and the method further comprises the following steps: the server acquires preset information of the second user according to the identification information of the second user and sends the preset information to the first user, wherein the preset information of the second user comprises part or all attribute information of the second user; the server receives confirmation information returned by the first user aiming at the predetermined information of the second user;
and if the server does not receive confirmation information returned by the first user aiming at the predetermined information of the second user, the server does not add the first user as a friend of the second user.
2. The method of claim 1, wherein adding the first user as a friend of the second user according to the friend password and the identification information of the second user specifically comprises:
analyzing the friend password to obtain identification information of the first user;
and adding the first user as a friend of the second user according to the identification information of the first user and the identification information of the second user.
3. The method of claim 2, wherein the first user is added as a buddy of the second user based on the buddy password and identification information of the second user, the method further comprising:
obtaining the preset information of the first user according to the identification information of the first user and sending the preset information to the second user, wherein the preset information of the first user comprises part or all attribute information of the first user;
and receiving confirmation information returned by the second user aiming at the preset information.
4. The method of any of claims 1-3, wherein the identification information of the first user comprises an Identification (ID) of the first user, wherein the friend password of the first user is a short password, and wherein the length of the short password is shorter than the length of the ID of the first user.
5. A method for adding friends, comprising:
sending a friend password generation request of a first user to a server, wherein the friend password generation request does not carry identification information of the first user, so that the server determines the identification information of the first user according to the communication condition between the server and a client of the first user; the server side adopts a preset information conversion algorithm to convert specific information into a character string as a friend password of the first user; the specific information comprises identification information of the first user, request time corresponding to the friend password generation request and/or time for a server to generate a friend password, and the server records survival time of the friend password according to the request time corresponding to the friend password generation request or the friend password generation time;
receiving a friend password of the first user generated and returned by the server according to the identification information of the first user, so that the first user can share the friend password to a second user, the second user can send a friend adding request carrying the friend password to the server, and if the survival time of the friend password does not exceed a set life cycle, the server adds the first user as a friend of the second user;
the friend password generation request of the first user carries other service password generation requests except for the addition of friends, so that the friend password of the first user generated by the server carries service type information of other services; when the server receives a friend adding request carrying a friend password of the first user, the server executes other services according to the service type information of the other services carried in the friend password;
before the server adds the first user as a friend of the second user, the method further includes:
the server acquires preset information of the second user according to the identification information of the second user and sends the preset information to the first user, wherein the preset information of the second user comprises part or all attribute information of the second user; the server receives confirmation information returned by the first user aiming at the predetermined information of the second user;
and if the server does not receive confirmation information returned by the first user aiming at the predetermined information of the second user, the server does not add the first user as a friend of the second user.
6. The method of claim 5, wherein after receiving the friend password of the first user returned by the server, the method further comprises:
and sharing the friend password of the first user to a third-party platform based on the sharing operation of the first user, so that the second user can conveniently acquire the friend password from the third-party platform.
7. A method for adding friends, comprising:
the method comprises the steps that a friend password of a first user is obtained, the friend password is generated by a server side in response to a friend password generation request of the first user, and the server side records the survival time of the friend password according to the request time corresponding to the friend password generation request or the friend password generation time;
sending a friend adding request carrying a friend password of the first user to the server, so that if the survival time of the friend password does not exceed a set life cycle, the server adds the first user as a friend of the second user according to the friend password and identification information of the second user, and the friend adding request is a request of the second user;
the friend password generation request of the first user carries other service password generation requests except for the addition of friends, so that the friend password of the first user generated by the server carries service type information of other services; when the server receives a friend adding request carrying a friend password of the first user, the server executes other services according to the service type information of the other services carried in the friend password;
the friend password generation request does not carry identification information of the first user, and the step of generating the friend password by the server side in response to the friend password generation request of the first user comprises the following steps:
the server side determines the identification information of the first user according to the communication condition between the server side and the client side of the first user; the server side adopts a preset information conversion algorithm to convert specific information into a character string as a friend password of the first user; the specific information comprises identification information of the first user, request time corresponding to the friend password generation request and/or time for a server to generate a friend password;
before the server adds the first user as a friend of the second user, the method further includes:
the server acquires preset information of the second user according to the identification information of the second user and sends the preset information to the first user, wherein the preset information of the second user comprises part or all attribute information of the second user; the server receives confirmation information returned by the first user aiming at the predetermined information of the second user;
and if the server does not receive confirmation information returned by the first user aiming at the predetermined information of the second user, the server does not add the first user as a friend of the second user.
8. The method of claim 7, wherein obtaining the friend password specifically comprises:
receiving a friend password input by the second user; or,
and actively identifying the friend password stored in the clipboard of the second user, wherein the friend password stored in the clipboard is copied by the second user from a third-party platform of the first user sharing the friend password.
9. The method of claim 7, wherein after sending the friend add request carrying the friend password of the first user to the server, the method further comprises:
receiving preset information of the first user returned by the server according to the friend password, and displaying the preset information of the first user to the second user, wherein the preset information of the first user comprises part or all attribute information of the first user;
when the confirmation operation of the second user for the preset information is monitored, returning the confirmation information for the preset information to the server, so that the server can add the first user as a friend of the second user according to the friend password and the identification information of the second user.
10. An apparatus for adding friends, the apparatus being located on a server side, comprising:
the request receiving module is used for receiving a friend password generation request of a first user, wherein the friend password generation request does not carry identification information of the first user;
the password generation module is used for determining the identification information of the first user according to the communication condition between the first user and the client of the first user; converting specific information into a character string by adopting a preset information conversion algorithm to be used as a friend password of the first user; the specific information comprises identification information of the first user, request time corresponding to the friend password generation request and/or time for a server to generate a friend password;
the password returning module is used for recording the survival time of the friend password according to the request time corresponding to the friend password generating request or the friend password generating time, and returning the friend password of the first user to the first user so that the first user can share the friend password to a second user;
the friend adding module is used for adding the first user as a friend of the second user according to the friend password and the identification information of the second user when a friend adding request carrying the friend password of the first user is received and the survival time of the friend password does not exceed a set life cycle, wherein the friend adding request is the request of the second user;
the service processing module is used for executing other services according to the service type information of other services carried in the friend password when receiving a friend adding request carrying the friend password of the first user; the friend password generation request of the first user carries other service password generation requests except for adding friends, and the friend password of the first user carries service type information of other services;
the friend adding module adds the first user as a friend of the second user according to the friend password and the identification information of the second user, obtains the preset information of the second user according to the identification information of the second user and sends the preset information to the first user, wherein the preset information of the second user comprises part or all of attribute information of the second user; the friend adding module receives confirmation information returned by the first user aiming at the predetermined information of the second user;
and if the friend adding module does not receive confirmation information returned by the first user aiming at the predetermined information of the second user, the friend adding module does not add the first user as a friend of the second user.
11. The apparatus of claim 10, wherein the buddy adding module is specifically configured to: analyzing the friend password to obtain identification information of the first user; and adding the first user as a friend of the second user according to the identification information of the first user and the identification information of the second user.
12. The apparatus of claim 11, wherein the buddy addition module is further for: before the first user is added as a friend of the second user according to the identification information of the first user and the identification information of the second user, obtaining the preset information of the first user according to the identification information of the first user and sending the preset information to the second user, wherein the preset information of the first user comprises part or all attribute information of the first user; and receiving confirmation information returned by the second user aiming at the preset information.
13. The apparatus of any of claims 10-12, wherein the identification information of the first user comprises an identification ID of the first user, the friend password of the first user is a short password, and the length of the short password is shorter than the length of the ID of the first user.
14. An apparatus for adding friends, the apparatus being located on a client of a first user, comprising:
the password request module is used for sending a friend password generation request of the first user to a server, wherein the friend password generation request does not carry identification information of the first user, so that the server determines the identification information of the first user according to the communication condition between the server and a client of the first user; the server side adopts a preset information conversion algorithm to convert specific information into a character string as a friend password of the first user; the specific information comprises identification information of the first user, request time corresponding to the friend password generation request and/or time for a server to generate a friend password, and the server enables the request time corresponding to the friend password generation request or the friend password generation time to record survival time of the friend password;
the password receiving module is used for receiving a friend password of the first user generated and returned by the server according to the identification information of the first user, so that the first user can share the friend password with a second user conveniently, the second user can send a friend adding request carrying the friend password to the server conveniently, and if the survival time of the friend password does not exceed a set life cycle, the server adds the first user as a friend of the second user;
the friend password generation request of the first user carries other service password generation requests except for the addition of friends, so that the friend password of the first user generated by the server carries service type information of other services; when the server receives a friend adding request carrying a friend password of the first user, the server executes other services according to the service type information of the other services carried in the friend password;
before the server adds the first user as a friend of the second user, the server obtains preset information of the second user according to the identification information of the second user and sends the preset information to the first user, wherein the preset information of the second user comprises part or all attribute information of the second user; the server receives confirmation information returned by the first user aiming at the predetermined information of the second user;
and if the server does not receive confirmation information returned by the first user aiming at the predetermined information of the second user, the server does not add the first user as a friend of the second user.
15. The apparatus of claim 14, wherein the apparatus further comprises:
and the password sharing module is used for sharing the friend password of the first user to a third-party platform based on the sharing operation of the first user after the password receiving module receives the friend password of the first user returned by the server, so that the second user can conveniently obtain the friend password from the third-party platform.
16. An apparatus for adding friends, the apparatus being located on a client of a second user, comprising:
the friend password generating module is used for generating a friend password generating request of the first user according to the friend password, and the server generates the friend password according to the friend password and records the survival time of the friend password;
a password sending module, configured to send a friend addition request carrying a friend password of the first user to the server, so that if the survival time of the friend password does not exceed a set life cycle, the server adds the first user as a friend of the second user according to the friend password and identification information of the second user, where the friend addition request is a request of the second user;
the friend password generation request of the first user carries other service password generation requests except for the addition of friends, so that the friend password of the first user generated by the server carries service type information of other services; when the server receives a friend adding request carrying a friend password of the first user, the server executes other services according to the service type information of the other services carried in the friend password;
the friend password generation request does not carry identification information of the first user, and the step of generating the friend password by the server side in response to the friend password generation request of the first user comprises the following steps:
the server side determines the identification information of the first user according to the communication condition between the server side and the client side of the first user; the server side adopts a preset information conversion algorithm to convert specific information into a character string as a friend password of the first user; the specific information comprises identification information of the first user, request time corresponding to the friend password generation request and/or time for a server to generate a friend password;
before the server adds the first user as a friend of the second user, the server obtains preset information of the second user according to the identification information of the second user and sends the preset information to the first user, wherein the preset information of the second user comprises part or all attribute information of the second user; the server receives confirmation information returned by the first user aiming at the predetermined information of the second user;
and if the server does not receive confirmation information returned by the first user aiming at the predetermined information of the second user, the server does not add the first user as a friend of the second user.
17. The apparatus of claim 16, wherein the password acquisition module is specifically configured to: receiving a friend password input by the second user; or,
and actively identifying the friend password stored in the clipboard of the second user, wherein the friend password stored in the clipboard is copied by the second user from a third-party platform of the first user sharing the friend password.
18. The apparatus of claim 16, wherein the apparatus further comprises:
the confirmation module is used for receiving the preset information of the first user returned by the server according to the friend password after the password sending module sends the friend password of the first user to the server, and displaying the preset information of the first user to the second user, wherein the preset information of the first user comprises part or all attribute information of the first user; when the confirmation operation of the second user for the preset information is monitored, returning the confirmation information for the preset information to the server, so that the server can add the first user as a friend of the second user according to the friend password and the identification information of the second user.
CN201610192499.XA 2016-03-30 2016-03-30 Method and device for adding friends Active CN107294832B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201610192499.XA CN107294832B (en) 2016-03-30 2016-03-30 Method and device for adding friends
CN202110126707.7A CN112769684B (en) 2016-03-30 2016-03-30 Method and device for adding friends

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610192499.XA CN107294832B (en) 2016-03-30 2016-03-30 Method and device for adding friends

Related Child Applications (1)

Application Number Title Priority Date Filing Date
CN202110126707.7A Division CN112769684B (en) 2016-03-30 2016-03-30 Method and device for adding friends

Publications (2)

Publication Number Publication Date
CN107294832A CN107294832A (en) 2017-10-24
CN107294832B true CN107294832B (en) 2021-01-05

Family

ID=60086807

Family Applications (2)

Application Number Title Priority Date Filing Date
CN201610192499.XA Active CN107294832B (en) 2016-03-30 2016-03-30 Method and device for adding friends
CN202110126707.7A Active CN112769684B (en) 2016-03-30 2016-03-30 Method and device for adding friends

Family Applications After (1)

Application Number Title Priority Date Filing Date
CN202110126707.7A Active CN112769684B (en) 2016-03-30 2016-03-30 Method and device for adding friends

Country Status (1)

Country Link
CN (2) CN107294832B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108182039B (en) * 2017-12-21 2021-05-25 厦门攸信信息技术有限公司 Voice transmission method and system
CN110290051B (en) * 2019-06-03 2022-06-10 创新先进技术有限公司 Stranger social contact connection method and device
CN110381059B (en) * 2019-07-19 2023-01-17 平安科技(深圳)有限公司 Method and device for adding friends based on biological recognition and computer equipment
CN111343076A (en) * 2020-02-13 2020-06-26 广东小天才科技有限公司 Method and device for adding friends
CN112383470B (en) * 2021-01-15 2021-04-13 中国平安人寿保险股份有限公司 Communication friend adding method and device, computer equipment and storage medium
CN113126848B (en) * 2021-04-28 2022-06-14 浙江贝才之神网络科技有限公司 Method and system for adding friends
CN113225737A (en) * 2021-05-08 2021-08-06 广东智能精灵科技有限公司 Method, device and system for making friends based on authorization codes

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103248555A (en) * 2012-02-08 2013-08-14 腾讯科技(深圳)有限公司 Method and device for adding friends
CN103533014A (en) * 2013-04-23 2014-01-22 Tcl集团股份有限公司 Method and system for providing temporary extension space
CN104184652A (en) * 2013-05-28 2014-12-03 北大方正集团有限公司 Method and system for information interaction between terminals
CN105049319A (en) * 2015-05-25 2015-11-11 腾讯科技(深圳)有限公司 Friend adding method and system, client, and server

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100461702C (en) * 2006-08-29 2009-02-11 中国移动通信集团公司 Friendly-synchronizing management method for network community
CN101067856A (en) * 2007-06-28 2007-11-07 向亚峰 Method and system for realizing network payment
CN102984181B (en) * 2011-09-02 2016-05-11 北京三星通信技术研究有限公司 Based on the method and apparatus of social networks communication
CN104349313B (en) * 2013-07-23 2018-12-07 阿里巴巴集团控股有限公司 Business authorization method, equipment and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103248555A (en) * 2012-02-08 2013-08-14 腾讯科技(深圳)有限公司 Method and device for adding friends
CN103533014A (en) * 2013-04-23 2014-01-22 Tcl集团股份有限公司 Method and system for providing temporary extension space
CN104184652A (en) * 2013-05-28 2014-12-03 北大方正集团有限公司 Method and system for information interaction between terminals
CN105049319A (en) * 2015-05-25 2015-11-11 腾讯科技(深圳)有限公司 Friend adding method and system, client, and server

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
如何运用吱口令迅速添加支付宝好友;冰芯之雨露;《百度经验,https://jingyan.baidu.com/article/f7ff0bfc248d342e27bb1374.html》;20160320;1-8 *
支付宝吱口令在哪里打开?如何创建吱口令消息?;Hungryheart66;《百度经验,https://jingyan.baidu.com/article/5d6edee2f933fb99eadeec3f.html》;20160112;1-4 *
支付宝吱口令是什么?吱口令怎么用;sanpitt;《百度经验,https://jingyan.baidu.com/article/a17d5285170be68098c8f2d4.html》;20160112;1-7 *
独家首发-支付宝吱口令的秘密;Colbert337;《colbert"s blog,http://colbert337.github.io/2016/02/07/zhicode/》;20160210;1-4 *

Also Published As

Publication number Publication date
CN112769684B (en) 2023-07-04
CN107294832A (en) 2017-10-24
CN112769684A (en) 2021-05-07

Similar Documents

Publication Publication Date Title
CN107294832B (en) Method and device for adding friends
US8954494B2 (en) Method and system for synchronizing operations of multiple groups
CN104052782B (en) Information sharing method and system
CN106550004B (en) Service object recommendation method and device
US11349832B2 (en) Account recovery
WO2019072197A1 (en) Red packet distribution method, device, and medium
KR20120036831A (en) Integrating updates into a social-networking service
JP7490710B2 (en) Method and apparatus for managing limited engagement with external email resource entities within a group-based communication system - Patents.com
WO2014206053A1 (en) Systems and methods for image sharing
EP3075177A1 (en) Method, apparatus and device for exchanging name card
CN110570166A (en) News feed technology
US9615222B2 (en) System and method for simplifying mobile device account creation and verification
EP3105891B1 (en) Instant messaging with non subscriber users
US10333915B2 (en) Customization of user account authentication
CN110430292B (en) Method and device for inviting login of network platform, electronic equipment and readable medium
US20210112044A1 (en) Device validation apparatus and protocol for a group-based communication system
Westerkamp et al. Tawki: Towards self-sovereign social communication
US10447692B2 (en) Auto-creation of application passwords
US20160337308A1 (en) Electronic mail prompting method and server
US20150113381A1 (en) Techniques to leverage data from mobile headers
US9363135B1 (en) Social vicinity service for social networks
CN104270357A (en) Service information sending method and device
US20190058608A1 (en) Method and system to provide the trending news stories to the plurality of groups based on the plurality of group members existing conversations
US20160080385A1 (en) Contact Identification Validation via Social Invitation
CN113722589B (en) Information generation method, device, server 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
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 1246031

Country of ref document: HK

TA01 Transfer of patent application right

Effective date of registration: 20201014

Address after: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Applicant after: Innovative advanced technology Co.,Ltd.

Address before: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Applicant before: Advanced innovation technology Co.,Ltd.

Effective date of registration: 20201014

Address after: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Applicant after: Advanced innovation technology Co.,Ltd.

Address before: A four-storey 847 mailbox in Grand Cayman Capital Building, British Cayman Islands

Applicant before: Alibaba Group Holding Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant
CB03 Change of inventor or designer information

Inventor after: Sun Xi

Inventor after: He Sanyuan

Inventor after: Zhao Ying

Inventor after: Guo Chunyang

Inventor after: Zhu Zhongxiang

Inventor before: Sun Xi

Inventor before: He Sanyuan

Inventor before: Zhao Ying

Inventor before: Guo Chunyang

Inventor before: Zhu Zhongxiang

CB03 Change of inventor or designer information