CN114900490A - Identification information generation method, system, equipment and storage medium - Google Patents

Identification information generation method, system, equipment and storage medium Download PDF

Info

Publication number
CN114900490A
CN114900490A CN202210351511.2A CN202210351511A CN114900490A CN 114900490 A CN114900490 A CN 114900490A CN 202210351511 A CN202210351511 A CN 202210351511A CN 114900490 A CN114900490 A CN 114900490A
Authority
CN
China
Prior art keywords
information
random number
identifier
identification
identification information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202210351511.2A
Other languages
Chinese (zh)
Other versions
CN114900490B (en
Inventor
何俊华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Wangxing Information Technology Co ltd
Original Assignee
Guangzhou Wangxing Information Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Wangxing Information Technology Co ltd filed Critical Guangzhou Wangxing Information Technology Co ltd
Priority to CN202210351511.2A priority Critical patent/CN114900490B/en
Publication of CN114900490A publication Critical patent/CN114900490A/en
Application granted granted Critical
Publication of CN114900490B publication Critical patent/CN114900490B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/04Real-time or near real-time messaging, e.g. instant messaging [IM]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/146Markers for unambiguous identification of a particular session, e.g. session cookie or URL-encoding

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The embodiment of the application discloses a method, a system, equipment and a storage medium for generating identification information. According to the technical scheme provided by the embodiment of the application, the third party account identification or the input information of the current user is determined as the first identification by acquiring the third party account identification of the current user or acquiring the input information of the current user; inquiring a pre-constructed random number sequence, extracting a specified random number, and determining the specified random number as a second identifier; and combining the first identification and the second identification to generate identification information of the current user. By adopting the technical means, the uniqueness of the identification information is guaranteed through the random numbers appointed by the random number sequence. And the information is displayed through the third-party account identification of the user or the input information, so that the requirement of the user on personalized setting is met, the significance of the identification information is guaranteed, and the personalized generation effect of the identification information is optimized.

Description

Identification information generation method, system, equipment and storage medium
Technical Field
The embodiment of the application relates to the technical field of computers, in particular to a method, a system, equipment and a storage medium for generating identification information.
Background
Currently, in application scenarios of various social software, user identification information (such as a user nickname) is used as an important user attribute, so that a user can well indicate the identity of the user in interactive behaviors such as paying attention to friends, giving comments, giving praise to contents, giving gifts and the like. So as to better communicate with each other and promote the social relationship between the two parties. Generally, the identification information needs to be unique to avoid the presence of a large number of users with the same nickname, resulting in a confusing software application environment. Thus, when a nickname is created or autonomously modified by a user, the system provides a random combination of letters and numeric symbols to assist in generating a new nickname to avoid homonym conflicts between identifying information.
However, the existing identification information generated based on the random combination of letters and numerical symbols is difficult to display the associated information required by the user, and cannot meet the personalized requirements of the user. And is difficult to memorize and use for communication, and lacks significance. Moreover, the randomly combined identification information has the possibility of same-name conflict, and the uniqueness of the identification information cannot be guaranteed.
Disclosure of Invention
The embodiment of the application provides an identification information generation method, an identification information generation system, identification information generation equipment and a storage medium, which can guarantee the uniqueness of identification information, improve the significance of the identification information, meet the personalized setting requirements of users and solve the technical problem that the identification information is difficult to display user requirement information.
In a first aspect, an embodiment of the present application provides an identification information generating method, including:
acquiring a third party account identifier of a current user or acquiring input information of the current user, and determining the third party account identifier or the input information as a first identifier;
inquiring a pre-constructed random number sequence, extracting a specified random number, and determining the specified random number as a second identifier;
and combining the first identification and the second identification to generate identification information of the current user.
In a second aspect, an embodiment of the present application provides an identification information generating system, including:
the acquisition module is configured to acquire a third party account identifier of a current user or acquire input information of the current user, and determine the third party account identifier or the input information as a first identifier;
the query module is configured to query a pre-constructed random number sequence, extract a specified random number and determine the specified random number as a second identifier;
and the generating module is configured to combine the first identifier and the second identifier to generate the identifier information of the current user.
In a third aspect, an embodiment of the present application provides an identification information generating apparatus, including:
a memory and one or more processors;
the memory configured 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 are caused to implement the identification information generation method according to the first aspect.
In a fourth aspect, embodiments of the present application provide a storage medium containing computer-executable instructions that, when executed by a computer processor, are configured to perform the identification information generation method according to the first aspect.
In a fifth aspect, the present application provides a computer program product, which contains instructions that, when executed on a computer or a processor, cause the computer or the processor to execute the identification information generating method according to the first aspect
The method comprises the steps of determining a third party account identifier or input information as a first identifier by acquiring the third party account identifier of a current user or acquiring the input information of the current user; inquiring a pre-constructed random number sequence, extracting a specified random number, and determining the specified random number as a second identifier; and combining the first identification and the second identification to generate identification information of the current user. By adopting the technical means, the uniqueness of the identification information is guaranteed through the random numbers appointed by the random number sequence. And the information is displayed through the third-party account identification of the user or the input information, so that the requirement of the user on personalized setting is met, the significance of the identification information is guaranteed, and the personalized generation effect of the identification information is optimized.
Drawings
Fig. 1 is a flowchart of an identification information generation method provided in an embodiment of the present application;
fig. 2 is a schematic diagram of a gray code sequence provided in an embodiment of the present application;
FIG. 3 is a flow chart of the determination of the second identifier in the embodiment of the present application;
FIG. 4 is a flow chart of generation of identification information in an embodiment of the present application;
FIG. 5 is a schematic diagram of a user registration interface in an embodiment of the application;
FIG. 6 is a schematic diagram of an identification information modification interface in an embodiment of the present application;
fig. 7 is a schematic structural diagram of an identification information generation system according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of an identification information generating device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, specific embodiments of the present application will be described in detail with reference to the accompanying drawings. It is to be understood that the specific embodiments described herein are merely illustrative of the application and are not limiting of the application. It should be further noted that, for the convenience of description, only some but not all of the matters relating to the present application are shown in the drawings. Before discussing exemplary embodiments in more detail, it should be noted that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart may describe the operations (or steps) as a sequential process, many of the operations can be performed in parallel, concurrently or simultaneously. In addition, the order of the operations may be re-arranged. The process may be terminated when its operations are completed, but may have additional steps not included in the figure. The processes may correspond to methods, functions, procedures, subroutines, and the like.
The identification information generation method aims to ensure that the identification information contains the relevant information required by the user while the uniqueness of the user identification information is ensured by combining a third-party user identification or user input information with an appointed random number, so that the personalized setting requirement of the user is met, and the significance of the identification information is ensured.
In practical application scenarios, the identification information is allowed to be modified autonomously by the user, but generally cannot be duplicated with the identification information already on the line. Before the user modifies or creates the identification information, the system allocates a preset identification information as a reference for the user to select and use.
When the system generates the identification information, the uniqueness of the identification information needs to be ensured. That is, the identification information must be unique, otherwise, the line will be flooded with a large number of users with the same identification which cannot be distinguished, and the application environment will be confused. For this purpose, the existing identification information generation method uses a random combination of alphanumeric symbols or combines user equipment information to construct user identification information. However, these methods do not include the related information of the current user, and are difficult to satisfy the personalized requirements of the user, and the random alphanumeric symbol combination has no practical meaning, is difficult to memorize, and lacks significance.
In addition, a crawler program is used for crawling a large amount of data to construct an identification information base, and then a mode of randomly selecting and distributing identification information from the identification information base is adopted. However, the identification information library consumes a large amount of storage space at the time of initial construction, and the random allocation of identification information, although having a fixed meaning to the identification information itself, may not be relevant to the user. Assigning masculinized identification information to a female user, for example, can affect the user's nickname setting experience.
Therefore, the identification information generation method provided by the embodiment of the application is provided to solve the technical problem that the identification information is difficult to display the user requirement information.
Example (b):
fig. 1 shows a flowchart of an identification information generating method provided in an embodiment of the present application, where the identification information generating method provided in this embodiment may be executed by an identification information generating device, the identification information generating device may be implemented in a software and/or hardware manner, and the identification information generating device may be formed by two or more physical entities or may be formed by one physical entity. Generally, the identification information generating device may be a computing device such as a system backend, a server host, or the like.
The following description will be given taking the identification information generation apparatus as an example of a main body that executes the identification information generation method. Referring to fig. 1, the identification information generating method specifically includes:
s110, acquiring a third party account identifier of the current user or acquiring input information of the current user, and determining the third party account identifier or the input information as the first identifier.
When the identification information is generated, the user identification information is constructed by combining the third-party account identification of the user or the input information of the user and the appointed random number. The identification information constructed in the way can contain user associated information by acquiring the third-party account identification or the user input information, and the personalized setting requirement of the user identification information is met.
Specifically, for a scenario of obtaining a third party account identifier of a current user, in the embodiment of the present application, when the current user performs an account registration operation, the third party account identifier of the current user is obtained in response to the account registration operation; and detecting the specified information of the third party account identifier, and screening out the specified information.
It will be appreciated that since many application products are registered users are registered via third party accounts. And registering an account number of another application product by using a third party account such as a mailbox account, a WeChat account and the like. Based on the characteristics, when the current user registers an account, the embodiment of the application intercepts the part of information through the third-party account identifier (such as a mailbox name, an account nickname and the like) used by the current user, defines the part of information as the first identifier, and is used for generating the identification information of the subsequent user.
In addition, in order to simplify the first identification information and remove some information without special meaning or with small meaning, the application may further detect the specific information of the third party account identification, and then remove the specific information. The specified information may be emoticons, illegal text, symbols, and the like. By pre-specifying the information to be screened out, the third party account identifier can be adaptively screened out after being acquired subsequently.
For the scenario of obtaining the input information of the current user, the embodiment of the application responds to the identification modification operation when the current user performs the identification modification operation, and obtains the input information of the current user.
It can be understood that when the user modifies the identification information, the part of the information input by the user in real time is necessarily the part of the information that is required by the user to create the identification information currently. The part of the input information is also the information which is required by the user and has significance. The embodiment of the present application intercepts this part of input information before the user submits it, and also uses this input information as the first identifier for the generation of the subsequent user identification information.
It should be noted that, in the scenario of modifying the identification information by the user or registering the user, the user is required to perform the user identification creating operation (e.g., creating a user nickname). In order to optimize the creation experience of the user identifier, in the embodiment of the application, when the user registers or modifies the identifier information, the first identifier is acquired, and the identifier information is generated by combining the second identifier. And then the identification information is provided for the client terminal which is registering the user or modifying the identification information to display so as to assist the user who is creating the user identification currently and provide reference for creating the user identification. When the user identification is created, the user identification can be efficiently created by clicking and selecting the identification information as the user identification, and the user interaction experience is improved.
S120, inquiring a pre-constructed random number sequence, extracting a specified random number, and determining the specified random number as a second identifier.
Specifically, in order to ensure the uniqueness of the identification information, the embodiment of the application ensures that the identification information does not have homonymy conflicts by adding a random number into the identification information. When the identification information is generated, a random number is determined from a pre-constructed random number sequence by inquiring, and the random number is determined as a second identification. To subsequently generate the identification information based on the first identification and the second identification.
Optionally, in the embodiment of the present application, a pre-constructed random number sequence is queried according to the first identifier, the random number sequence is pre-constructed corresponding to the first identifier, and the random number sequence is a gray code number sequence. Before that, the identification information generation device constructs corresponding random number sequences corresponding to different first identifications in advance so as to further improve the uniqueness of the identification information and avoid the situation that when all the identification information shares the same random number sequence, the second identification of the identification information is too long and the same-name conflict is easy to occur.
Since in a number set, the selection of numbers in the number set is performed in a certain order in order to ensure that the currently selected number has not been selected before. Therefore, the embodiment of the present application sequentially selects the designated random number each time the random number is selected from the random number sequence, so as to ensure that the currently selected random number is not selected before.
Illustratively, when the current set of numbers ranges from 0 to 99, the numbers are ordered in the order of 0, 1, 2, 3. Then, in the sequence, sequence (index) is index (0 ≦ index < sequence _ length ≦ 100). Where index denotes a numeric position, sequence denotes a number series, and sequence _ length denotes a number series length. Then if the last digit sequence was selected (40), then sequence is selected (41) when the designated random number selection is currently made. Because the rule of selecting random numbers each time by the sequential sequence is too obvious, the second identifiers selected twice in front and back based on the first identifiers are increasing numbers, and thus the generated identification information is too similar and traceable. The second identifier generated based on the same first identifier is sequentially increased in a short time, so that the generated identifier information is relatively similar, and the interaction experience of the user is influenced. Based on this, the present application uses gray code sequence, and the sequence arrangement form is shown in fig. 2 by taking gray code sequences from 0 to 127 as an example. The Gray code sequence in various arrangement forms is used for changing the sequencing mode of the numbers in the sequence, so that the sequencing of the numbers in the sequence is random, and the random numbers selected in a short time before and after the random numbers do not increase in sequence.
Further, referring to fig. 3, the extracting a specified random number and determining the specified random number as a second identifier in the embodiment of the present application includes:
s1201, determining first position information of the random number used last time in the random number sequence;
and S1202, determining second position information based on the first position information and the set step information, extracting a specified random number from the second position information and determining the random number as a second identifier.
Specifically, by arranging the numbers in the number set into an ordered sequence of numbers, the numbers at any position index of the sequence can be represented by "sequence (index)", which are in one-to-one correspondence. Then, when the random number is selected, if the random number selected last time is "sequence (index)", that is, the first location information is "index". Then, when the currently designated random number is selected, the set step length information is added on the basis of the first position information "index", the obtained position information is defined as second position information, and the random number is selected from the second position information as a second identifier, so that the number selected each time can be ensured not to be repeated.
Based on the gray code sequence, it can be seen that although the regularity is not obvious in general view, the sequence of numbers can be found to be sorted from small to large, and then from large to small in an equal rule. And the short sequence observation narrowed down to it, the similarity of the numbers was still higher. For this reason, the embodiment of the present application introduces the concept of setting step size information step. Changing the currently selected designated random number into 'sequence (index + step)', wherein 0 is not more than index < sequence _ length, index represents a digital position, sequence represents a number sequence, and sequence _ length represents a number sequence length.
For example, when the current random number is selected with the set step information being 1. The random number "sequence (index + 1)" at the second location information "index + 1" is directly selected. The random number "sequence (index + 1)" is used as the second identifier, so that the uniqueness of the second identifier can be ensured. In order to avoid high similarity between several numbers in a small range, the setting step information may be set to a large value. For example, when the current random number is selected with the set step information being 8. The random number "sequence (index + 8)" at the second location information "index + 8" is directly selected. The random number "sequence (index + 1)" is used as the second identifier, so that the uniqueness of the second identifier can be ensured. The second position information can be determined by combining the set step length information only by recording the first position information 'index' of the random number selected last time each time, and the random number of the second position information is extracted as the second identifier.
In addition, the determining the second position information based on the first position information and the setting step information further comprises: and when the position of the first position information plus the set step length information exceeds the sequence length of the random sequence, adding the set step length information to the first position information, and performing modulo processing with the sequence length to obtain second position information, wherein the sequence length and the set step length information are prime numbers.
It is understood that, since the length of the sequence is fixed, each time the random number is selected, the random number is separated by a fixed step length, and if the value "index + step" of the first location information plus the set step length information exceeds the length range of the sequence, the random numbers which are not selected in the sequence are used continuously. In the embodiment of the application, the first position information is added with the value 'index + step' of the set step length information to perform modulo processing on the sequence length _ length. A specified random number "sequence (next) at the second location information" is obtained. Where next (index, step)% sequence _ length. Every time the value 'index + step' of the first position information plus the set step length information exceeds the length range of the number sequence, the second position information is determined again in the random number sequence through the modulus processing until the number traversed is repeated. At this time, a new random number sequence can be created to ensure that the second identifier provided later is not duplicated.
It should be noted that, in selecting the set step length information "step", it is necessary to ensure that the set step length information "step" and the sequence _ length "are mutually prime numbers. Therefore, the second position information (i.e. the remainder after the modulus extraction) obtained after each modulus extraction process is not repeated with the position information selected before, so that the sequence can be traversed without repetition.
And S130, combining the first identification and the second identification to generate identification information of the current user.
Finally, based on the first identifier and the second identifier determined in the above steps S110 to S120, the embodiment of the present application integrates these two pieces of information to serve as the identifier information of the current user. Because the first identification comprises the third-party account identification or the input information and comprises the related information required by the user, the generation of the identification information can be ensured to meet the individual requirements of the user, and the significance of the identification information is ensured. And the second identification is selected by the random number sequence, so that the uniqueness of the generated identification information can be ensured. The uniqueness of the identification information is guaranteed, and meanwhile the personalized generation effect of the identification information is optimized.
Specifically, when the first identifier and the second identifier are combined, the first identifier is used as a prefix of the identifier information, and the second identifier is used as a suffix of the identifier information to be combined. It will be appreciated that based on this first identification, a meaningful portion of the identification information has been assigned. However, if the first identifier is directly used as the identification information, a large amount of identification information must be duplicated. For example, if the account identification information of different users in the third party platform may not be unique. Or when a certain hot spot appears, the user can actively input the same content to modify the nickname of the user. This may lead to a situation where the first identifier is duplicated.
Based on this, the embodiment of the present application takes the first identifier as the finally generated identifier information prefix. In order to solve the problem of uniqueness of the identification information, a designated random number (namely a second identification) is added as an identification information suffix, so that identification information which simultaneously guarantees uniqueness and meets user requirements and has significance is obtained. In practical application, the first identifier may also be used as a suffix of the identification information, and the second identifier may be used as a prefix of the identification information, so as to obtain the identification information by merging. According to the actual identification information generation requirement, the information merging can be performed by adaptively selecting the merging mode of the two, and the specific merging mode is not fixedly limited in the embodiment of the application and is not described herein repeatedly.
Optionally, after generating the identification information, the identification information generating device further updates the second location information to the first location information of the next query random number sequence. It will be appreciated that, in order to ensure that the next time the identification information is generated, the random number selected based on the random number sequence will not be repeated with the previously selected random number, resulting in a situation where the second identification is repeated. The first position information recorded in the random number sequence needs to be updated, the second position information of the random number selected at the time is updated to new first position information, so that when the second identifier is obtained next time, the random number sequence is inquired through the new first position information, and the random number at the position where the first position information and the set step length information (namely index + step) are added is selected as the second identifier.
Exemplarily, taking a scenario in which a user creates a nickname as an example, as shown in fig. 4, when the user registers an account or modifies the nickname, the client reports input information of the user when the nickname of a third party account or the nickname is modified to the identification information generating device in real time. The identification information generating device processes the received nickname of the third party account or input information when modifying the nickname based on a nickname service, and firstly processes the nickname or input information through a nickname prefix management service to obtain a first identification. The nickname prefix management service is responsible for processing the incoming nickname of the third-party account or inputting information to wait for processing text information, and screening out designated information from the nickname prefix management service, such as removing emoticons, numbers and other information with small significance, so as to obtain a nickname prefix (namely the first identifier). And then the nickname prefix is sent to a nickname suffix management service, the nickname suffix management service can inquire a random number column, the number column length, set step length information and first position information which are currently corresponding to the nickname prefix from a database according to the incoming nickname prefix, and then select a designated random number from a second position of the random number column by referring to the mode of the second identifier to be used as the nickname suffix. The nickname suffix is returned to the nickname service. The nickname service obtains the user nickname (namely identification information) by combining the nickname prefix and the nickname suffix, and returns the user nickname to the client.
Referring to fig. 5, if the user is performing the account registration operation at this time, a user nickname "helloxxx" is displayed on the user registration page. Where the nickname prefix "Hello" is the nickname of the third party account used when the current user was registered (i.e. the third party account identity). The nickname suffix "XXXX" is a designated random number that is selected based on the nickname prefix query random number sequence. The user selects the nickname through human-computer interaction, and the nickname of the user can be used as the nickname of the current user registered account, so that efficient account nickname setting is realized, and the user identification setting efficiency is improved. The method effectively assists the user in setting the user identification, and optimizes the interactive experience of setting the nickname of the registered account when the user registers.
On the other hand, referring to fig. 6, if the user is performing a nickname modification operation at this time. When the user inputs the information "Hello" while modifying the nickname, a user nickname "helloxxx" is displayed on the user registration page. The nickname prefix "Hello" is a first identification part obtained by information "Hello" input when the current user modifies the nickname. The nickname suffix "XXXX" is a designated random number (i.e., the second identification portion) that is selected based on the nickname prefix query random number sequence. The user selects the nickname through human-computer interaction, can quickly finish the modification of the nickname, and ensures the uniqueness of the nickname. Therefore, efficient user nickname setting is realized, and user identification setting efficiency is improved. Effectively assisting the user in setting the user identification and optimizing the interactive experience when the nickname of the user is modified.
Further, referring to FIG. 4, if the client confirms the nickname returned using the nickname service. The nickname service will also update the first location information of the nickname suffix management service to facilitate the subsequent selection of the random number in the random number sequence, avoiding the occurrence of repeated random number selection.
The third party account identifier or the input information is determined as the first identifier by acquiring the third party account identifier of the current user or acquiring the input information of the current user; inquiring a pre-constructed random number sequence, extracting a specified random number, and determining the specified random number as a second identifier; and combining the first identification and the second identification to generate identification information of the current user. By adopting the technical means, the uniqueness of the identification information is guaranteed through the random numbers appointed by the random number sequence. And the information is displayed through the third-party account identification of the user or the input information, so that the requirement of the user on personalized setting is met, the significance of the identification information is guaranteed, and the personalized generation effect of the identification information is optimized.
On the basis of the foregoing embodiment, fig. 7 is a schematic structural diagram of an identification information generation system provided in the present application. Referring to fig. 7, the identification information generating system provided in this embodiment specifically includes: an acquisition module 21, a query module 22 and a generation module 23.
The obtaining module 21 is configured to obtain a third party account identifier of the current user or obtain input information of the current user, and determine the third party account identifier or the input information as the first identifier;
the query module 22 is configured to query a pre-constructed random number sequence, extract a specified random number, and determine the specified random number as a second identifier;
the generating module 23 is configured to combine the first identifier and the second identifier to generate the identification information of the current user.
Specifically, the obtaining module 21 is configured to, when the current user performs an account registration operation, respond to the account registration operation, and obtain a third-party account identifier of the current user; and detecting the specified information of the third party account identifier, and screening out the specified information. And when the current user carries out identification modification operation, responding to the identification modification operation and acquiring the input information of the current user.
Specifically, the query module 22 is configured to query a pre-constructed random number sequence according to the first identifier, where the random number sequence is pre-constructed corresponding to the first identifier, and the random number sequence is a gray number sequence. Determining first position information of a random number used last time in the random number sequence; and determining second position information based on the first position information and the set step information, and extracting a specified random number from the second position information and determining the random number as a second identifier.
And when the position of the first position information plus the set step length information exceeds the sequence length of the random sequence, adding the set step length information to the first position information, and performing modulo processing with the sequence length to obtain second position information, wherein the sequence length and the set step length information are prime numbers.
Specifically, the generating module 23 is configured to combine the first identifier as a prefix of the identification information and the second identifier as a suffix of the identification information.
The third party account identifier or the input information is determined as the first identifier by acquiring the third party account identifier of the current user or acquiring the input information of the current user; inquiring a pre-constructed random number sequence, extracting a specified random number, and determining the specified random number as a second identifier; and combining the first identification and the second identification to generate identification information of the current user. By adopting the technical means, the uniqueness of the identification information is guaranteed through the random numbers appointed by the random number sequence. And the information is displayed through the third-party account identification of the user or the input information, so that the requirement of the user on personalized setting is met, the significance of the identification information is guaranteed, and the personalized generation effect of the identification information is optimized.
The identification information generation system provided by the embodiment of the application can be configured to execute the identification information generation method provided by the embodiment, and has corresponding functions and beneficial effects.
On the basis of the above practical example, an embodiment of the present application further provides an identification information generating apparatus, and with reference to fig. 8, the identification information generating apparatus includes: a processor 31, a memory 32, a communication module 33, an input device 34, and an output device 35. The memory 32, as a computer-readable storage medium, may be configured to store software programs, computer-executable programs, and modules, such as program instructions/modules corresponding to the identification information generation method described in any embodiment of the present application (for example, an acquisition module, a query module, and a generation module in the identification information generation system). The communication module 33 is configured to perform data transmission. The processor 31 executes various functional applications of the device and data processing by executing software programs, instructions, and modules stored in the memory, that is, implements the above-described identification information generation method. The input device 34 may be configured to receive input numeric or character information and to generate key signal inputs relating to user settings and function controls of the apparatus. The output device 35 may include a display device such as a display screen. The identification information generation device provided above may be configured to execute the identification information generation method provided in the above embodiments, and has corresponding functions and advantages.
On the basis of the above embodiments, the present application also provides a storage medium containing computer-executable instructions that, when executed by a computer processor, are configured to perform an identification information generation method, and the storage medium may be any of various types of memory devices or storage devices. Of course, the storage medium provided in the embodiments of the present application and containing computer-executable instructions is not limited to the identification information generation method described above, and may also perform related operations in the identification information generation method provided in any embodiments of the present application.
On the basis of the foregoing embodiments, the embodiments of the present application further provide a computer program product, where essentially, a part of or all or part of the technical solutions contributing to the prior art may be embodied in the form of a software product, and the computer program product is stored in a storage medium and includes several instructions to enable a computer device, a mobile terminal, or a processor therein to execute all or part of the steps of the identification information generation method according to the embodiments of the present application.

Claims (12)

1. An identification information generation method, comprising:
acquiring a third party account identifier of a current user or acquiring input information of the current user, and determining the third party account identifier or the input information as a first identifier;
inquiring a pre-constructed random number sequence, extracting a specified random number, and determining the specified random number as a second identifier;
and combining the first identification and the second identification to generate identification information of the current user.
2. The method for generating identification information according to claim 1, wherein the obtaining of the identification of the third party account of the current user includes:
when a current user performs account registration operation, responding to the account registration operation, and acquiring a third party account identifier of the current user;
and detecting the appointed information of the third party account identifier, and screening out the appointed information.
3. The method according to claim 1, wherein the acquiring input information of the current user includes:
and when the current user carries out identification modification operation, responding to the identification modification operation, and acquiring the input information of the current user.
4. The method according to claim 1, wherein the querying a pre-constructed random number sequence comprises:
and inquiring a random number sequence which is constructed in advance according to the first identifier, wherein the random number sequence is constructed in advance corresponding to the first identifier and is a Gray code sequence.
5. The method according to claim 4, wherein the extracting a specific random number and determining the specific random number as the second identifier includes:
determining first position information of a random number used once on the random number string;
and determining second position information based on the first position information and set step information, and extracting the specified random number from the second position information and determining the random number as the second identifier.
6. The method of generating identification information according to claim 5, wherein the determining second position information based on the first position information plus the set step information further comprises:
and when the position of the first position information added with the set step length information exceeds the sequence length of the random sequence, adding the set step length information to the first position information, and performing modulo processing on the sequence length to obtain the second position information, wherein the sequence length and the set step length information are prime numbers.
7. The method of generating identification information according to claim 5, further comprising, after generating the identification information of the current user:
and updating the second position information to the first position information of the random number sequence queried next time.
8. The method according to claim 1, wherein merging the first identifier and the second identifier includes:
and taking the first identification as a prefix of the identification information, and taking the second identification as a suffix of the identification information for combination.
9. An identification information generation system characterized by comprising:
the acquisition module is configured to acquire a third party account identifier of a current user or acquire input information of the current user, and determine the third party account identifier or the input information as a first identifier;
the query module is configured to query a pre-constructed random number sequence, extract a specified random number and determine the specified random number as a second identifier;
and the generating module is configured to combine the first identifier and the second identifier to generate the identifier information of the current user.
10. An identification information generation device characterized by comprising:
a memory and one or more processors;
the memory configured to store one or more programs;
when executed by the one or more processors, cause the one or more processors to implement the identification information generation method of any of claims 1-8.
11. A storage medium containing computer-executable instructions, which when executed by a computer processor are configured to perform the identification information generation method of any one of claims 1 to 8.
12. A computer program product comprising instructions which, when run on a computer or processor, cause the computer or processor to carry out the identification information generation method according to any one of claims 1 to 8.
CN202210351511.2A 2022-04-02 2022-04-02 Identification information generation method, system, equipment and storage medium Active CN114900490B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210351511.2A CN114900490B (en) 2022-04-02 2022-04-02 Identification information generation method, system, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210351511.2A CN114900490B (en) 2022-04-02 2022-04-02 Identification information generation method, system, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN114900490A true CN114900490A (en) 2022-08-12
CN114900490B CN114900490B (en) 2023-12-26

Family

ID=82715158

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210351511.2A Active CN114900490B (en) 2022-04-02 2022-04-02 Identification information generation method, system, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114900490B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7421395B1 (en) * 2000-02-18 2008-09-02 Microsoft Corporation System and method for producing unique account names
KR20090093370A (en) * 2008-02-29 2009-09-02 주식회사 엔씨소프트 Method of Registering User Indication Name Used for On-Line Service
CN103457954A (en) * 2013-09-11 2013-12-18 陈迪 Method and device for user password management
US20150379133A1 (en) * 2014-06-30 2015-12-31 Facebook, Inc. User Index with Nicknames
CN105577626A (en) * 2014-10-28 2016-05-11 祝永康 User name registration and use method, system and device
CN106943747A (en) * 2017-03-27 2017-07-14 网易(杭州)网络有限公司 Virtual role names recommend method, device, electronic equipment and storage medium
WO2019184120A1 (en) * 2018-03-29 2019-10-03 平安科技(深圳)有限公司 Account management method and apparatus, terminal device, and storage medium
CN111953477A (en) * 2019-05-15 2020-11-17 北京奇安信科技有限公司 Terminal equipment, generation method of identification token of terminal equipment and interaction method of client
CN113411268A (en) * 2021-05-24 2021-09-17 深圳市元征未来汽车技术有限公司 Data transmission method, data transmission device and electronic equipment

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7421395B1 (en) * 2000-02-18 2008-09-02 Microsoft Corporation System and method for producing unique account names
KR20090093370A (en) * 2008-02-29 2009-09-02 주식회사 엔씨소프트 Method of Registering User Indication Name Used for On-Line Service
CN103457954A (en) * 2013-09-11 2013-12-18 陈迪 Method and device for user password management
US20150379133A1 (en) * 2014-06-30 2015-12-31 Facebook, Inc. User Index with Nicknames
CN105577626A (en) * 2014-10-28 2016-05-11 祝永康 User name registration and use method, system and device
CN106943747A (en) * 2017-03-27 2017-07-14 网易(杭州)网络有限公司 Virtual role names recommend method, device, electronic equipment and storage medium
WO2019184120A1 (en) * 2018-03-29 2019-10-03 平安科技(深圳)有限公司 Account management method and apparatus, terminal device, and storage medium
CN111953477A (en) * 2019-05-15 2020-11-17 北京奇安信科技有限公司 Terminal equipment, generation method of identification token of terminal equipment and interaction method of client
CN113411268A (en) * 2021-05-24 2021-09-17 深圳市元征未来汽车技术有限公司 Data transmission method, data transmission device and electronic equipment

Also Published As

Publication number Publication date
CN114900490B (en) 2023-12-26

Similar Documents

Publication Publication Date Title
CN109039671B (en) Group message display method, device, terminal and storage medium
CN106470110B (en) Method and device for sending messages to multiple users in user list in group mode
CN110020086B (en) User portrait query method and device
CN108038165B (en) Information searching method, searching device, terminal equipment and server equipment
CN108898362A (en) Fill user contact&#39;s entry
CN108432200A (en) Allow to access of the limitation to user information while communication
CN104217150A (en) Method and device for calling application
CN107688733B (en) Service interface calling method, device, user terminal and readable storage medium
CN108460259B (en) Information processing method and device and terminal
CN111859368A (en) Weak password generation method, password detection method, device and electronic equipment
CN113031951B (en) Menu generation method, menu generation device, computer equipment and storage medium
CN111741104A (en) Method for determining response message, method for configuring response message, device, equipment and storage medium
CN112446736A (en) Click through rate CTR prediction method and device
CN111414191A (en) Gray scale publishing method and device for small program
CN113010255B (en) Interaction method and device based on binding session group and computer equipment
CN110619204A (en) Invitation code generation method and device, terminal equipment and storage medium
CN111641554B (en) Message processing method and device and computer readable storage medium
CN114900490A (en) Identification information generation method, system, equipment and storage medium
CN112527924A (en) Dynamically updated knowledge graph expansion method and device
CN109388970B (en) Data processing method and device
CN113138702B (en) Information processing method, device, electronic equipment and storage medium
CN111752885B (en) Method and device for processing reading authority in reading material
CN105988992A (en) Icon pushing method and device
CN113157249A (en) Identification number generation method and device, electronic equipment and storage medium
CN112182177A (en) User problem processing method and device, electronic equipment and storage medium

Legal Events

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