A user identification generation method, device, equipment and storage medium
By obtaining identification information from the authorization system and internal system, converting and encrypting processing to generate a user unique identity, the problem that directly sending the user ID as OpenID is not conducive to user privacy and security is solved, and the user authorization isolation between different third-party systems is realized and Privacy protection.
Patent Information
- Application Number
- CN202111017303.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-08-31
- Publication Date
- 2024-11-19
- Estimated Expiration
- 2041-08-31
AI Technical Summary
In the prior art, the server directly sends the user ID as OpenID to the third-party system, which is not conducive to the protection of user privacy and security.
The identification information of the third party system and the user is obtained from the authorized system and the internal system, and the third identification information of the third set number is generated through conversion and encryption processing, and encrypted into the encrypted identification information of the fourth set number of bits is encrypted , sent as a user's unique identifier to a third-party system for authorization management.
Effectively isolate user authorization management between different third-party systems, improves the security protection of user privacy and ensures that the unique user identification obtained by each third-party system is different.
Smart Images

Figure CN113946859B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of computer technology, and in particular to a method, apparatus, device and storage medium for generating a user identification. Background Art
[0002] When providing services to users, third-party systems often need to obtain user information from other servers. For example, when users access a third-party system, they can log in to the third-party system using login information on other servers (for example, logging in on other third-party platforms using QQ numbers or WeChat numbers). In order to protect the privacy and security of users, authorization management of the third-party system is required.
[0003] For servers under the OAuth2.0 (Open Authorization) standard, the server will provide the user's OpenID to the third-party system. The third-party system requests the user's private resources from the server based on the OpenID. The server only allows the third-party system to access the user's specific private resources. The server does not need to provide the user's account password in the server to the third-party system. However, the server generally sends the user ID directly to the third-party system as the OpenID, which is not conducive to the protection of user privacy and security. Summary of the invention
[0004] The embodiments of the present application provide a user identification generation method, apparatus, device and storage medium to solve the technical problem in the prior art that a server directly sends a user ID as an OpenID to a third-party system, which is not conducive to protecting the privacy and security of the user.
[0005] In a first aspect, an embodiment of the present application provides a method for generating a user identification, comprising:
[0006] Acquire third-party system identification information from the authorization system, and convert the third-party system identification information into first identification information of a first set number of digits;
[0007] Acquire user identification information from the internal system, and convert the user identification information into second identification information with a second set number of digits;
[0008] Generate third identification information of a third set number of bits according to the first identification information and the second identification information;
[0009] The third identification information is encrypted to obtain encrypted identification information of a fourth set number of digits, and the encrypted identification information is determined as the user's unique identification.
[0010] Furthermore, converting the third-party system identification information into first identification information of a first set number of digits includes:
[0011] Determine a first base of the third-party system identification information, and convert the third-party system identification information from the first base to a set base, wherein the number of digits of the set base is greater than the number of digits of the first base;
[0012] The third-party system identification information after the conversion is converted into first identification information of a first set number of digits.
[0013] Furthermore, converting the converted third-party system identification information into first identification information of a first set number of digits includes:
[0014] When the number of digits of the third-party system identification information after the conversion is consistent with the first set number of digits, using the third-party system identification information as the first identification information;
[0015] When the number of digits of the third-party system identification information after conversion is less than the first set number of digits, the third-party system identification information is supplemented with a set placeholder to obtain first identification information with the same number of digits as the first set number of digits.
[0016] Furthermore, converting the user identification information into second identification information of a second set number of digits includes:
[0017] Determine a binary number of the user identification information, and convert the user identification information from the binary number to a set number system, wherein the number of digits of the set number system is greater than the number of digits of the binary number system;
[0018] The user identification information after the conversion is converted into second identification information of a second set number of digits.
[0019] Furthermore, the converting of the converted user identification information into second identification information of a second set number of digits includes:
[0020] When the number of digits of the user identification information after the conversion is consistent with the second set number of digits, the user identification information is used as the second identification information;
[0021] When the number of digits of the user identification information after the conversion is less than the second set number of digits, the user identification information is supplemented with a set placeholder to obtain second identification information with the same number of digits as the second set number of digits.
[0022] Furthermore, the first set number of digits is determined based on the maximum value of the third-party system identification information in the authorization system, and the second set number of digits is determined based on the maximum value of the user identification information in the internal system.
[0023] Further, generating third identification information of a third set number of bits according to the first identification information and the second identification information includes:
[0024] According to the set series connection strategy, the first identification information and the second identification information are connected in series to obtain the third identification information of a third set number of bits.
[0025] In a second aspect, an embodiment of the present application provides a user identification generation device, including a first identification acquisition module, a second identification acquisition module, an identification synthesis module and a unique identification generation module, wherein:
[0026] The first identification acquisition module is used to acquire the third-party system identification information from the authorization system, and convert the third-party system identification information into first identification information of a first set number of digits, wherein the authorization system records the third-party system identification information of each third-party system;
[0027] The second identification acquisition module is used to acquire user identification information from an internal system and convert the user identification information into second identification information of a second set number of digits, wherein the internal system records the user identification information of each user;
[0028] The identification synthesis module is used to generate third identification information of a third set number of bits according to the first identification information and the second identification information;
[0029] The unique identification generating module is used to encrypt the third identification information to obtain encrypted identification information of a fourth set number of bits, and determine the encrypted identification information as the user's unique identification.
[0030] On the third-party system side, the embodiment of the present application provides a user identification generation device, including: a memory and one or more processors;
[0031] The memory is used to store one or more programs;
[0032] When the one or more programs are executed by the one or more processors, the one or more processors implement the user identification generation method as described in the first aspect.
[0033] In a fourth aspect, an embodiment of the present application provides a storage medium comprising computer executable instructions, which, when executed by a computer processor, are used to execute the user identification generation method as described in the first aspect.
[0034] The embodiment of the present application obtains the third-party system identification information of the third-party system and the user identification information of the user from the authorization system and the internal system respectively, and generates the third identification information of a third set number of digits according to the third-party system identification information and the user identification information, encrypts the third identification information to obtain the encrypted identification information of a fourth set number of digits, and uses the encrypted identification information as the user's unique identification. The user's unique identification can be sent to the third-party system for authorization management. Since the generated user unique identification carries the third-party system identification information and the user identification information, it can be achieved that the user unique identifications of the same user obtained by different third-party systems are different, thereby effectively isolating the user authorization management between different third-party systems and improving the security protection of user privacy. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] Figure 1 is a flow chart of a method for generating a user identification provided by an embodiment of the present application;
[0036] Figure 2 is a flowchart of another method for generating a user identification provided by an embodiment of the present application;
[0037] Figure 3 It is a structural diagram of a user identification generating device provided in an embodiment of the present application;
[0038] Figure 4 It is a structural diagram of a user identification generating device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0039] In order to make the purpose, technical scheme and advantages of the present application clearer, the specific embodiments of the present application are further described in detail below in conjunction with the accompanying drawings. It is understood that the specific embodiments described herein are only used to explain the present application, rather than to limit the present application. It should also be noted that, for the convenience of description, only the part related to the present application but not all the contents are shown in the accompanying drawings. Before discussing the exemplary embodiments in more detail, it should be mentioned that some exemplary embodiments are described as processes or methods depicted as flow charts. Although the flow chart describes each operation (or step) as a sequential process, many of the operations therein can be implemented in parallel, concurrently or simultaneously. In addition, the order of each operation can be rearranged. The process can be terminated when its operation is completed, but it can also have additional steps not included in the accompanying drawings. The process can correspond to a method, a function, a procedure, a subroutine, a subprogram, etc.
[0040] Figure 1A flowchart of a user identification generation method provided in an embodiment of the present application is given. The user identification generation method provided in an embodiment of the present application can be executed by a user identification generation device, which can be implemented by hardware and / or software and integrated in a user identification generation device (such as a cloud server).
[0041] The following description is made by taking the user identification generating device executing the user identification generating method as an example. Figure 1 , the user identification generation method includes:
[0042] S101: Acquire third-party system identification information from an authorization system, and convert the third-party system identification information into first identification information of a first set number of digits.
[0043] The user identification generation device provided in this embodiment is configured with an authorization system and an internal system, wherein the authorization system is used to perform authorization management of the third-party system, and the third-party system identification information of different third-party systems is recorded in the third-party system. It can be understood that the third-party system identification information can be obtained by uploading the third-party system, or it can be allocated by the user identification generation device for the third-party system registered and logged in in the authorization system.
[0044] Exemplarily, the third-party system identification information of the third-party system is obtained from the authorization system, and the third-party system identification information is converted into the first identification information of the first set digit. This solution uniformly converts the third-party system identification information into the first set digit, facilitating the unified management of data.
[0045] S102: Acquire user identification information from an internal system, and convert the user identification information into second identification information of a second set number of digits.
[0046] The internal system provided in this embodiment is used to manage the user data of each user (including user identification information, user public data, user privacy data, etc.), and to distinguish and identify different users through unique user identification information.
[0047] Exemplarily, the user identification information of the user is obtained from the internal system, and the user identification information is converted into the second identification information of the second set digit. This solution uniformly converts the user identification information into the second set digit, facilitating the unified management of data.
[0048] S103: Generate third identification information of a third set number of bits according to the first identification information and the second identification information.
[0049] After obtaining the first identification information and the second identification information, the first identification information and the second identification information are combined to obtain the third identification information. In a possible embodiment, the first identification information and the second identification information may be combined in series. Based on this, the scheme provides generating the third identification information of the third set number of bits according to the first identification information and the second identification information, including: according to the set series connection strategy, the first identification information and the second identification information are processed in series to obtain the third identification information of the third set number of bits.
[0050] Among them, setting the series connection strategy can be to directly connect the first identification information and the second identification information in series to obtain the third identification information of the third set number of bits. For example, if the first identification information is S1=12345 and the second identification information is S2=1234567, then directly connect the first identification information S1 and the second identification information S2 in series to obtain the third identification information X0=123451234567. Setting the series connection strategy can also be to interleave the first identification information and the second identification information in series. For example, if the first identification information is S1=12345 and the second identification information is S2=1234567, then interleave the first identification information S1 and the second identification information S2 in series to obtain the third identification information X0=112233445567. The series connection strategy can also be set by respectively performing algorithm processing on the first identification information and the second identification information, and then connecting the processed first identification information and the second identification information in series. For example, the first identification information is S1=12345, and the second identification information is S2=1234567. The algorithm processing method for the first identification information and the second identification information is to add one and subtract one for each digit, respectively. Then, after directly connecting the first identification information S1 and the second identification information S2 after algorithm processing, the third identification information X=234560123456 is obtained.
[0051] The number of digits of the third identification information provided by this solution is set to the third set number of digits. Generally, the third set number of digits is greater than or equal to the sum of the first set number of digits and the second set number of digits. After the first identification information and the second identification information are processed in series, when the number of digits of the third identification information obtained is less than the third set number of digits, the insufficient number of digits can be supplemented by a placeholder. For example, the first set number of digits is 5, the second set number of digits is 7, and the third set number of digits is 15. If the first identification information and the second identification information are processed according to the set series strategy, the third identification information obtained has only 12 digits, then the third identification information obtained in series is supplemented by a pre-set placeholder (for example, 0). For example, if the first identification information is S1=12345 and the second identification information is S2=1234567, then the first identification information S1 and the second identification information S2 are directly connected in series, and supplemented by the placeholder, the third identification information X=000123451234567 is obtained, which ensures that the third identification information of the set number of digits is finally obtained, which facilitates the unified management of data.
[0052] S104: Encrypt the third identification information to obtain encrypted identification information of a fourth set number of digits, and determine the encrypted identification information as the user's unique identification.
[0053] After obtaining the third identification information, the third identification information is encrypted according to the set encryption algorithm to obtain encrypted identification information, and the number of bits of the encrypted identification information is the fourth set number of bits. In order to ensure that the number of bits of the encrypted identification information obtained after encrypting the third identification information is the fourth set number of bits, this solution uses an encryption algorithm that can determine the encrypted ciphertext to encrypt the third identification information.
[0054] Furthermore, after obtaining the encrypted identification information of the fourth set digit, the encrypted identification information is stored, and the encrypted identification information is authorized to the corresponding third-party system as the user's unique identification. After obtaining the user's unique identification, the third-party system can send an information acquisition request to the server based on the user's unique identification when it needs to obtain the user's private information. The server will decrypt the user's unique identification to obtain the corresponding third identification information, and determine the first identification information based on the third-party system identification information corresponding to the third-party system, and extract the second identification information from the third identification information based on the combination of the first identification information and the second identification information, and obtain the user's user identification information based on the second identification information. After determining the user identification information, the user information of the response can be sent to the third-party system according to the information acquisition request of the third-party system.
[0055] It is understandable that since the third identification information is generated based on different users and different third-party systems, for different third-party systems, even if the third identification information comes from the same user, the third-party system identification information contained in the third identification information is different, and the encrypted identification information obtained by encryption is also different. Naturally, the unique user identification of the same user obtained by different third-party systems is different. There is isolation of user information between different third-party systems, and user information cannot be shared privately between different third-party systems, effectively protecting user privacy and security.
[0056] In the above, by respectively obtaining the third-party system identification information of the third-party system and the user identification information of the user from the authorization system and the internal system, and generating the third identification information of a third set number of digits according to the third-party system identification information and the user identification information, the third identification information is encrypted to obtain the encrypted identification information of a fourth set number of digits, and the encrypted identification information is used as the user's unique identification. The user's unique identification can be sent to the third-party system for authorization management. Since the generated user's unique identification carries the third-party system identification information and the user's identification information, it can be achieved that the user's unique identification of the same user obtained by different third-party systems is different, which effectively isolates the user authorization management between different third-party systems and improves the security protection of user privacy.
[0057] Based on the above embodiments, Figure 2 A flowchart of another user identification generation method provided in an embodiment of the present application is given, and the user identification generation method is a specific embodiment of the above-mentioned user identification generation method. Figure 2 , the user identification generation method includes:
[0058] S201: Obtain third-party system identification information from the authorization system.
[0059] S202: Determine a first base of the third-party system identification information, and convert the third-party system identification information from the first base to a set base, where the number of digits of the set base is greater than the number of digits of the first base.
[0060] Specifically, after obtaining the third-party system identification information, determine the first base used by the third-party system identification information. When the first base is consistent with the set base, jump to step S203, and there is no need to convert the base of the third-party system identification information. When the first base is not necessarily the same as the set base, convert the third-party system identification information from the first base to the set base. Generally, the number of digits of the set base (such as hexadecimal, 32-base, 64-base, etc.) is greater than the number of digits of the first base (such as decimal) so that the third-party system identification information is converted into a shorter string. For example, the first base of the third-party system identification information is decimal, the set base is 64-base, and the obtained third-party system identification information S1=12345, then after the third-party system identification information is converted from decimal to 64-base, the third-party system identification information finally obtained is S1=DA5. It is understandable that after converting the third-party system identification information into a shorter string, it occupies fewer bits and can accommodate a larger number of third-party systems, while reducing the occupation of data storage space and facilitating data management.
[0061] S203: Convert the converted third-party system identification information into first identification information of a first set length.
[0062] After obtaining the converted third-party system identification information, it is determined whether the third-party system identification information needs to be padded according to the comparison between the length of the third-party system identification information and the first set length. Based on this, the method of converting the converted third-party system identification information into the first identification information of the first set length provided by this solution includes steps S2031-S2032:
[0063] S2031: When the length of the third-party system identification information after the conversion is consistent with the first set length, use the third-party system identification information as the first identification information.
[0064] S2032: When the length of the third-party system identification information after the conversion is less than the first set length, the third-party system identification information is supplemented with a set placeholder to obtain first identification information having a length consistent with the first set length.
[0065] Specifically, after obtaining the converted third-party system identification information, the length of the third-party system identification information is determined, and when the length of the third-party system identification information is consistent with the first set length, the third-party system identification information is directly used as the final first identification information. When the length of the third-party system identification information is less than the first set length, the front of the third-party system identification information is padded with a set placeholder to obtain the first identification information whose length is consistent with the first set length.
[0066] In a possible embodiment, the first set length provided in this embodiment is determined based on the maximum value of the third-party system identification information in the authorization system. The number accommodated by the first set length must be greater than or equal to the maximum number of third-party systems (that can be accommodated), that is, the growth of the third-party system identification information needs to be measured. More specifically, the first set length is determined based on the number of digits of the maximum value of the third-party system identification information in the set base.
[0067] For example, assuming that the maximum value of the third-party system identification information is limited to 1 billion, and the base is set to 64, the first set length is set to 5 bits (5 bytes). At this time, the third-party systems in the decimal system can reach a maximum of 64^5=1073741824, which meets the maximum value requirement of the third-party system identification information. Furthermore, when the length of the third-party system identification information after the conversion is less than 5 bits, the front of the third-party system identification information is padded with a placeholder. For example, if the third-party system identification information S1=DA5 after the conversion is less than 5 bits, the front of the third-party system identification information is padded with a placeholder 0, and the final first identification information is determined to be S1=00DA5.
[0068] S204: Acquire user identification information from the internal system.
[0069] S205: Determine a binary number of the user identification information, and convert the user identification information from the binary number to a set number system, wherein the number of digits of the set number system is greater than the number of digits of the binary number system.
[0070] Specifically, after obtaining the user identification information, the binary number used by the user identification information is determined. When the binary number is consistent with the set system, jump to step S206, and there is no need to convert the system of the user identification information. When the binary number is not necessarily the same as the set system, the user identification information is converted from the binary number to the set system. Generally, the number of digits of the set system (such as hexadecimal, 32-decimal, 64-decimal, etc.) is greater than the number of digits of the binary number (such as decimal), so that the user identification information is converted into a shorter string. For example, the binary number of the user identification information is decimal, the set system is 64-decimal, and the obtained user identification information S2=1234567, then after the user identification information is converted from decimal to 64-decimal, the user identification information is finally obtained. The user identification information S2=EtaH. It can be understood that after the user identification information is converted into a shorter string, the number of digits occupied by it is less, and the number of users can be taken up, while reducing the occupation of data storage space, facilitating data management.
[0071] S206: Convert the converted user identification information into second identification information of a second set length.
[0072] After obtaining the converted user identification information, it is determined whether the user identification information needs to be padded according to the comparison between the length of the user identification information and the second set length. Based on this, the method of converting the converted user identification information into the second identification information of the second set length provided by this solution includes steps S2061-S2062:
[0073] S2061: When the length of the user identification information after the conversion is consistent with the second set length, use the user identification information as the second identification information.
[0074] S2062: When the length of the user identification information after the conversion is less than the second set length, the user identification information is padded with a set placeholder to obtain second identification information whose length is consistent with the second set length.
[0075] Specifically, after obtaining the converted user identification information, the length of the user identification information is determined, and when the length of the user identification information is consistent with the second set length, the user identification information is directly used as the final second identification information. When the length of the user identification information is less than the second set length, the front of the user identification information is padded with a set placeholder to obtain the second identification information whose length is consistent with the second set length.
[0076] In a possible embodiment, the second set length provided in this embodiment is determined based on the maximum value of the user identification information in the internal system. The number accommodated by the second set length must be greater than or equal to the maximum number of (accommodable) users, that is, the growth of user identification information needs to be measured. More specifically, the second set length is determined according to the number of digits of the maximum value of the user identification information in the set base.
[0077] For example, assuming that the maximum value of the user identification information is limited to 900 billion, and the base is set to 64, the second set length is set to 7 bits (7 bytes). At this time, the third-party system in the decimal system can reach a maximum of 64^7=4398046511104, which meets the maximum value requirement of the user identification information. Furthermore, when the length of the user identification information after the conversion is less than 75 bits, the front of the user identification information is padded with a placeholder. For example, if the user identification information S2=EtaH after the conversion is less than 7 bits, the front of the user identification information is padded with a placeholder 0, and the second identification information is finally determined to be S2=000EtaH.
[0078] S207: Generate third identification information of a third set length according to the first identification information and the second identification information.
[0079] S208: Encrypt the third identification information to obtain encrypted identification information of a fourth set length, and determine the encrypted identification information as the user unique identification.
[0080] In one possible embodiment, the encryption algorithm for encrypting the third identification information is an AES (Advanced Encryption Standard) encryption algorithm, wherein the encryption method of the AES encryption algorithm can be AES, CBC, PKCS5Padding, etc. Optionally, the encryption key in the AES encryption algorithm is set to 16 bits, and the encryption vector is set to 16 bits. It can be understood that since the plaintext (the third identification information) encrypted by AES is a fixed-length string, the ciphertext (i.e., the fourth set number of bits) after AES encryption will also be a fixed-length string. In one possible embodiment, the fourth set number of bits is set to 22 bytes, and the third set number of bits of the third identification information does not exceed 15 bytes, so as to ensure that the encrypted identification information obtained after the third identification information is encrypted is a fixed-length 22 bytes, reducing the excessive space occupied in the subsequent data storage management due to the excessive length of the encrypted identification information, and relieving the pressure of data management.
[0081] Exemplarily, assuming that the server performs authorization management of third-party systems and users based on the OAuth2.0 authorization and authentication system, the server records the third-party system identification information corresponding to each third-party system in the authorization system, and records the user identification information corresponding to each user in the internal system. The server extracts the third-party system identification information S1 (12345) of the third-party system and the user identification information S2 (1234567) of the user from the authorization system, and converts the third-party system identification information S1 and the user identification information S2 into 64-base, obtaining the converted third-party system identification information S1 (DA5) and user identification information S2 (EtaH), and after using placeholders for positioning, finally obtains the third-party system identification information S1 (00DA5) and user identification information S2 (000EtaH). Further, the server concatenates the third-party system identification information S1 and the user identification information S2 to obtain the third identification information X (00DA5000EtaH) of the third set length (12 bits), and performs AES encryption on the third identification information X to obtain the encrypted identification information X0 (l7T5xGIv2JdbkQMHE / XY+w==) of the fourth set length, and uses the encrypted identification information X0 as the user unique identification (OpenID). The server saves the user unique identification (OpenID) and the third-party system corresponding to the user unique identification OpenID (l7T5xGIv2JdbkQMHE / XY+w==), and authorizes the user unique identification OpenID to the third-party system.
[0082] When the third-party system needs to obtain user information, it sends an information acquisition request to the server based on the user's unique identifier OpenID. The server decrypts the user's unique identifier OpenID based on the set AES decryption algorithm to obtain the third identification information X, and extracts the user identification information S2 from the third identification information X based on the third-party system identification information S1 of the third-party system, further determines the user identification information based on the user identification information S2, and sends the response user information to the third-party system based on the information acquisition request of the third-party system. Since the generated user unique identifier carries the third-party system identification information and the user identification information, it can be achieved that the user unique identifiers of the same user obtained by different third-party systems are different, effectively isolating the user authorization management between different third-party systems, improving the security protection of user privacy, and effectively solving the technical problem in the prior art that the server directly sends the user ID as OpenID to the third-party system, which is not conducive to the protection of user privacy security.
[0083] In the above, by respectively obtaining the third-party system identification information of the third-party system and the user identification information of the user from the authorization system and the internal system, and generating the third identification information of the third set digit according to the third-party system identification information and the user identification information, the third identification information is encrypted to obtain the encrypted identification information of the fourth set digit, and the encrypted identification information is used as the user unique identification of the user, the user unique identification can be sent to the third-party system for authorization management. Since the generated user unique identification carries the third-party system identification information and the user identification information, it can be realized that the user unique identification of the same user obtained by different third-party systems is different, effectively isolating the user authorization management between different third-party systems, and improving the security protection of user privacy. And the third-party system identification information and the user identification information are converted into a shorter string by base conversion, the number of third-party systems and users is increased, and the occupation of data storage space is reduced, which is convenient for data management. The third-party system identification information and the user identification information are supplemented with placeholders to ensure that the third identification information before encryption is of fixed length, and the encrypted identification information of the fourth set length is obtained. By converting the long string of indefinite length into a fixed-length string, data management is convenient.
[0084] Figure 3 A schematic diagram of the structure of a user identification generating device provided in an embodiment of the present application is given. Figure 3 The user identification generation device includes a first identification acquisition module 31, a second identification acquisition module 32, an identification synthesis module 33 and a unique identification generation module 34.
[0085] Among them, the first identification acquisition module 31 is used to obtain the third-party system identification information from the authorization system, and convert the third-party system identification information into the first identification information of the first set length, and the authorization system records the third-party system identification information of each third-party system; the second identification acquisition module 32 is used to obtain the user identification information from the internal system, and convert the user identification information into the second identification information of the second set length, and the internal system records the user identification information of each user; the identification synthesis module 33 is used to generate the third identification information of the third set length according to the first identification information and the second identification information; the unique identification generation module 34 is used to encrypt the third identification information to obtain the encrypted identification information of the fourth set length, and use the encrypted identification information as the open user unique identification authorized to the third-party system in the open authorization agreement.
[0086] In the above, by respectively obtaining the third-party system identification information of the third-party system and the user identification information of the user from the authorization system and the internal system, and generating the third identification information of a third set number of digits according to the third-party system identification information and the user identification information, the third identification information is encrypted to obtain the encrypted identification information of a fourth set number of digits, and the encrypted identification information is used as the user's unique identification. The user's unique identification can be sent to the third-party system for authorization management. Since the generated user's unique identification carries the third-party system identification information and the user's identification information, it can be achieved that the user's unique identification of the same user obtained by different third-party systems is different, which effectively isolates the user authorization management between different third-party systems and improves the security protection of user privacy.
[0087] The embodiment of the present application also provides a user identification generation device, which can integrate the user identification generation apparatus provided in the embodiment of the present application. Figure 4 Schematic diagram of a user identification generating device provided in an embodiment of the present application. Figure 4 The user identification generation device includes: an input device 43, an output device 44, a memory 42 and one or more processors 41; the memory 42 is used to store one or more programs; when the one or more programs are executed by the one or more processors 41, the one or more processors 41 implement the user identification generation method provided in the above embodiment. The input device 43, the output device 44, the memory 42 and the processor 41 can be connected by a bus or other means. Figure 4 The example of connecting through bus is taken in the following.
[0088] The memory 42, as a computing device readable storage medium, can be used to store software programs, computer executable programs and modules, such as the program instructions / modules corresponding to the user identification generation method described in any embodiment of the present application (for example, the first identification acquisition module 31, the second identification acquisition module 32, the identification synthesis module 33 and the unique identification generation module 34 in the user identification generation device). The memory 42 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application required for at least one function; the storage data area may store data created according to the use of the device, etc. In addition, the memory 42 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some instances, the memory 42 may further include a memory remotely arranged relative to the processor 41, and these remote memories may be connected to the device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network and a combination thereof.
[0089] The input device 43 may be used to receive input digital or character information and generate key signal input related to user settings and function control of the device. The output device 44 may include a display device such as a display screen.
[0090] The processor 41 executes the software programs, instructions and modules stored in the memory 42 to execute various functional applications and data processing of the device, that is, to implement the above-mentioned user identification generation method.
[0091] The user identification generation apparatus, device and computer provided above can be used to execute the user identification generation method provided in any of the above embodiments, and have corresponding functions and beneficial effects.
[0092] An embodiment of the present application also provides a storage medium containing computer executable instructions, which, when executed by a computer processor, are used to execute a user identification generation method as provided in the above embodiment, the user identification generation method comprising: obtaining third-party system identification information from an authorization system, and converting the third-party system identification information into first identification information of a first set length; obtaining user identification information from an internal system, and converting the user identification information into second identification information of a second set length; generating third identification information of a third set length based on the first identification information and the second identification information; encrypting the third identification information to obtain encrypted identification information of a fourth set length, and determining the encrypted identification information as a unique user identifier.
[0093] Storage medium - any of various types of memory devices or storage devices. The term "storage medium" is intended to include: installation media, such as CD-ROM, floppy disk or tape device; computer system memory or random access memory, such as DRAM, DDR RAM, SRAM, EDO RAM, Rambus RAM, etc.; non-volatile memory, such as flash memory, magnetic media (such as hard disk or optical storage); registers or other similar types of memory elements, etc. Storage media may also include other types of memory or combinations thereof. In addition, the storage medium may be located in the first computer system in which the program is executed, or may be located in a different second computer system, which is connected to the first computer system via a network (such as the Internet). The second computer system can provide program instructions to the first computer for execution. The term "storage medium" may include two or more storage media that may reside in different locations (for example, in different computer systems connected by a network). The storage medium may store program instructions (for example, embodied as a computer program) that can be executed by one or more processors.
[0094] Of course, the storage medium containing computer executable instructions provided in the embodiment of the present application is not limited to the user identification generation method described above, and the computer executable instructions can also execute related operations in the user identification generation method provided in any embodiment of the present application.
[0095] The user identification generation apparatus, device and storage medium provided in the above embodiments can execute the user identification generation method provided in any embodiment of the present application. For technical details not described in detail in the above embodiments, please refer to the user identification generation method provided in any embodiment of the present application.
[0096] The above are only preferred embodiments of the present application and the technical principles used. The present application is not limited to the specific embodiments described herein, and various obvious changes, readjustments and substitutions that can be made by those skilled in the art will not deviate from the scope of protection of the present application. Therefore, although the present application is described in more detail through the above embodiments, the present application is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present application, and the scope of the present application is determined by the scope of the claims.
Claims
1. A method for generating a user identification, It is characterized in that include: Acquire third-party system identification information from the authorization system, and convert the third-party system identification information into first identification information of a first set number of digits; Acquire user identification information from the internal system, and convert the user identification information into second identification information with a second set number of digits; Generate third identification information of a third set number of bits according to the first identification information and the second identification information; The third identification information is encrypted to obtain encrypted identification information of a fourth set number of digits, and the encrypted identification information is determined as the user's unique identification.
2. The method for generating a user identification according to claim 1, It is characterized in that The converting the third-party system identification information into first identification information having a first set number of digits includes: Determine a first base of the third-party system identification information, and convert the third-party system identification information from the first base to a set base, wherein the number of digits of the set base is greater than the number of digits of the first base; The third-party system identification information after the conversion is converted into first identification information of a first set number of digits.
3. The method for generating a user identification according to claim 2, It is characterized in that The converting the converted third-party system identification information into first identification information of a first set number of digits includes: When the number of digits of the third-party system identification information after the conversion is consistent with the first set number of digits, using the third-party system identification information as the first identification information; When the number of digits of the third-party system identification information after conversion is less than the first set number of digits, the third-party system identification information is supplemented with a set placeholder to obtain first identification information with the same number of digits as the first set number of digits.
4. The method for generating a user identification according to claim 1, It is characterized in that The converting the user identification information into second identification information of a second set number of digits comprises: Determine a binary number of the user identification information, and convert the user identification information from the binary number to a set number system, wherein the number of digits of the set number system is greater than the number of digits of the binary number system; The user identification information after the conversion is converted into second identification information of a second set number of digits.
5. The method for generating a user identification according to claim 4, It is characterized in that The converting the converted user identification information into second identification information of a second set number of digits includes: When the number of digits of the user identification information after the conversion is consistent with the second set number of digits, the user identification information is used as the second identification information; When the number of digits of the user identification information after the conversion is less than the second set number of digits, the user identification information is supplemented with a set placeholder to obtain second identification information with the same number of digits as the second set number of digits.
6. The method for generating a user identification according to claim 1, It is characterized in that The first set number of digits is determined based on the maximum value of the third-party system identification information in the authorization system, and the second set number of digits is determined based on the maximum value of the user identification information in the internal system.
7. The method for generating a user identification according to claim 1, It is characterized in that The step of generating third identification information having a third set number of bits according to the first identification information and the second identification information includes: According to the set series connection strategy, the first identification information and the second identification information are connected in series to obtain the third identification information of a third set number of bits.
8. A user identification generating device, It is characterized in that It includes a first identification acquisition module, a second identification acquisition module, an identification synthesis module and a unique identification generation module, wherein: The first identification acquisition module is used to acquire the third-party system identification information from the authorization system, and convert the third-party system identification information into first identification information of a first set number of digits, wherein the authorization system records the third-party system identification information of each third-party system; The second identification acquisition module is used to acquire user identification information from an internal system and convert the user identification information into second identification information of a second set number of digits, wherein the internal system records the user identification information of each user; The identification synthesis module is used to generate third identification information of a third set number of bits according to the first identification information and the second identification information; The unique identification generating module is used to encrypt the third identification information to obtain encrypted identification information of a fourth set number of bits, and determine the encrypted identification information as the user's unique identification.
9. A user identification generating device, It is characterized in that include: memory and one or more processors; The memory is used to store one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the user identification generation method according to any one of claims 1 to 7.
10. A storage medium containing computer executable instructions, It is characterized in that The computer executable instructions are used to execute the user identification generation method according to any one of claims 1 to 7 when executed by a computer processor.
Citation Information
Patent Citations
Method, device and system used for processing processed object
CN104063789A
User information obtaining and unifying method and device and electronic equipment
CN111182015A
Data processing method and device thereof, equipment and storage medium
CN113099437A
Method, apparatus and device for processing uniform identifier of user, and storage medium
WO2020238364A1
