Decentralized login method, client and system
Technical Field
The present disclosure relates generally to the field of decentralized logging, and more particularly, to a decentralized logging method, a client and a system.
Background
Currently, the social software of the client mainly uses a centralized login method based on a centralized server, where the client includes a Personal Computer (PC) client and a mobile phone client.
And the centralized server uniformly stores the account password information required by the client during login. Specifically, the centralized server generally uses a file-type database to store account password information data and friend list data registered by the user at the client, so that the account password information and friend list registered by the user are solidified at the centralized server. Here, the file type database includes a two-dimensional database such as an Oracle database, MySQL, Microsoft (MS) SQL, or the like relational database; the file-type database also includes a non-relational database of text-type (NoSQL).
In addition, the client communicates with a fixed centralized server using a fixed port. The centralized server sends data to the client side through a fixed port. And after receiving the data, the client stores the data locally.
Specifically, the centralized login method based on the centralized server comprises the following steps: step S1, installing social software on the PC client and starting the social software; step S2, registering the account, and jumping to step S3 if the account is registered; step S3, prompting to input an account number and a password; step S4, the account and the password are logged in after the verification of the known centralized server of the public network is passed; step S5, after logging in, the centralized server returns basic data of the buddy list information until the logging in is completed.
In summary, the technical features of the centralized login method based on the centralized server include:
(1) the client needs to log in a single centralized server, and the data type stored by the centralized server is fixed;
(2) the client has data traces from remote to local in the whole login process;
(3) communication channel singulation, i.e., a client and a centralized server communicate through a single channel.
It can be seen that the technical problems of using the centralized login method include:
(1) the centralized login method has potential safety hazards, so that data is stolen, leaked, monitored and violently cracked.
(2) The centralized server is supervised or intercepted by hackers due to its exposure on the public network. Thereby making the data insecure. The centralized server is similar to a data backup device, so a client with high privacy requirement can generate unsafe feeling to the centralized server.
Disclosure of Invention
In view of the foregoing defects or shortcomings in the prior art, it is desirable to provide a decentralized login method, a client and a system, which can ensure the security and privacy of data during login communication.
In a first aspect, an embodiment of the present disclosure provides a decentralized login method, including:
after receiving a first identity Identification (ID) number of a first decentralized login client, a first decentralized login client receives a second ID of a second decentralized login client, wherein the first ID of the first decentralized login client and the second ID of the second decentralized login client are respectively sent by a network node server;
the first decentralized login client establishes a direct connection channel with the second decentralized login client according to the first ID of the first decentralized login client and the second ID of the second decentralized login client;
and after the first decentralized login client logs in, basic data information is received through the direct connection channel.
In the foregoing solution, after receiving the second ID of the second decentralized login client and before the first decentralized login client establishes the direct connection channel with the second decentralized login client according to the first ID of the first decentralized login client and the second ID of the second decentralized login client, the method further includes:
the first decentralized login client saves a second ID of the second decentralized login client to a first local friend list;
the first decentralized login client receives a second network protocol (IP) address of the second decentralized login client and information of a second port of the second decentralized login client, and the second IP address of the second decentralized login client and the information of the second port of the second decentralized login client are sent by the network node server.
In the foregoing solution, the basic data information includes an encrypted extensible markup language (XML) file, and the encrypted XML file includes the basic data.
In the foregoing solution, after the first decentralized login client receives the first ID of the first decentralized login client and before the first ID of the second decentralized login client is received, the method further includes:
the first decentralized login client adds two-digit characters to a first ID of the first decentralized login client to generate a first ID two-dimensional code of the first decentralized login client; the first ID of the first decentralized login client after the two-bit character is added is a 130-bit character string, the first ID two-dimensional code of the first decentralized login client includes information of the first ID of the first decentralized login client, and the second ID of the second decentralized login client is a 128-bit character string.
In a second aspect, an embodiment of the present disclosure provides another decentralized login method, including:
after receiving a second ID of a second decentralized login client, a second decentralized login client identifies a first ID of a first decentralized login client, and the first ID of the first decentralized login client and the second ID of the second decentralized login client are respectively sent by a network node server;
the second decentralized login client establishes a direct connection channel with the first decentralized login client according to the first ID of the first decentralized login client and the second ID of the second decentralized login client;
and the second decentralized login client sends basic data information through the direct connection channel.
In the foregoing solution, after identifying the first ID of the first decentralized login client and before the second decentralized login client establishes the direct connection channel with the first decentralized login client according to the first ID of the first decentralized login client and the second ID of the second decentralized login client, the method further includes:
after the second decentralized login client saves the first ID of the first decentralized login client to a second local friend list, the second decentralized login client informs the network node server to send a second ID of the second decentralized login client;
the second decentralized login client receives a first IP address of the first decentralized login client and information of a first port of the first decentralized login client, and the first IP address of the first decentralized login client and the information of the first port of the first decentralized login client are sent by the network node server.
In the foregoing solution, the identifying the first ID of the first decentralized login client includes:
scanning a first ID two-dimensional code of a first decentralized login client to obtain a first ID of the first decentralized login client, wherein the first ID two-dimensional code of the first decentralized login client comprises information of the first ID of the first decentralized login client.
In a third aspect, an embodiment of the present disclosure provides a decentralized login client, including:
the receiving module is used for receiving a first ID of a first decentralized login client and then receiving a second ID of a second decentralized login client, wherein the first ID of the first decentralized login client and the second ID of the second decentralized login client are respectively sent by a network node server;
the direct connection channel establishing module is used for establishing a direct connection channel with the second decentralized login client according to the first ID of the first decentralized login client and the second ID of the second decentralized login client;
and the login module is used for receiving the basic data information through the direct connection channel after login.
In the above scheme, the client further comprises a storage receiving module, wherein,
the receiving module is used for receiving a second ID of a second decentralized login client and storing the second ID of the second decentralized login client to a first local friend list before the direct connection channel establishing module establishes a direct connection channel according to the first ID of the first decentralized login client and the second ID of the second decentralized login client; and receiving a second IP address of the second decentralized login client and information of a second port of the second decentralized login client, wherein the second IP address of the second decentralized login client and the information of the second port of the second decentralized login client are sent by the network node server.
In the above scheme, the basic data information includes an encrypted XML file, and the encrypted XML file includes basic data.
In the above scheme, after the receiving module receives the first ID of the first decentralized login client and before the receiving module receives the second ID of the second decentralized login client, the receiving module is further configured to add two-bit characters to the first ID of the first decentralized login client to generate the first ID two-dimensional code of the first decentralized login client; the first ID of the first decentralized login client after the two-bit character is added is a 130-bit character string, the first ID two-dimensional code of the first decentralized login client includes information of the first ID of the first decentralized login client, and the second ID of the second decentralized login client is a 128-bit character string.
In a fourth aspect, an embodiment of the present disclosure provides another decentralized login client, including:
the receiving and identifying module is used for identifying a first ID of a first decentralized login client after receiving a second ID of a second decentralized login client, and the first ID of the first decentralized login client and the second ID of the second decentralized login client are respectively sent by a network node server;
the direct connection channel establishing module is used for establishing a direct connection channel with the first decentralized login client according to the first ID of the first decentralized login client and the second ID of the second decentralized login client;
and the sending module is used for sending basic data information through the direct connection channel.
In the above scheme, the client further comprises a storage receiving module, wherein,
after the receiving and identifying module identifies the first ID of the first decentralized login client and before the direct connection channel establishing module establishes the direct connection channel with the first decentralized login client according to the first ID of the first decentralized login client and the second ID of the second decentralized login client, the storage and receiving module is used for storing the first ID of the first decentralized login client to a second local friend list and then informing the network node server of sending the second ID of the second decentralized login client; and receiving a first IP address of a first decentralized login client and information of a first port of the first decentralized login client, wherein the first IP address of the first decentralized login client and the information of the first port of the first decentralized login client are sent by the network node server.
In the above solution, the receiving and identifying module includes an identifying unit, configured to identify a first ID of the first decentralized login client; wherein,
the identifying unit is configured to identify a first ID of the first decentralized login client, and the identifying unit includes:
scanning a first ID two-dimensional code of a first decentralized login client to obtain a first ID of the first decentralized login client, wherein the first ID two-dimensional code of the first decentralized login client comprises information of the first ID of the first decentralized login client.
In a fifth aspect, an embodiment of the present disclosure provides a decentralized login system, including:
the system comprises the first decentralized login client of the third aspect and the second decentralized login client of the fourth aspect, and further comprises a network node server, wherein,
the first decentralized login client is used for receiving a first ID of the first decentralized login client sent by the network node server and then receiving a second ID of a second decentralized login client sent by the network node server; establishing a direct connection channel with the second decentralized login client according to the first ID of the first decentralized login client and the second ID of the second decentralized login client; after logging in, receiving basic data information sent by the second decentralized logging in client through the direct connection channel;
the second decentralized login client is used for identifying the first ID of the first decentralized login client after receiving the second ID of the second decentralized login client sent by the network node server; establishing the direct connection channel with the first decentralized login client according to the first ID of the first decentralized login client and the second ID of the second decentralized login client; sending the basic data information to the first decentralized login client through the direct connection channel;
the network node server is configured to send a first ID of the first decentralized login client to the first decentralized login client, and then send a second ID of the second decentralized login client to the second decentralized login client.
According to the decentralized login method, the client and the system provided by the embodiment of the disclosure, after a first decentralized login client in the decentralized login system receives a first ID of the first decentralized login client, a second ID of a second decentralized login client is received, and the first ID of the first decentralized login client and the second ID of the second decentralized login client are respectively sent by a network node server; establishing a direct connection channel with a second decentralized login client in the decentralized login system according to the first ID of the first decentralized login client and the second ID of the second decentralized login client; after logging in, the first decentralized logging-in client receives basic data information from the second decentralized logging-in client through the direct connection channel. Because the network node server is used instead of the centralized server, the centralized login is not needed, and the safety of data in the login process is ensured; meanwhile, the decentralized login method provided by the embodiment of the disclosure can log in without registering an account, so that the technical problem of password data leakage in centralized login is solved; in addition, the decentralized login method provided by the embodiment of the disclosure does not need to store data information at the first decentralized login client, so that login security can be guaranteed to the maximum extent.
Drawings
Other features, objects and advantages of the present application will become more apparent upon reading of the following detailed description of non-limiting embodiments thereof, made with reference to the accompanying drawings in which:
fig. 1 is a schematic flow chart illustrating an implementation of a decentralized login method according to embodiment 1 of the present disclosure;
fig. 2 is a schematic flow chart illustrating an implementation of the decentralized login method according to embodiment 2 of the present disclosure;
fig. 3 is a schematic flow chart illustrating an implementation of the decentralized login method according to embodiment 3 of the present disclosure;
fig. 4 is a schematic structural diagram of a decentralized login client according to embodiment 4 of the present disclosure;
fig. 5 is a schematic structural diagram of a decentralized login client according to embodiment 5 of the present disclosure.
Detailed Description
The present application will be described in further detail with reference to the following drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the relevant invention and not restrictive of the invention. It should be noted that, for convenience of description, only the portions related to the present invention are shown in the drawings.
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The present application will be described in detail below with reference to the embodiments with reference to the attached drawings.
Example 1
Fig. 1 is a decentralized login method provided in embodiment 1 of the present disclosure. As shown in fig. 1, the decentralized login method is a decentralized login method of a first decentralized login client in the decentralized login system, and includes:
step 110: and after receiving the first ID of the first decentralized login client, the first decentralized login client receives the second ID of the second decentralized login client, wherein the first ID of the first decentralized login client and the second ID of the second decentralized login client are respectively sent by the network node server.
Before step 110, the first decentralized login client is started to access a Network Node Server (NNS) and establish a direct connection channel with the network node server. The network node server is a network node (network node) server in a network architecture (SNA). The network node server belongs to a server cluster. It should be noted that the network node servers that the first decentralized login client initiates access to are dynamically and randomly allocated, that is, the network node servers that the first decentralized login client initiates access to are all different each time, so that the user of the first decentralized login client cannot know the network node server that is accessed this time.
Here, the first decentralized login client includes a PC client and a mobile phone client, and may be a social software and a chat software.
Then, the network node server generates a first ID of the first decentralized login client for the first decentralized login client according to an algorithm, wherein the first ID of the first decentralized login client is a 128-bit random unrepeated character string, and sends the first ID of the first decentralized login client to the first decentralized login client.
In step 110, after receiving the first ID of the first decentralized login client, the first decentralized login client receives the second ID of the second decentralized login client, and the first ID of the first decentralized login client and the second ID of the second decentralized login client are respectively sent by the network node server.
In step 110, after the first decentralized login client receives the first ID of the first decentralized login client and before the first ID of the second decentralized login client is received, the method further includes:
the first decentralized login client adds two-digit characters to a first ID of the first decentralized login client to generate a first ID two-dimensional code of the first decentralized login client; the first ID of the first decentralized login client after the two-bit character is added is a 130-bit character string, the first ID two-dimensional code of the first decentralized login client includes information of the first ID of the first decentralized login client, and the second ID of the second decentralized login client is a 128-bit character string.
Here, after the first decentralized login client receives the first ID of the first decentralized login client, a two-bit character "C:" is added in front of the first ID of the first decentralized login client, thereby composing a 130-bit string. The first ID string for the 130-bit first decentralized login client is as follows: c: 29 fa5b3c33c7b3065996be3e7f8aa897392cd11885df32eec8b6ae485f. The first decentralized login client generates a first ID two-dimensional code of the first decentralized login client from a first ID of the 130-bit first decentralized login client, wherein the first ID two-dimensional code of the first decentralized login client is a two-dimensional code picture. And then, the first decentralized login client displays the first ID two-dimensional code of the first decentralized login client and stops displaying the interface of the first ID two-dimensional code of the first decentralized login client. At this time, the first decentralized login client does not really log in, and the first ID two-dimensional code of the first decentralized login client can be really logged in only after the second decentralized login client identifies the first ID two-dimensional code and establishes a direct connection channel.
Additionally, the second ID of the second decentralized login client is a 128-bit string generated by the network node server according to an algorithm for the second decentralized login client.
After step 110, the method further comprises:
after receiving the second ID of the second decentralized login client and before the first decentralized login client establishes a direct connection channel with the second decentralized login client according to the first ID of the first decentralized login client and the second ID of the second decentralized login client, the method further includes:
the first decentralized login client saves a second ID of the second decentralized login client to a first local friend list;
the first decentralized login client receives a second network protocol IP address of the second decentralized login client and information of a second port of the second decentralized login client, and the second IP address of the second decentralized login client and the information of the second port of the second decentralized login client are sent by the network node server.
Specifically, the first decentralized login client saves the second ID of the second decentralized login client to the first local friend list; and receiving a second IP address of a second decentralized login client and information of a second port of the second decentralized login client, wherein the second IP address of the second decentralized login client and the information of the second port of the second decentralized login client are sent by the network node server.
Here, the information of the second IP address of the second decentralized login client and the second port of the second decentralized login client is the information of the IP address and the port of the host where the second decentralized login client is located.
In addition, the first decentralized login client sends the first IP address of the first decentralized login client and information of the first port of the first decentralized login client to the network node server, and the first IP address of the first decentralized login client and the information of the first port of the first decentralized login client are the IP address and the port information of the host where the first decentralized login client is located.
Step 120: and the first decentralized login client establishes a direct connection channel with the second decentralized login client according to the first ID of the first decentralized login client and the second ID of the second decentralized login client.
In step 120, the first decentralized login client establishes a direct connection channel with the second decentralized login client according to the first ID of the first decentralized login client and the second ID of the second decentralized login client. Subsequently, the network node server disconnects. The network node server can destroy the information of the first ID of the first decentralized login client and the second ID of the second decentralized login client at any time.
Step 130: and after the first decentralized login client logs in, basic data information is received through the direct connection channel.
In step 130, the first decentralized login client directly logs in after the direct connection channel is successfully established, and waits for the second decentralized login client to send basic data information. Here, the first decentralized login client does not use the method of user login in the prior art.
Here, the basic data information includes an encrypted XML file including basic data.
After step 130, the first decentralized login client receives the basic data information and creates a cache for storing the basic data information. And automatically clearing the basic data information after the first decentralized login client logs out, so that the first client does not have any basic data information.
Specifically, after the first decentralized login client receives the basic data packet sent by the second decentralized login client, a basic data packet loading process is started. First, the first decentralized login client creates a cache list and decrypts the basic data packet, so that the basic data packet is restored to an XML file. And then, the first decentralized login client analyzes the XML file, and the analyzed basic data are classified and stored in a specified cache list. And the first decentralized login client processes and displays the analyzed basic data.
All data of the first decentralized login client are operated in the cache, the method is different from a social software relational database of the client in the prior art, all cache data are stored in an internal memory, the data can be automatically cleared after the first decentralized login client logs out, backup is not reserved on a host of the first decentralized login client, and the first decentralized login client can not be initialized again until logging in next time.
At this point, the decentralized login method at the first decentralized login client is completed.
Here, decentralized refers to a network that does not require fixed servers and data centers. Decentralized is distinguished from fixed servers and data centers referred to as centralized. The decentralized login uses a first decentralized login client and a second decentralized login client to communicate in a direct connection mode. After the direct connection channel is established, the communication and the network node server are disconnected, and the influence and the monitoring of the network node server are avoided.
Example 2
Fig. 2 is a schematic flow chart illustrating an implementation of another decentralized login method according to embodiment 2 of the present disclosure. As shown in fig. 2, the decentralized login method is a decentralized login method of a second decentralized login client in the decentralized login system, and includes:
step 210: and after receiving a second ID of the second decentralized login client, the second decentralized login client identifies a first ID of the first decentralized login client, and the first ID of the first decentralized login client and the second ID of the second decentralized login client are respectively sent by the network node server.
Before step 210, a second decentralized login client is initiated, accesses a network node server and establishes a direct connection channel with the network node server. The network node servers which the second decentralized login client starts to access are dynamically and randomly distributed, namely, the network node servers which the second decentralized login client starts to access at each time are different, so that the second decentralized login client cannot know the network node servers which are accessed at this time.
Here, the second decentralized login client includes a mobile phone client and a PC client having a camera function, and may be a social software and a chat software.
Subsequently, the network node server generates a second ID of the second decentralized login client for the second decentralized login client according to an algorithm, wherein the second ID of the second decentralized login client is a 128-bit random non-repetitive character string, and sends the second ID of the second decentralized login client to the second decentralized login client. Meanwhile, the network node server records the position information of the second decentralized login client, namely, the second IP address of the second decentralized login client and the information of the second port of the second decentralized login client.
In step 210, the second decentralized login client receives the second ID of the second decentralized login client and then identifies the first ID of the first decentralized login client.
Specifically, the identifying the first ID of the first decentralized login client includes:
scanning a first ID two-dimensional code of a first decentralized login client to obtain a first ID of the first decentralized login client, wherein the first ID two-dimensional code of the first decentralized login client comprises information of the first ID of the first decentralized login client.
Here, the second decentralized login client scans the first ID two-dimensional code of the first decentralized login client to obtain the first ID of the first decentralized login client, where the first ID two-dimensional code of the first decentralized login client includes information of the first ID of the first decentralized login client.
After step 210, the method further comprises:
after the second decentralized login client saves the first ID of the first decentralized login client to a second local friend list, the second decentralized login client informs the network node server to send a second ID of the second decentralized login client;
the second decentralized login client receives a first IP address of the first decentralized login client and information of a first port of the first decentralized login client, and the first IP address of the first decentralized login client and the information of the first port of the first decentralized login client are sent by the network node server.
Here, after the second decentralized login client saves the first ID of the first decentralized login client to the second local buddy list, the second decentralized login client notifies the network node server to send the second ID of the second decentralized login client to the first decentralized login client provided in embodiment 1; and receiving a first IP address of a first decentralized login client and information of a first port of the first decentralized login client, wherein the first IP address of the first decentralized login client and the information of the first port of the first decentralized login client are sent by the network node server.
Step 220: and the second decentralized login client establishes a direct connection channel with the first decentralized login client according to the first ID of the first decentralized login client and the second ID of the second decentralized login client.
In step 220, the second decentralized login client establishes a direct connection channel with the first decentralized login client according to the first ID of the first decentralized login client and the second ID of the second decentralized login client.
Step 230: and the second decentralized login client sends basic data information through the direct connection channel.
In step 230, the second decentralized login client sends basic data information to the first decentralized login client through the direct connection channel.
Specifically, after the second decentralized login client and the first decentralized login client establish a direct connection channel, the flow of packaging basic data is entered. Firstly, the second decentralized login client exports basic data, generates an XML file, encrypts the XML file and generates a basic data packet. And then, the second decentralized login client sends a basic data packet to the first decentralized login client through the direct connection channel.
Example 3
Fig. 3 is a schematic flow chart illustrating an implementation of the decentralized login method according to embodiment 3 of the present disclosure. As shown in fig. 3, the decentralized login method includes:
step 301: a first decentralized login client accesses a network node server;
step 302: the network node server randomly generates a first ID of a first decentralized login client, wherein the first ID of the first decentralized login client is a 128-bit string;
step 303: the network node server sends a first ID of the first decentralized login client to the first decentralized login client;
step 304: the first decentralized login client receives a first ID of the first decentralized login client;
step 305: the first decentralized login client adds two-digit characters to a first ID of the first decentralized login client to generate a first ID two-dimensional code of the first decentralized login client;
step 306: the second decentralized login client accesses the network node server;
step 307: the network node server randomly generates a second ID of the second decentralized login client, wherein the second ID of the second decentralized login client is a 128-bit string;
step 308: the network node server sends a second ID of the second decentralized login client to the second decentralized login client;
step 309: the second decentralized login client receives a second ID of the second decentralized login client;
step 310: the second decentralized login client scans the first ID two-dimensional code of the first decentralized login client, and obtains the first ID of the first decentralized login client from the first decentralized login client;
step 311: after the second decentralized login client saves the first ID of the first decentralized login client to the second local friend list, the second decentralized login client informs the network node server to send the second ID of the second decentralized login client;
step 312: the network node server sends a second ID of the second decentralized login client to the first decentralized login client;
step 313: the first decentralized login client receives a second ID of the second decentralized login client;
step 314: the first decentralized login client saves a second ID of the second decentralized login client to the first local friend list;
step 315: the network node server sends a first IP address of the first decentralized login client and information of a first port of the first decentralized login client to the second decentralized login client;
step 316: the second decentralized login client receives a first IP address of the first decentralized login client and information of a first port of the first decentralized login client;
step 317: the network node server sends a second IP address of the second decentralized login client and information of a second port of the second decentralized login client to the first decentralized login client;
step 318: the first decentralized login client receives a second IP address of the second decentralized login client and information of a second port of the second decentralized login client;
step 319: the first decentralized login client and the second decentralized login client establish a direct connection channel according to a first ID of the first decentralized login client and a second ID of the second decentralized login client;
step 320: a first decentralized login client login;
step 321: the second decentralized login client sends basic data information to the first decentralized login client through the direct connection channel;
step 322: the first decentralized login client receives basic data information through the direct connection channel.
Here, the first decentralized login client is a PC client, and the second decentralized login client is a mobile phone client.
Example 4
Fig. 4 is a decentralized login client provided in embodiment 4 of the present disclosure. As shown in fig. 4, the decentralized login client includes:
the receiving module 410 is configured to receive a first ID of a first decentralized login client, and then receive a second ID of a second decentralized login client, where the first ID of the first decentralized login client and the second ID of the second decentralized login client are respectively sent by a network node server.
Specifically, after the receiving module 410 receives the first ID of the first decentralized login client and before the receiving the second ID of the second decentralized login client, the receiving module 410 is further configured to add two-bit characters to the first ID of the first decentralized login client to generate the first ID two-dimensional code of the first decentralized login client; the first ID of the first decentralized login client after the two-bit character is added is a 130-bit character string, the first ID two-dimensional code of the first decentralized login client includes information of the first ID of the first decentralized login client, and the second ID of the second decentralized login client is a 128-bit character string.
A direct connection channel establishing module 430, configured to establish a direct connection channel with the second decentralized login client according to the first ID of the first decentralized login client and the second ID of the second decentralized login client.
And the login module 440 is configured to receive the basic data information through the direct connection channel after login.
In addition, the client further comprises a save receive module 420, wherein,
after the receiving module 410 receives the second ID of the second decentralized login client and before the direct connection channel establishing module 430 establishes a direct connection channel according to the first ID of the first decentralized login client and the second ID of the second decentralized login client, the saving receiving module 420 is configured to save the second ID of the second decentralized login client to the first local buddy list; and receiving a second IP address of the second decentralized login client and information of a second port of the second decentralized login client, wherein the second IP address of the second decentralized login client and the information of the second port of the second decentralized login client are sent by the network node server.
Specifically, the basic data information includes an encrypted XML file including basic data.
Example 5
Fig. 5 is a decentralized login client provided in embodiment 5 of the present disclosure. As shown in fig. 5, the decentralized login client includes:
the receiving and identifying module 510 is configured to identify a first ID of a first decentralized login client after receiving a second ID of a second decentralized login client, where the first ID of the first decentralized login client and the second ID of the second decentralized login client are respectively sent by a network node server.
Specifically, the receiving identification module 510 includes an identification unit 511, configured to identify a first ID of the first decentralized login client; wherein,
the first ID of the identifying unit 511 for identifying the first decentralized login client comprises:
scanning a first ID two-dimensional code of a first decentralized login client to obtain a first ID of the first decentralized login client, wherein the first ID two-dimensional code of the first decentralized login client comprises information of the first ID of the first decentralized login client.
A direct connection channel establishing module 530, configured to establish a direct connection channel with the first decentralized login client according to the first ID of the first decentralized login client and the second ID of the second decentralized login client.
A sending module 540, configured to send basic data information through the direct connection channel.
In addition, the client further comprises a save receive module 520, wherein,
after the receiving and identifying module 510 identifies the first ID of the first decentralized login client and before the direct connection channel establishing module 530 establishes a direct connection channel with the first decentralized login client according to the first ID of the first decentralized login client and the second ID of the second decentralized login client, the storing and receiving module 520 is configured to notify the network node server to send the second ID of the second decentralized login client after storing the first ID of the first decentralized login client in the second local buddy list; and receiving a first IP address of a first decentralized login client and information of a first port of the first decentralized login client, wherein the first IP address of the first decentralized login client and the information of the first port of the first decentralized login client are sent by the network node server.
Example 6
The embodiment 6 of the present disclosure provides a decentralized login system. The decentralized login system comprises a first decentralized login client according to embodiment 4 and a second decentralized login client according to embodiment 5, and further comprises a network node server, wherein,
the first decentralized login client is used for receiving a first ID of the first decentralized login client sent by the network node server and then receiving a second ID of a second decentralized login client sent by the network node server; establishing a direct connection channel with the second decentralized login client according to the first ID of the first decentralized login client and the second ID of the second decentralized login client; after logging in, receiving basic data information sent by the second decentralized logging in client through the direct connection channel;
the second decentralized login client is used for identifying the first ID of the first decentralized login client after receiving the second ID of the second decentralized login client sent by the network node server; establishing the direct connection channel with the first decentralized login client according to the first ID of the first decentralized login client and the second ID of the second decentralized login client; sending the basic data information to the first decentralized login client through the direct connection channel;
the network node server is configured to send a first ID of the first decentralized login client to the first decentralized login client, and then send a second ID of the second decentralized login client to the second decentralized login client.
In practical applications, the receiving module 410, the storing and receiving module 420, the direct connection channel establishing module 430, the logging module 440, the receiving and identifying module 510, the identifying unit 511, the storing and receiving module 520, the direct connection channel establishing module 530, and the sending module 540 may be implemented by a Central Processing Unit (CPU), a Digital Signal Processor (DSP), a Microprocessor (MPU), or a programmable logic array (FPGA) located in any computer device.
The above description is only a preferred embodiment of the application and is illustrative of the principles of the technology employed. It will be appreciated by a person skilled in the art that the scope of the invention as referred to in the present application is not limited to the embodiments with a specific combination of the above-mentioned features, but also covers other embodiments with any combination of the above-mentioned features or their equivalents without departing from the inventive concept. For example, the above features may be replaced with (but not limited to) features having similar functions disclosed in the present application.