[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN108156273A - A kind of anonymous ID generation methods, device and electronic equipment - Google Patents

A kind of anonymous ID generation methods, device and electronic equipment Download PDF

Info

Publication number
CN108156273A
CN108156273A CN201711341189.0A CN201711341189A CN108156273A CN 108156273 A CN108156273 A CN 108156273A CN 201711341189 A CN201711341189 A CN 201711341189A CN 108156273 A CN108156273 A CN 108156273A
Authority
CN
China
Prior art keywords
anonymous
business processing
message digest
request
preset quantity
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201711341189.0A
Other languages
Chinese (zh)
Inventor
李桐
王博
陈先福
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing QIYI Century Science and Technology Co Ltd
Original Assignee
Beijing QIYI Century Science and 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 Beijing QIYI Century Science and Technology Co Ltd filed Critical Beijing QIYI Century Science and Technology Co Ltd
Priority to CN201711341189.0A priority Critical patent/CN108156273A/en
Publication of CN108156273A publication Critical patent/CN108156273A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/30Managing network names, e.g. use of aliases or nicknames
    • H04L61/3015Name registration, generation or assignment

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

An embodiment of the present invention provides a kind of anonymous ID generation methods, device and electronic equipments.Including:The business processing request that client is sent is received, the device id of the client corresponding device is carried in the business processing request;When business processing request is the request of anonymous business processing, unique anonymous ID is generated, and different for the anonymous ID of distinct device ID generations for the device id of the client corresponding device;Using the anonymous ID, ask to carry out business processing for the business processing.In the embodiment of the present invention, it is asked for anonymous business processing, anonymous ID is generated using idempotent algorithm to the device id of carrying, without being stored again to the correspondence of the device id and anonymous ID of client corresponding device, therefore, the memory space of server end is saved.

Description

A kind of anonymous ID generation methods, device and electronic equipment
Technical field
The present invention relates to technical field of information processing, and more particularly to a kind of anonymous ID, (Identification is used In the account number of identification identity) generation method, device and electronic equipment.
Background technology
With the fast development of computer technology, the type and quantity of application program are being on the increase, application market it is competing It strives also more and more fierce.In order to attract the experience of more users and participation, many application programs all allow anonymous to carry out a little It the mutual-action behaviors such as praises, comment on and forwards, and generate anonymous ID (Identification, for identifying the account number of identity), The mutual-action behavior information of anonymous ID and anonymous is preserved simultaneously, when anonymous accesses the application program again When, it can be according to the history interaction situation of anonymous ID and mutual-action behavior acquisition of information to the anonymous, so as to promote use It experiences at family.
At present, the prior art of generation anonymous ID uses is:Client is in the situation for not carrying out registered user's login Under, based on user's operation, the business processing request of device id of the generation comprising client corresponding device, and the business processing is asked It asks and is sent to server-side, it is corresponding with the device id using being created from by the way of increasing sequence after server-side receives business processing request Anonymous ID, and store the correspondence of the device id and anonymous ID.When client is sent again to server-side When business processing is asked, server-side then can find the corresponding anonymity of the device id according to the device id of client corresponding device User ID.
However, inventor has found in the implementation of the present invention, at least there are the following problems for the prior art:
With the accumulation of time, the data of server-side storage can be more and more, and correspondingly, data the space occupied can also be got over Come it is bigger, meanwhile, after anonymous replaces client corresponding device, the corresponding anonymous of used equipment ID that original uses ID may not be used again, but server-side is also stored with the correspondence of the device id and anonymous ID, therefore, meeting Cause the waste of server-side memory space.
Invention content
The embodiment of the present invention is designed to provide a kind of anonymous ID generation methods, device and electronic equipment, avoids Storage of the server end to device id and anonymous ID correspondences, to realize the purpose for saving server end memory space. Specific technical solution is as follows:
In a first aspect, an embodiment of the present invention provides a kind of anonymous ID generation methods, including:
The business processing request that client is sent is received, the client corresponding device is carried in the business processing request Device id;
When business processing request is the request of anonymous business processing, for setting for the client corresponding device Standby ID generates unique anonymous ID, and different for the anonymous ID of distinct device ID generations;
Using the anonymous ID, ask to carry out business processing for the business processing.
Further, the device id for the client corresponding device generates unique anonymous ID, including:
For the device id of the client corresponding device, message digest value is generated using Message Digest 5;It is described to disappear Cease the hexadecimal character that digest value is the first preset quantity position;
Shift operation is carried out according to the second preset quantity position of the first preset rules selection character from the message digest value, The anonymous ID is obtained, second preset quantity is not more than first preset quantity.
Further, described from the message digest value the second preset quantity position word is selected according to the first preset rules Symbol carries out shift operation, and after obtaining the anonymous ID, the method further includes:
According to other characters non-selected in the message digest value, anonymous title is obtained.
Further, described from the message digest value the second preset quantity position word is selected according to the first preset rules Symbol carries out shift operation, and after obtaining the anonymous ID, the method further includes:
Select a hexadecimal character in the message digest value according to the second preset rules, by selection this 16 System character is converted to binary-coded character, and based on last position in the binary-coded character, determines the anonymous Gender.
Further, first preset quantity can be 16, and second preset quantity can be 8.
Second aspect, an embodiment of the present invention provides a kind of business processing device, including:
Request receiving module, for receiving the business processing request of client transmission;The business processing request includes institute State the device id of client corresponding device;
Anonymous ID generation modules, when business processing request is the request of anonymous business processing, for institute The device id for stating client corresponding device generates unique anonymous ID, and for the anonymous ID of distinct device ID generations It is different;
Service Processing Module for using the anonymous ID, asks to carry out business processing for the business processing.
Further, the anonymous ID generation modules, the equipment specifically for being directed to the client corresponding device ID generates message digest value using Message Digest 5;The message digest value is the hexadecimal word of the first preset quantity position Symbol;And shift operation is carried out according to the second preset quantity position of the first preset rules selection character from the message digest value, it obtains To the anonymous ID, second preset quantity is not more than first preset quantity.
Further, the business processing device, further includes:
Anonymous title generation module, for being pressed from the message digest value in the anonymous ID generation modules Shift operation is carried out according to the second preset quantity position of the first preset rules selection character, after obtaining the anonymous ID, according to Non-selected 8 characters, obtain anonymous title in the message digest value.
Further, the business processing device, further includes:
Anonymous gender determining module, for being pressed from the message digest value in the anonymous ID generation modules Shift operation is carried out according to the second preset quantity position of the first preset rules selection character, after obtaining the anonymous ID, according to Second preset rules select a hexadecimal character in the message digest value, and the hexadecimal character is converted to two System character, and based on last position in the binary-coded character, determine the gender of the anonymous.
Further, first preset quantity can be 16, and second preset quantity can be 8.
The third aspect, an embodiment of the present invention provides a kind of electronic equipment, including processor, communication interface, memory and Communication bus, wherein, processor, communication interface, memory completes mutual communication by communication bus;
Memory, for storing computer program;
Processor, during for performing the program stored on memory, the step of realizing any of the above-described method for processing business.
Fourth aspect, the embodiment of the present invention additionally provide a kind of computer readable storage medium, described computer-readable to deposit Instruction is stored in storage media, when run on a computer so that computer performs any of the above-described business processing Method.
5th aspect, the embodiment of the present invention additionally provides a kind of computer program product for including instruction, when it is being calculated When being run on machine so that computer performs any of the above-described method for processing business.
In method for processing business provided in an embodiment of the present invention, in the carrying client institute for receiving client transmission It is first when business processing request is the request of anonymous business processing after the business processing request for belonging to the device id of equipment Unique anonymous ID first is generated to the device id of the client corresponding device, then reuses the anonymous ID, It asks to carry out business processing for the business processing.In the embodiment of the present invention, needing for the business processing received When request carries out business processing, if business processing request is asked for anonymous business processing, to the device id of carrying Generate unique anonymous ID so that the device id of carrying is different, then the anonymous ID generated is i.e. different, and for same Device id, the anonymous ID generated every time is identical, so without again to client corresponding device in the embodiment of the present invention The correspondence of device id and anonymous ID stored, can equally realize that the business processing for same device id makes It is identical anonymous ID, different anonymous ID is used for the business processing of distinct device ID, therefore, Save the memory space of server end.
Certainly, implement any of the products of the present invention or method it is not absolutely required at the same reach all the above excellent Point.
Description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, to embodiment or will show below There is attached drawing needed in technology description to be briefly described.
Fig. 1 is the flow diagram of method for processing business provided by one embodiment of the present invention;
Fig. 2 is the flow diagram of method for processing business that another embodiment of the present invention provides;
Fig. 3 is the structure diagram of business processing device provided by one embodiment of the present invention;
Fig. 4 is the structure diagram of business processing device that another embodiment of the present invention provides;
Fig. 5 is the structure diagram of electronic equipment provided by one embodiment of the present invention.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present invention, the technical solution in the embodiment of the present invention is carried out clear, complete Site preparation describes.
Fig. 1 is the flow diagram of method for processing business provided by one embodiment of the present invention, including:
Step 101, the business processing request that client is sent is received, client corresponding device is carried in business processing request Device id.
Step 102, when business processing request is the request of anonymous business processing, for setting for client corresponding device Standby ID generates unique anonymous ID, and different for the anonymous ID of distinct device ID generations.
Step 103, it using anonymous ID, asks to carry out business processing for business processing.
In method for processing business shown in FIG. 1 provided in an embodiment of the present invention, in the carrying for receiving client transmission After the business processing request of the device id of client corresponding device, when business processing request is asked for anonymous business processing When, unique anonymous ID is generated first against the device id of client corresponding device, then reuses anonymous ID, needle Business processing is asked to carry out business processing.In the embodiment of the present invention, need for receive business processing ask into During row business processing, if business processing request is asked for anonymous business processing, the device id of carrying is generated only One anonymous ID, and it is different for the anonymous ID of distinct device ID generations, i.e., so that the device id carried is different, then The anonymous ID of generation is difference, and for same device id, the anonymous ID generated every time is identical, so this hair Without being stored again to the correspondence of the device id and anonymous ID of client corresponding device in bright embodiment scheme, together Sample can realize that the business processing for same device id uses identical anonymous ID, for the industry of distinct device ID Business processing uses different anonymous ID, therefore, save the memory space of server end.
Below in conjunction with the accompanying drawings, method for processing business provided in an embodiment of the present invention, device and electronic equipment are carried out detailed Description.
As shown in Figure 2, another method for processing business provided in an embodiment of the present invention, specifically comprises the following steps:
Step 201, the business processing request that client is sent is received, client corresponding device is carried in business processing request Device id;
In this step, the business processing request that client is sent can be the logging request of user or to certain Content in such as is thumbed up, commented on and is forwarded at the request of mutual-action behaviors, here, not being restricted to business processing request.
In business processing request, include the device id of the client corresponding device, certain webpages can also be included To distinguish that user identity, progress session tracking store the encrypted data of process on the client, such as Cookie numbers According to Token characters can also be generated including server end, being stored in client, for carrying out client request verification String.The specifying information included in being asked for the business processing, this is not restricted.
Step 202, judge whether business processing request is the request of anonymous business processing.At anonymous business Reason request, enters step 203;It is asked if registered user's business processing, enters step 205.
In this step, judge whether business processing request is the request of anonymous business processing, be may be used such as lower section Method:It, can without other when business processing request bag contains the device id of client corresponding device as described in step 201 During for client request verification information, then it is assumed that business processing request is asked for anonymous business processing;Work as business Processing request bag contains except the device id of client corresponding device, also includes other and can be used for client request verification letter When ceasing (such as cookie information or Token information), then it is assumed that business processing request is asked for registered user's business processing.
Step 203, when business processing request is the request of anonymous business processing, for setting for client corresponding device Standby ID generates unique anonymous ID, and different for the anonymous ID of distinct device ID generations.
Further, in this step, unique anonymous ID is generated for the device id of client corresponding device, and It is different for the anonymous ID of distinct device ID generations, can specifically it include:
For the device id of client corresponding device, message digest value is generated using Message Digest 5;Message digest value Hexadecimal character for the first preset quantity position;
Shift operation is carried out according to the second preset quantity position of the first preset rules selection character from message digest value, is obtained Anonymous ID, the second preset quantity are not more than the first preset quantity.
Message Digest 5 to input data after encrypted operation, can obtain the output data of a regular length, master It is characterized in that ciphering process does not need to key, and can not be decrypted by encrypted data, only the same plaintext number of the input phase Identical ciphertext can be just obtained, also, when reusing identical input parameter, pass through according to by identical Message Digest 5 Total energy obtains identical result after the algorithm, that is to say, that Message Digest 5 can ensure to export the idempotence of result.
In this step, first by the device id of client corresponding device, by Message Digest 5, message digest value is obtained, The message digest value is the hexadecimal character of the first preset quantity position, and the first preset quantity herein can rule of thumb be set Fixed, in the present embodiment, rule of thumb, it is 16 that can take the first preset quantity.
First preset quantity is taken as 16, the accuracy and efficiency of Message Digest 5 can be taken into account, that is, is ensureing algorithm Under the premise of accuracy, efficiency is preferable.
Obtaining the hexadecimal message with the unique corresponding first preset quantity position of the device id of client corresponding device After digest value, a part of character can be selected to carry out shift operation from above-mentioned message digest value, select followed first pre- If rule can be:To ensure that the character after shifted operation is more than a certain fixed value (such as 10,000,000,000), and select above-mentioned 16 words First 8 in symbol or rear 8 or the word of fixed digit is selected from above-mentioned 16 characters in other orders Symbol, for the first preset rules, then this is not restricted.
Further, after anonymous ID is obtained, can also according in above-mentioned message digest value it is non-selected its His position character, obtains anonymous title.
Specifically, the user's name of anonymous can be:" in tourist+above-mentioned message digest value it is non-selected other Position character ", or:" part in tourist+above-mentioned message digest value in other non-selected characters ", for The concrete composition form that name in an account book claims, this is not restricted.
Anonymous title is set for anonymous, can intuitively be distinguished different anonymous, while Convenient for carrying out exchange and interdynamic between anonymous and other users.
It further, can also be default according to second after the user's name of anonymous ID and anonymous is obtained A hexadecimal character in rule selection message digest value, binary word is converted to by the hexadecimal character of selection Symbol, and based on last position in binary-coded character, determine the gender of anonymous.
In this step, determining the specific method of anonymous gender can be:First, in the eap-message digest of above-mentioned 16 A hexadecimal character (principle of selection is not restricted here) is selected in value, then, then is converted into binary-coded character, When last position of binary-coded character is 0, anonymous is determined as male, when last position of binary-coded character is 1, Anonymous is determined as women;Anonymous can also be determined as women when last position of binary-coded character is 0, When last position of binary-coded character is 1, anonymous is determined as male.The gender of the anonymous determined in this step It, might not be with using the anonymity of the client only with a kind of corresponding attribute information of the device id of client corresponding device User's is really that gender is identical.
When being subsequently that the anonymous distributes anonymous head portrait, since head portrait only distinguishes male and female, on The gender information for stating determining anonymous can be as the foundation for being subsequently anonymous distribution anonymous head portrait.
Step 204, it using anonymous ID, asks to carry out business processing for business processing.
In this step, in the device id according to client corresponding device, generate the anonymous ID with idempotence it Afterwards, anonymous ID can be used to carry out business processing, business processing herein can include:User's login process, to certain Content in kind of application such as is thumbed up, commented on and is forwarded at the mutual-action behaviors, here, the particular content to business processing does not limit System.
Step 205, the user information of registered user is obtained.
When the business processing request sent by client, when judging that the request handles request for registered user, pass through The information carried in asking business processing is decrypted, and can acquire the user information of the registered user, the user information It can include:Registered user ID, registered user's head portrait, registered user history mutual-action behavior record etc..
Step 206, it using the user information of registered user, asks to carry out business processing for business processing.
In this step, according to the user information of the registered user got in above-mentioned steps 205 and the industry of client transmission Business processing request, can carry out corresponding business processing, business processing herein can include:User's login process, to certain Content in such as is thumbed up, commented on and is forwarded at the mutual-action behaviors, here, the particular content to business processing is not restricted.
In method for processing business shown in Fig. 2 provided in an embodiment of the present invention, in the carrying for receiving client transmission After the business processing request of the device id of client corresponding device, first determine whether business processing request is anonymous business Processing request;When business processing request is the request of anonymous business processing, given birth to for the device id of client corresponding device Into unique anonymous ID, anonymous ID is then reused, asks to carry out business processing for business processing, at business When reason request is the request of registered user's business processing, the user information of registered user is obtained, reuses the use of above-mentioned registered user Family information carries out corresponding business processing.In the embodiment of the present invention, needing to ask to carry out for the business processing received During business processing, if business processing request is asked for anonymous business processing, the device id of carrying is generated unique Anonymous ID so that the device id of carrying is different, then the anonymous ID generated is i.e. different, and is directed to same device id, The anonymous ID generated every time is identical, so without being set again to client corresponding device in the embodiment of the present invention The correspondence of standby ID and anonymous ID are stored, and can equally realize that the business processing for same device id uses It is identical anonymous ID, different anonymous ID is used for the business processing of distinct device ID, therefore, saves The memory space of server end.
Based on same inventive concept, according to the method for processing business that the above embodiment of the present invention provides, correspondingly, the present invention One embodiment additionally provides a kind of business processing device, structure diagram as shown in figure 3, including:
Request receiving module 301, for receiving the business processing request of client transmission;Business processing request includes client Hold the device id of corresponding device.
Anonymous ID generation modules 302, when business processing request is the request of anonymous business processing, for client The device id of corresponding device is held to generate unique anonymous ID, and different for the anonymous ID of distinct device ID generations.
Service Processing Module 303 for using anonymous ID, asks to carry out business processing for business processing.
Further, anonymous ID generation modules 302 specifically for being directed to the device id of client corresponding device, are adopted Message digest value is generated with Message Digest 5;Message digest value is the hexadecimal character of the first preset quantity position;And from disappearing It ceases in digest value and carries out shift operation according to the second preset quantity position of the first preset rules selection character, obtain anonymous ID, Second preset quantity is not more than first preset quantity.
Further, such as Fig. 4, business processing device can also include:
Anonymous title generation module 304, in anonymous ID generation modules 302 from the message digest value Shift operation, after obtaining the anonymous ID, root are carried out according to the second preset quantity position of the first preset rules selection character According to other characters non-selected in message digest value, anonymous title is obtained.
Anonymous gender determining module 305, in anonymous ID generation modules 302 from the message digest value Shift operation is carried out according to the second preset quantity position of the first preset rules selection character, after obtaining the anonymous ID, is pressed A hexadecimal character in message digest value is selected according to the second preset rules, hexadecimal character is converted into binary word Symbol, and based on last position in binary-coded character, determine the gender of anonymous.
Further, the first preset quantity can be 16, and the second preset quantity can be 8.
The function of above-mentioned each module may correspond to the respective handling step in flow shown in Fig. 1 or Fig. 2, no longer superfluous herein It states.
In business processing device provided in an embodiment of the present invention, receive client in request receiving module 301 and send Carrying client corresponding device device id business processing request after, when business processing request is anonymous business processing During request, anonymous ID generation modules 302 generate unique anonymous ID for the device id of client corresponding device, so Service Processing Module 303 reuses anonymous ID afterwards, asks to carry out business processing for business processing.Embodiment of the present invention side In case, when needing to carry out business processing for the business processing request received, if business processing request is anonymous Business processing is asked, then unique anonymous ID is generated to the device id of carrying, and for the anonymity of distinct device ID generations User ID is different so that the device id of carrying is different, then the anonymous ID generated is i.e. different, and is directed to same device id, often The anonymous ID of secondary generation is identical, so without again to the equipment of client corresponding device in the embodiment of the present invention The correspondence of ID and anonymous ID are stored, and can equally realize that the business processing for same device id uses Identical anonymous ID uses different anonymous ID for the business processing of distinct device ID, therefore, saves clothes The memory space at business device end.
Based on same inventive concept, according to the method for processing business that the above embodiment of the present invention provides, correspondingly, the present invention Embodiment additionally provides a kind of electronic equipment, as shown in figure 5, including processor 501, communication interface 502, memory 603 and leading to Believe bus 504, wherein, processor 501, communication interface 502, memory 503 is completed mutual logical by communication bus 504 Letter,
Memory 503, for storing computer program;
Processor 501 during for performing the program stored on memory 503, is realized on provided in an embodiment of the present invention State method for processing business.
For example, it may include steps of:
Receive the business processing request that client is sent, the equipment that client corresponding device is carried in business processing request ID;
When business processing request is the request of anonymous business processing, power is used to the device id of client corresponding device Scheduling algorithm generation anonymous ID;
Using anonymous ID, ask to carry out business processing for business processing.
Further, other processing streams in above-mentioned method for processing business provided in an embodiment of the present invention can also be included Journey is no longer described in detail herein.
The communication bus that above-mentioned electronic equipment is mentioned can be Peripheral Component Interconnect standard (Peripheral Component Interconnect, PCI) bus or expanding the industrial standard structure (Extended Industry Standard Architecture, EISA) bus etc..The communication bus can be divided into address bus, data/address bus, controlling bus etc..For just It is only represented in expression, figure with a thick line, it is not intended that an only bus or a type of bus.
Communication interface is for the communication between above-mentioned electronic equipment and other equipment.
Memory can include random access memory (Random Access Memory, RAM), can also include non-easy The property lost memory (Non-Volatile Memory, NVM), for example, at least a magnetic disk storage.Optionally, memory may be used also To be at least one storage device for being located remotely from aforementioned processor.
Above-mentioned processor can be general processor, including central processing unit (Central Processing Unit, CPU), network processing unit (Network Processor, NP) etc.;It can also be digital signal processor (Digital Signal Processing, DSP), it is application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), existing It is field programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic device, discrete Door or transistor logic, discrete hardware components.
In business processing electronic equipment provided in an embodiment of the present invention, the method for processing business that uses for:It is receiving After the business processing request of the device id for the carrying client corresponding device that client is sent, when business processing request is used to be anonymous During the business processing request of family, unique anonymous ID is generated first against the device id of client corresponding device, is then made again With anonymous ID, ask to carry out business processing for business processing.In the embodiment of the present invention, needing for reception When business processing request carries out business processing, if business processing request is asked for anonymous business processing, to carrying Device id generate unique anonymous ID, and different for the anonymous ID of distinct device ID generations, i.e., so that carrying Device id it is different, then the anonymous ID generated is i.e. different, and is directed to same device id, and the anonymous ID generated every time is Identical, so without corresponding with anonymous ID to the device id of client corresponding device again in the embodiment of the present invention Relationship is stored, and can equally realize that the business processing for same device id uses identical anonymous ID, needle Use the business processing of distinct device ID different anonymous ID, therefore, save the memory space of server end.
In another embodiment provided by the invention, a kind of computer readable storage medium is additionally provided, which can It reads to be stored with instruction in storage medium, when run on a computer so that computer is performed on any in above-described embodiment The method for processing business stated.
In computer readable storage medium provided in an embodiment of the present invention, the method for processing business that uses for:It is receiving After the business processing request of the device id of the carrying client corresponding device sent to client, when business processing request is anonymity During customer service processing request, unique anonymous ID, Ran Houzai are generated first against the device id of client corresponding device Using anonymous ID, ask to carry out business processing for business processing.In the embodiment of the present invention, needing for reception Business processing request carry out business processing when, if the business processing request for anonymous business processing ask, to taking The device id of band generates unique anonymous ID, and different for the anonymous ID of distinct device ID generations, i.e., so that taking The device id of band is different, then the anonymous ID generated is i.e. different, and for same device id, the anonymous ID generated every time It is identical, so without again to pair of the device id of client corresponding device and anonymous ID in the embodiment of the present invention It should be related to and be stored, can equally realize that the business processing for same device id uses identical anonymous ID, Use different anonymous ID, therefore, save the memory space of server end for the business processing of distinct device ID.
In another embodiment provided by the invention, a kind of computer program product for including instruction is additionally provided, when it When running on computers so that computer performs any above-mentioned method for processing business in above-described embodiment.
In computer program product provided in an embodiment of the present invention comprising instruction, the method for processing business that uses for: After the business processing request of the device id of carrying client corresponding device of client transmission is received, when business processing is asked When being asked for anonymous business processing, unique anonymous ID is generated first against the device id of client corresponding device, Then anonymous ID is reused, asks to carry out business processing for business processing.In the embodiment of the present invention, needle is being needed When carrying out business processing to the business processing request of reception, if business processing request is asked for anonymous business processing, Unique anonymous ID is then generated to the device id of carrying, and different for the anonymous ID of distinct device ID generations, i.e., So that the device id carried is different, then the anonymous ID generated is i.e. different, and for same device id, the anonymity generated every time User ID is identical, so without again to the device id and anonymous of client corresponding device in the embodiment of the present invention The correspondence of ID is stored, and can equally realize that the business processing for same device id uses identical anonymous use Family ID uses different anonymous ID, therefore, save the storage of server end for the business processing of distinct device ID Space.
In the above-described embodiments, can come wholly or partly by software, hardware, firmware or its arbitrary combination real It is existing.When implemented in software, it can entirely or partly realize in the form of a computer program product.Computer program product Including one or more computer instructions.It is all or part of when loading on computers and performing above computer program instruction Ground is generated according to above-mentioned flow or function of the embodiment of the present invention.Computer can be all-purpose computer, special purpose computer, calculating Machine network or other programmable devices.Computer instruction can be stored in a computer-readable storage medium or from one Computer readable storage medium is transmitted to another computer readable storage medium, for example, computer instruction can be from a net Website, computer, server or data center pass through wired (such as coaxial cable, optical fiber, Digital Subscriber Line (DSL)) or nothing Line (such as infrared, wireless, microwave etc.) mode is transmitted to another web-site, computer, server or data center. Above computer readable storage medium storing program for executing can be that any usable medium that computer can access either includes one or more The data storage devices such as server, data center that usable medium integrates.Above-mentioned usable medium can be magnetic medium, (for example, Floppy disk, hard disk, tape), optical medium (for example, DVD) or semiconductor medium (such as solid state disk Solid State Disk (SSD)) etc..
It should be noted that herein, relational terms such as first and second and the like are used merely to a reality Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation In any this practical relationship or sequence.Moreover, term " comprising ", "comprising" or its any other variant are intended to Non-exclusive inclusion, so that process, method, article or equipment including a series of elements not only will including those Element, but also including other elements that are not explicitly listed or further include as this process, method, article or equipment Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that Also there are other identical elements in process, method, article or equipment including element.
Each embodiment in this specification is described using relevant mode, identical similar portion between each embodiment Point just to refer each other, and the highlights of each of the examples are difference from other examples.Especially for device and For electronic equipment embodiment, since it is substantially similar to embodiment of the method, so description is fairly simple, related part referring to The part explanation of embodiment of the method.
The foregoing is merely a prefered embodiment of the invention, is not intended to limit the scope of the present invention.It is all in this hair Any modification, equivalent replacement, improvement and so within bright spirit and principle, are all contained in protection scope of the present invention.

Claims (11)

1. a kind of method for processing business, which is characterized in that including:
The business processing request that client is sent is received, setting for the client corresponding device is carried in the business processing request Standby ID;
When business processing request is the request of anonymous business processing, for the device id of the client corresponding device Unique anonymous ID is generated, and different for the anonymous ID of distinct device ID generations;
Using the anonymous ID, ask to carry out business processing for the business processing.
2. according to the method described in claim 1, it is characterized in that, the device id for the client corresponding device is given birth to Into unique anonymous ID, including:
For the device id of the client corresponding device, message digest value is generated using Message Digest 5;The message is plucked It is worth the hexadecimal character for the first preset quantity position;
Shift operation is carried out according to the second preset quantity position of the first preset rules selection character from the message digest value, is obtained The anonymous ID, second preset quantity are not more than first preset quantity.
3. it according to the method described in claim 2, it is characterized in that, is preset from the message digest value according to first described The second preset quantity position of rule selection character carries out shift operation, and after obtaining the anonymous ID, the method further includes:
According to other characters non-selected in the message digest value, anonymous title is obtained.
4. it according to the method described in claim 2, it is characterized in that, is preset from the message digest value according to first described The second preset quantity position of rule selection character carries out shift operation, and after obtaining the anonymous ID, the method further includes:
A hexadecimal character in the message digest value is selected according to the second preset rules, by the hexadecimal of selection Character is converted to binary-coded character, and based on last position in the binary-coded character, determines the gender of the anonymous.
5. according to the method described in claim 2, it is characterized in that, first preset quantity be 16, second present count Measure is 8.
6. a kind of business processing device, which is characterized in that including:
Request receiving module, for receiving the business processing request of client transmission;The business processing request includes the visitor The device id of family end corresponding device;
Anonymous ID generation modules, when business processing request is the request of anonymous business processing, for the visitor The device id of family end corresponding device generates unique anonymous ID, and is directed to the anonymous ID of distinct device ID generations not Together;
Service Processing Module for using the anonymous ID, asks to carry out business processing for the business processing.
7. business processing device according to claim 6, which is characterized in that the anonymous ID generation modules, specifically For being directed to the device id of the client corresponding device, message digest value is generated using Message Digest 5;The message is plucked It is worth the hexadecimal character for the first preset quantity position;And according to the first preset rules selection the from the message digest value Two preset quantity position characters carry out shift operations, obtain the anonymous ID, and second preset quantity is no more than described the One preset quantity.
8. business processing device according to claim 7, which is characterized in that further include:
Anonymous title generation module, for the anonymous ID generation modules from the message digest value according to The second preset quantity position of one preset rules selection character carries out shift operation, after obtaining the anonymous ID, according to described Other non-selected characters, obtain anonymous title in message digest value.
9. business processing device according to claim 7, which is characterized in that further include:
Anonymous gender determining module, for the anonymous ID generation modules from the message digest value according to The second preset quantity position of one preset rules selection character carries out shift operation, after obtaining the anonymous ID, according to second Preset rules select a hexadecimal character in the message digest value, and the hexadecimal character is converted to binary system Character, and based on last position in the binary-coded character, determine the gender of the anonymous.
10. business processing device according to claim 7, which is characterized in that first preset quantity is 16, described the Two preset quantities are 8.
11. a kind of electronic equipment, which is characterized in that including processor, communication interface, memory and communication bus, wherein, processing Device, communication interface, memory complete mutual communication by communication bus;
Memory, for storing computer program;
Processor during for performing the program stored on memory, realizes any method and steps of claim 1-5.
CN201711341189.0A 2017-12-14 2017-12-14 A kind of anonymous ID generation methods, device and electronic equipment Pending CN108156273A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711341189.0A CN108156273A (en) 2017-12-14 2017-12-14 A kind of anonymous ID generation methods, device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711341189.0A CN108156273A (en) 2017-12-14 2017-12-14 A kind of anonymous ID generation methods, device and electronic equipment

Publications (1)

Publication Number Publication Date
CN108156273A true CN108156273A (en) 2018-06-12

Family

ID=62466332

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711341189.0A Pending CN108156273A (en) 2017-12-14 2017-12-14 A kind of anonymous ID generation methods, device and electronic equipment

Country Status (1)

Country Link
CN (1) CN108156273A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109992991A (en) * 2019-01-11 2019-07-09 刘高峰 A kind of user's head portrait processing method, device and public platform
CN112383510A (en) * 2020-10-23 2021-02-19 北京易观智库网络科技有限公司 Method and device for uniquely identifying user association
CN113204724A (en) * 2021-04-30 2021-08-03 北京达佳互联信息技术有限公司 Method and device for creating interactive information, electronic equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070274489A1 (en) * 2006-05-12 2007-11-29 Fujitsu Limited System for providing anonymous presence information, method thereof and program storage medium storing program thereof
CN103368831A (en) * 2013-08-07 2013-10-23 五八同城信息技术有限公司 Anonymous instant messaging system based on frequent visitor recognition
CN104468488A (en) * 2013-09-17 2015-03-25 北京千橡网景科技发展有限公司 Recommendation method and device for anonymous user
CN104518873A (en) * 2013-09-29 2015-04-15 北京新媒传信科技有限公司 Anonymous login method and device
CN105141600A (en) * 2015-08-17 2015-12-09 北京京东尚科信息技术有限公司 Method for binding anonymously purchased service to user login account number and server
CN106657429A (en) * 2016-10-24 2017-05-10 珠海市魅族科技有限公司 Equipment identifier generating method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070274489A1 (en) * 2006-05-12 2007-11-29 Fujitsu Limited System for providing anonymous presence information, method thereof and program storage medium storing program thereof
CN103368831A (en) * 2013-08-07 2013-10-23 五八同城信息技术有限公司 Anonymous instant messaging system based on frequent visitor recognition
CN104468488A (en) * 2013-09-17 2015-03-25 北京千橡网景科技发展有限公司 Recommendation method and device for anonymous user
CN104518873A (en) * 2013-09-29 2015-04-15 北京新媒传信科技有限公司 Anonymous login method and device
CN105141600A (en) * 2015-08-17 2015-12-09 北京京东尚科信息技术有限公司 Method for binding anonymously purchased service to user login account number and server
CN106657429A (en) * 2016-10-24 2017-05-10 珠海市魅族科技有限公司 Equipment identifier generating method and device

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109992991A (en) * 2019-01-11 2019-07-09 刘高峰 A kind of user's head portrait processing method, device and public platform
CN112383510A (en) * 2020-10-23 2021-02-19 北京易观智库网络科技有限公司 Method and device for uniquely identifying user association
CN112383510B (en) * 2020-10-23 2022-10-11 北京易观智库网络科技有限公司 Method and device for uniquely identifying user association
CN113204724A (en) * 2021-04-30 2021-08-03 北京达佳互联信息技术有限公司 Method and device for creating interactive information, electronic equipment and storage medium
CN113204724B (en) * 2021-04-30 2024-05-14 北京达佳互联信息技术有限公司 Method, device, electronic equipment and storage medium for creating interaction information

Similar Documents

Publication Publication Date Title
CN108365961B (en) The response method and server that interface call method and terminal device, interface call
CN105530175A (en) Message processing method, device and system
WO2016101811A1 (en) Information arrangement method and apparatus
CN107784504B (en) Method for generating return visit event of client and terminal equipment
CN106933871A (en) Short linking processing method, device and short linked server
CN109977684A (en) A kind of data transmission method, device and terminal device
CN110225104A (en) Data capture method, device and terminal device
CN108400868A (en) Storage method, device and the mobile terminal of seed key
CN108418790A (en) Business tracking method, device, terminal device and storage medium
CN107294999A (en) Information Authentication processing method, device, system, client and server
CN104142975B (en) Microblog information promotion method, device and system
CN107258071A (en) The method and system and recording medium of the abundant menu of official's account are provided in instant Communications service
CN104468321B (en) The method and system of social interaction is initiated based on Email content
CN106569860A (en) Application management method and terminal
CN108255936A (en) A kind of edit methods of webpage, system and editing machine
CN107832941A (en) Order processing method and device
CN108156273A (en) A kind of anonymous ID generation methods, device and electronic equipment
CN108401005A (en) A kind of expression recommendation method and apparatus
CN107895105A (en) A kind of cipher processing method, terminal device and computer-readable recording medium
CN107634901A (en) Session expression pushing method and device and terminal equipment
CN109726119A (en) Test scene creation method, application method, device, client and server
CN112765364A (en) Group chat session ordering method and device, storage medium and electronic equipment
CN103942056B (en) A kind of man-machine interaction method and device based on scene
CN107786308B (en) Data transmission method and terminal device
CN106685901A (en) Method for processing cross-domain data, first server and second server

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20180612