CN106230593A - ID generates method and device - Google Patents

ID generates method and device Download PDF

Info

Publication number
CN106230593A
CN106230593A CN201610570101.1A CN201610570101A CN106230593A CN 106230593 A CN106230593 A CN 106230593A CN 201610570101 A CN201610570101 A CN 201610570101A CN 106230593 A CN106230593 A CN 106230593A
Authority
CN
China
Prior art keywords
hash code
timestamp
random number
increasing
hash
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
CN201610570101.1A
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.)
LeTV Holding Beijing Co Ltd
LeTV Information Technology Beijing Co Ltd
Original Assignee
LeTV Holding Beijing Co Ltd
LeTV Information Technology Beijing 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 LeTV Holding Beijing Co Ltd, LeTV Information Technology Beijing Co Ltd filed Critical LeTV Holding Beijing Co Ltd
Priority to CN201610570101.1A priority Critical patent/CN106230593A/en
Publication of CN106230593A publication Critical patent/CN106230593A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/0815Network architectures or network communication protocols for network security for authentication of entities providing single-sign-on or federations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/32Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
    • H04L9/3297Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials involving time stamps, e.g. generation of time stamps
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2463/00Additional details relating to network architectures or network communication protocols for network security covered by H04L63/00
    • H04L2463/121Timestamp

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the invention discloses ID and generate method and device, relate to technical field of communication safety and comprising, for generating the ID of website log.Described method includes: generate timestamp, random number and increasing number certainly;Respectively according to the timestamp generated, random number with from increasing number, generate timestamp hash code, random number hash code and from increasing hash code;According to the timestamp hash code generated, random number hash code with from increasing hash code, obtain ID.ID is divided into three parts, respectively timestamp hash code, random number hash code and oneself increasing hash code by the embodiment of the present invention.The most both ensure that the mark of each user was different, the figure place of ID also can be had any different simultaneously so that ID has scrambling, protects the identification information of user.

Description

ID generates method and device
Technical field
The present embodiments relate to technical field of communication safety and comprising, particularly relate to ID (ID) generation side during website log Method and device.
Background technology
One of means of assault website obtain all of ID exactly, generate if Website server is user Mark the simplest, then ID reveal probability will increase.
The present inventor finds during research the application, and prior art typically uses UUID (general uniquely Identification code) a kind of method and Twitter-Snowflake (mark generating method) method generates.But the mark that UUID generates is too Long, and the mark that Twitter-Snowflake generates is consist of only digits, safety is the highest.
And during actual user identifies generation, need to consider emphatically the confidentiality of ID, complexity, to improve The safety of ID, increases the probability finding puppet mark in ID matching process.Therefore, how ID is made Having scrambling, the safety of reinforcement ID becomes technical problem urgently to be resolved hurrily further.
Summary of the invention
In order to strengthen the irregular shape of ID, improve the safety of ID, embodiments provide use Family mark generating method and device, specifically have employed following technical scheme.
The first technical scheme that the embodiment of the present invention uses is: a kind of ID generates method, including:
Generate timestamp, random number and increasing number certainly;Respectively according to the timestamp generated, random number with from increasing number, during generation Between stab hash code, random number hash code and from increasing hash code;
According to the timestamp hash code generated, random number hash code with from increasing hash code, obtain ID.
The first technical scheme that the embodiment of the present invention uses also includes: by the timestamp generated, random number and increasing number point certainly Do not represent with 62 systems.
The first technical scheme that the embodiment of the present invention uses also includes: described generation timestamp hash code, random number hash Code and certainly increasing hash code, particularly as follows: by the timestamp represented with 62 systems, random number and hash respectively from increasing number, generate Timestamp hash code, random number hash code and oneself increasing hash code.
The first technical scheme that the embodiment of the present invention uses also includes: described by the timestamp represented with 62 systems, random Number and number hashing respectively from increasing, generate timestamp hash code, random number hash code and from increasing hash code particularly as follows: will use The timestamp that 62 systems represent hashes in the character string dimension represented with 62 subscript characters, it is thus achieved that timestamp hash code;
The random number represented with 62 systems is hashed in the character string dimension represented with 62 subscript characters, it is thus achieved that the time Stamp hash code;
Hash represent with 62 systems in the character string dimension represented with 62 subscript characters Zi increasing number, it is thus achieved that the time Stamp hash code.
The embodiment of the present invention use the first technical scheme also include: described in obtain ID particularly as follows: by generate Timestamp hash code, random number hash code and oneself increasing hash code carry out permutation and combination, obtain ID.
The second technical scheme that the embodiment of the present invention uses is: a kind of ID generating means, including:
Original character generation module, hash code generation module and ID generation module;
Described original character generation module is used for generating original character, described original character include timestamp, random number and From increasing number;
Described hash code generation module is for according to the timestamp generated, random number with from increasing number, generating timestamp respectively Hash code, random number hash code and oneself increasing hash code;
Described ID generation module for the timestamp hash code according to generation, random number hash code and dissipates from increasing number Row code generates ID.
The second technical scheme that the embodiment of the present invention uses also includes: described original character generation module includes: timestamp Signal generating unit, random number generation unit and oneself increasing signal generating unit;
Described timestamp signal generating unit is used for generating timestamp;
Described random number generation unit is used for generating random number;
Described increasing signal generating unit certainly is used for generating from increasing number.
The second technical scheme that the embodiment of the present invention uses also includes: described hash code generation module includes: timestamp dissipates Row code signal generating unit, random number hash code signal generating unit and oneself increasing hash code signal generating unit;
Described timestamp hash code signal generating unit is for generating timestamp hash code according to timestamp;
Described random number hash code signal generating unit is for according to generating random number random number hash code;
Described increasing hash code signal generating unit certainly is for according to from increasing number generation from increasing hash code.
The second technical scheme that the embodiment of the present invention uses also includes: described timestamp hash code signal generating unit is according to the time Stamp generation timestamp hash code is particularly as follows: timestamp hash code signal generating unit is stabbed with 62 system express times, and hash is to by 62 In the character string dimension of character composition, generate timestamp hash code;
Described random number hash code signal generating unit according to generating random number random number hash code particularly as follows: random number hash code Signal generating unit represents random number with 62 systems, hashes in the character string dimension being made up of 62 characters, generates random number hash Code;
Described from increasings hash code signal generating unit according to from increase number generate certainly increasing hash code particularly as follows: increasing hash code certainly Signal generating unit represents increasing number certainly with 62 systems, hashes in the character string dimension being made up of 62 characters, generates and hash from increasing number Code.
The embodiment of the present invention use the second technical scheme also include: described ID generation module according to generate time Between stab hash code, random number hash code and from increasings hash code generation ID particularly as follows: described ID generation module By the timestamp hash code of generation, random number hash code and carry out permutation and combination from increasing hash code, obtain ID.
Compared with prior art, the embodiment of the present invention mainly has a following beneficial effect:
ID described in the embodiment of the present invention generates method, by generating timestamp, random number and increasing number certainly.And respectively According to the timestamp generated, random number with from increasing number, generate timestamp hash code, random number hash code and from increasing hash code. Then according to the timestamp hash code generated, random number hash code with from increasing hash code, ID is obtained.Therefore, this ID is divided into three parts, respectively timestamp hash code, random number hash code and oneself increasing hash code by bright embodiment.This Sample both ensure that the mark of each user was different, and the figure place of ID also can be had any different simultaneously so that ID has not Systematicness, protects the identification information of user.
Accompanying drawing explanation
Fig. 1 is the schematic diagram that ID described in first embodiment of the invention generates method.
Fig. 2 is the schematic diagram that ID described in second embodiment of the invention generates method.
Fig. 3 is the generation schematic diagram of second embodiment of the invention timestamp hash code.
Fig. 4 is the generation schematic diagram of second embodiment of the invention random number hash code.
Fig. 5 is the second embodiment of the invention generation schematic diagram from increasing hash code.
Fig. 6 is the schematic diagram of ID generating means described in first embodiment of the invention.
Fig. 7 is the schematic diagram that ID generating means described in first embodiment of the invention generates ID.
Fig. 8 is the schematic diagram of ID generating means described in second embodiment of the invention.
Fig. 9 is the schematic diagram that ID generating means described in second embodiment of the invention generates ID.
Detailed description of the invention
For the ease of understanding the present invention, below with reference to relevant drawings, the present invention is described more fully.In accompanying drawing Give presently preferred embodiments of the present invention.But, the present invention can realize in many different forms, however it is not limited to institute herein The embodiment described.On the contrary, providing the purpose of these embodiments is to make the understanding to the disclosure more thorough Comprehensively.
Unless otherwise defined, all of technology used herein and scientific terminology and the technical field belonging to the present invention The implication that technical staff is generally understood that is identical.The term used the most in the description of the invention is intended merely to describe tool The purpose of the embodiment of body, it is not intended that in limiting the present invention.
With reference to Fig. 1, generate the schematic diagram of method for ID described in first embodiment of the invention.The present invention first implements ID described in example generates method in server implementation, and described method includes herein below:
Step S1: generate timestamp, random number and increasing number certainly.
In the first embodiment of the invention, user is after website is registered, and server generates timestamp, random number and certainly increases Number.Described timestamp can generate according to the system time of server.Described random number should have sufficiently random property, in order to increases The scrambling of strong ID.Optionally, described increasing number certainly adds 1 after having user's registration every time.
Step S2: respectively according to the timestamp generated, random number with from increasing number, generation timestamp hash code, random number dissipate Row code and certainly increasing hash code.
In the first embodiment of the invention, generate timestamp hash code, random number hash code and from increasing hash code it Before, it is necessary first to design a character string dimension being made up of some characters.Character string dimension what character is made up of, and respectively Putting in order of individual character can set according to specific needs.Character string dimension should have enough randomness, it is possible to meets raw Timestamp hash code, random number hash code and the randomness from increasing hash code is become to need.
Step S3: according to the timestamp hash code generated, random number hash code with from increasing hash code, obtains user's mark Know.
In the first embodiment of the invention, ID is finally by timestamp hash code, random number hash code with from increasing Number character string that hash code is concatenated into.In each ID, timestamp hash code, random number hash code and oneself increasing number hash The sequencing of code can randomly generate in ID generates.
The ID that storage generates, carries out ID verification during for user's Website login.
In the first embodiment of the invention, if it is desired, time, random number and the increasing certainly that can generate with storing step S1 Number.Further, if it is desired, can dissipate with timestamp hash code, random number hash code and oneself increasing number that storing step S2 generates Row code.
ID described in first embodiment of the invention generates method, by generating timestamp, random number and increasing number certainly.And Respectively according to the timestamp generated, random number with from increasing number, generate timestamp hash code, random number hash code and certainly increase a number hash Code.Then according to the timestamp hash code generated, random number hash code with from increasing hash code, ID is obtained.Therefore, originally ID is divided into three parts, respectively timestamp hash code, random number hash code and oneself increasing number and dissipates by invention first embodiment Row code.The most both ensure that the mark of each user was different, the figure place of ID also can be had any different simultaneously so that ID There is scrambling, protect the identification information of user.
With reference to Fig. 2, generate the schematic diagram of method for ID described in second embodiment of the invention.The present invention second implements ID described in example generates method in server implementation, and described method includes herein below:
Step C1: generate timestamp, random number and increasing number certainly, and represent with 62 systems respectively.
In second embodiment of the invention, user is after website is registered, and server generates timestamp, random number and certainly increases Number.Described timestamp can generate according to the system time of server.Described random number should have sufficiently random property, in order to increases The scrambling of strong ID.Optionally, described increasing number certainly adds 1 after having user's registration every time.Optionally, timestamp Server system time when registering according to user generates.
Step C2: by the timestamp represented with 62 systems, random number and hash respectively from increasing number, and generate timestamp Hash code, random number hash code and oneself increasing hash code.
In second embodiment of the invention, generate timestamp hash code, random number hash code and from increasing hash code it Before, it is necessary first to design a character string dimension being made up of some characters.Character string dimension what character is made up of, and respectively Putting in order of individual character can set according to specific needs.Character string dimension should have enough randomness, it is possible to meets raw Become timestamp hash code, random number hash code and the needs from increasing hash code.
With reference to Fig. 3, for the generation schematic diagram of second embodiment of the invention timestamp hash code.The process of timestamp hash code Including herein below:
The system time of server when representing that user registers by the form of millisecond, by the system time that represents with millisecond with 62 System represents, then hashes in the character string dimension represented with 62 subscript characters, final obtains timestamp hash code.Optional , 62 subscript character capitalizations and/or lower case and/or numeral represent.For example, it is assumed that user's registration The server system time is 15: 23: 34 on the 18th March in 2016, and millisecond number corresponding to this time is 142571458000. By 0-9, a-z, A-Z totally 62 characters are put in a character string dimension, and the order of each character in this character string dimension can Arbitrarily arrange.For example, it is possible to this character string dimension is set to:
["c","d","e","f","g","h","i","j","k","l","0","1","2","3","4","5"," 6","7","8","9","a","b","m","n","o","p","q","r","s","t","u","v","w","x","y"," z","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R"," S","T","U","V","W","X","Y","Z"]
Being represented with 62 systems by the millisecond several 142571458000 corresponding the server system time, each bit value is from low level To high position arrangement, for [10,7,19,39,38,31,2], this numerical value each corresponding to a subscript character of character string dimension, Obtaining [0, j, 9, D, C, v, e], being concatenated into character string is exactly 0j9DCve.Character string 0j9DCve is the server system time 2016 The timestamp hash code on March 18,15: 23: 34 in.
With reference to Fig. 4, for the generation schematic diagram of second embodiment of the invention random number hash code.The process of random number hash code Including herein below:
Setting random number code figure place according to actual needs, for example, we can use the random number code of 4 figure places, makes By a kind of random (random number generation function) method of java (a kind of programming software), obtain the decimal within 1, then It is multiplied by 62, takes 4 integers as random number.By 0-9, a-z, A-Z totally 62 characters are put in a character string dimension, this character The order of each character in string array can arbitrarily be arranged.For example, this character string dimension can be set to:
["c","d","e","f","g","h","i","j","k","l","0","1","2","3","4","5"," 6","7","8","9","a","b","m","n","o","p","q","r","s","t","u","v","w","x","y"," z","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R"," S","T","U","V","W","X","Y","Z"]
Obtain 4 randoms number are corresponded to the subscript character of array, performs 4 times, just obtain 4 random number codes.Assume Obtaining is AGc7.This step is primarily to further enhance the no regularity of ID.
With reference to Fig. 5, for second embodiment of the invention from the generation schematic diagram of increasing hash code.Process from increasing hash code Including herein below:
Can be to start, from increasing, often to produce into an ID, will add 1 from 1 from increasing number.The increasing number 62 system tables certainly obtained Showing, each bit value arranges from low level to a high position.We are by 0-9, and a character string dimension put in a-z, A-Z totally 62 characters In, the order of this character can arbitrarily be arranged.For example, it is possible to this character string dimension is set to:
["c","d","e","f","g","h","i","j","k","l","0","1","2","3","4","5"," 6","7","8","9","a","b","m","n","o","p","q","r","s","t","u","v","w","x","y"," z","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R"," S","T","U","V","W","X","Y","Z"]
If now increasing number is 1 certainly, then corresponding array value is c, adds this from increasing hand over word primarily to increase The uniqueness of strong ID.
Step C3: by the timestamp hash code of generation, random number hash code and carry out permutation and combination from increasing hash code, To ID.
In second embodiment of the invention, ID is finally by timestamp hash code, random number hash code with from increasing Number character string that hash code is concatenated into.In each ID, timestamp hash code, random number hash code and oneself increasing number hash The sequencing of code can randomly generate in ID generates.Timestamp hash code, random number hash in ID Code and the sequencing from increasing hash code refer to form 1.
Form 1
The ID that storage generates, carries out ID verification during for user's Website login.
In second embodiment of the invention, if it is desired, time, random number and the increasing certainly that can generate with storing step C1 Number.Further, if it is desired, can dissipate with timestamp hash code, random number hash code and oneself increasing number that storing step C2 generates Row code.
ID described in second embodiment of the invention generates method, by generating timestamp, random number and increasing number certainly, and Represent with 62 systems respectively.Then, by the timestamp represented with 62 systems, random number and hash respectively from increasing number, and raw Become timestamp hash code, random number hash code and oneself increasing hash code.Finally, the timestamp hash code of generation, random number are dissipated Row code and certainly increasing hash code carry out permutation and combination, obtain ID and store.Therefore, described in second embodiment of the invention ID generates method, by timestamp, random number and represents with 62 systems respectively from increasing number, and hash arrives by 62 words respectively In the character string dimension of the random composition of symbol, further enhance the safety of ID.
With reference to Fig. 6, for the schematic diagram of ID generating means described in first embodiment of the invention.The present invention first implements ID generating means described in example is in server implementation.
Device described in first embodiment of the invention includes original character generation module 1, hash code generation module 2 and user's mark Know generation module 3.
Original character generation module 1 is used for generating original character, and described original character includes timestamp, random number and certainly increases Number.
Hash code generation module 2, for according to the timestamp generated, random number with from increasing number, generates timestamp hash respectively Code, random number hash code and oneself increasing hash code.
ID generation module 3 is for according to the timestamp hash code generated, random number hash code with from increasing a number hash Code generates ID.
With reference to Fig. 7, generate the schematic diagram of ID for ID generating means described in first embodiment of the invention.
In the present invention first implements, user is after website is registered, and described device is generated by original character generation module 1 Timestamp, random number and increasing number certainly.Described timestamp can generate according to the system time of server.Described random number should have There is sufficiently random property, in order to strengthen the scrambling of ID.Optionally, described having user's registration from increasing number every time After add 1.
Then, hash code generation module 2 according to timestamp, random number and from increase number, respectively generate timestamp hash code, with Machine number hash code and certainly increasing hash code.In the first embodiment of the invention, one character string being made up of some characters of design When array generates timestamp hash code, random number hash code and oneself increasing hash code for hash code generation module 2.Character string Array what character is made up of, and putting in order of each character can set according to specific needs.Character string dimension should have There are enough randomness, it is possible to meet and generate timestamp hash code, random number hash code and the randomness need from increasing hash code Want.Character string dimension is pre-designed and stores, and is generating timestamp hash code, random number hash for hash code generation module 2 Call when code and certainly increasing hash code.
ID generation module 3 is according to the timestamp hash code generated, random number hash code with from the life of increasing hash code Become ID.In the first embodiment of the invention, ID be finally by timestamp hash code, random number hash code and from The character string that increasing hash code is concatenated into.In each ID, timestamp hash code, random number hash code and oneself increasing number dissipate The sequencing of row code can randomly generate in ID generates.
ID generating means described in first embodiment of the invention, by original character generation module 1 generate timestamp, Random number and certainly increasing number.Generate timestamp hash code, random number hash code by hash code generation module 2 and hash from increasing number Code.By ID generation module 3 according to the timestamp hash code generated, random number hash code with from the generation of increasing hash code ID.Therefore, the ID generating means described in first embodiment of the invention both ensure that the mark of each user not With, the figure place of ID also can be had any different simultaneously so that ID has scrambling, protects the mark letter of user Breath.
With reference to Fig. 8, for the schematic diagram of ID generating means described in second embodiment of the invention.The present invention second implements ID generating means described in example is in server implementation.
Device described in second embodiment of the invention includes original character generation module 10, hash code generation module 20 and user Identifier generation module 30.
Original character generation module 10 is used for generating timestamp, random number and increasing number certainly.
Described original character generation module 10 includes timestamp signal generating unit 11, random number generation unit 12 and increasing life certainly Become unit 13.
Described timestamp signal generating unit 11 is used for generating timestamp;Described random number generation unit 12 is used for generating at random Number;Described increasing signal generating unit 13 certainly is used for generating from increasing number.
Hash code generation module 20 for respectively according to timestamp, random number with from increasing number, generate timestamp hash code, with Machine number hash code and certainly increasing hash code.
Described hash code generation module 20 includes timestamp hash code signal generating unit 21, random number hash code signal generating unit 22 With increasing hash code signal generating unit 23 certainly.
Described timestamp hash code signal generating unit 21 is for generating timestamp hash code according to timestamp;Described random number dissipates Row code signal generating unit 22 is for according to generating random number random number hash code;Described increasing hash code signal generating unit 23 certainly is for root According to from increasing number generation from increasing hash code.
ID generation module 30 is for according to the timestamp hash code generated, random number hash code with from increasing a number hash Code generates ID.
With reference to Fig. 9, generate the schematic diagram of ID for ID generating means described in second embodiment of the invention.
In second embodiment of the invention, user is after website is registered, and original character generation module 10 is raw by timestamp Become unit 11, random number generation unit 12 and generate timestamp, random number and increasing number certainly respectively from increasing signal generating unit 13.Described Timestamp can generate according to the system time of server.Described random number should have sufficiently random property, in order to strengthens user The scrambling of mark.Optionally, described increasing number certainly adds 1 after having user's registration every time.Optionally, timestamp according to The server system time during registration of family generates.
In second embodiment of the invention, generate timestamp hash code, random number hash code and from increasing hash code it Before, it is necessary first to design a character string dimension being made up of 62 characters.Character string dimension what character is made up of, and respectively Putting in order of individual character can set according to specific needs.The putting in order of each character of character string dimension should have enough Randomness, it is possible to meet and generate timestamp hash code, random number hash code and the needs from increasing hash code.Hash code generates mould Block 20 calls character string dimension to be passed through timestamp hash code signal generating unit 21, random number hash code signal generating unit 22 and dissipates from increasing number Row code signal generating unit 23 generates timestamp hash code, random number hash code and oneself increasing hash code respectively.
Specifically, timestamp hash code signal generating unit 21 is stabbed with 62 system express times, hash forms to by 62 characters Character string dimension in, generate timestamp hash code.
Random number hash code signal generating unit 22 represents random number with 62 systems, and hash is to the character string being made up of 62 characters In array, generate random number hash code.
Represent that hash is to the character string being made up of 62 characters from increasing number from increasing hash code signal generating unit 23 with 62 systems In array, generate from increasing hash code.
In second embodiment of the invention, ID is finally by timestamp hash code, random number hash code with from increasing Number character string that hash code is concatenated into.In each ID, timestamp hash code, random number hash code and oneself increasing number hash The sequencing of code can randomly generate in ID generates.Described device passes through ID generation module 30 basis The timestamp hash code, random number hash code and oneself the increasing hash code that generate generate ID.
Finally, the ID that storage generates, carry out ID verification during for user's Website login.In the present invention second In embodiment, if it is desired, the time of generation, random number and increasing number certainly can also be stored.Further, if it is desired, all right Timestamp hash code, random number hash code and oneself the increasing hash code that storage generates.
ID generating means described in second embodiment of the invention, generates timestamp by timestamp signal generating unit 11, Random number generation unit 12 generates random number, generates from increasing number from increasing signal generating unit 13.Then raw by timestamp hash code Becoming unit 21 to generate timestamp hash code according to timestamp, random number hash code signal generating unit 22 is according to generating random number random number Hash code, from increasing hash code signal generating unit 23 according to from increasing number generation from increasing hash code.Finally by passing through ID Generation module 30 generates ID according to the timestamp hash code generated, random number hash code with from increasing hash code.Therefore, ID generating means described in second embodiment of the invention, is conducive to strengthening further the safety of ID.
Through the above description of the embodiments, those skilled in the art it can be understood that to each embodiment can The mode adding required general hardware platform by software realizes, naturally it is also possible to pass through hardware.Based on such understanding, on State the part that prior art contributes by technical scheme the most in other words to embody with the form of software product, should Computer software product can store in a computer-readable storage medium, such as ROM/RAM, magnetic disc, CD etc., including some fingers Make with so that a computer equipment (can be personal computer, server, or the network equipment etc.) performs each and implements The method described in some part of example or embodiment.
Above-described embodiment is the present invention preferably embodiment, but embodiments of the present invention are not by above-described embodiment Limit, the change made under other any spirit without departing from the present invention and principle, modify, substitute, combine, simplify, All should be the substitute mode of equivalence, within being included in protection scope of the present invention.

Claims (10)

1. an ID generates method, it is characterised in that including:
Generate timestamp, random number and increasing number certainly;
Respectively according to timestamp, random number and the increasing number certainly of generation, generate timestamp hash code, random number hash code and increasing number certainly Hash code;
According to the timestamp hash code generated, random number hash code with from increasing hash code, obtain ID.
Method the most according to claim 1, it is characterised in that also include:
By the timestamp of generation, random number and represent with 62 systems respectively from increasing number.
Method the most according to claim 2, it is characterised in that described generation timestamp hash code, random number hash code and From increasing hash code particularly as follows: by the timestamp represented with 62 systems, random number and hash respectively from increasing number, generate the time Stamp hash code, random number hash code and oneself increasing hash code.
Method the most according to claim 3, it is characterised in that described by the timestamp represented with 62 systems, random number and Number hash respectively from increasing, generate timestamp hash code, random number hash code and from increasing hash code particularly as follows:
The timestamp represented with 62 systems is hashed in the character string dimension represented with 62 subscript characters, it is thus achieved that timestamp dissipates Row code;
The random number represented with 62 systems is hashed in the character string dimension represented with 62 subscript characters, it is thus achieved that timestamp dissipates Row code;
Hash represent with 62 systems in the character string dimension represented with 62 subscript characters Zi increasing number, it is thus achieved that timestamp dissipates Row code.
5. according to the method described in claim 14 any one, it is characterised in that described in obtain ID particularly as follows:
By the timestamp hash code of generation, random number hash code and carry out permutation and combination from increasing hash code, obtain ID.
6. an ID generating means, it is characterised in that including:
Original character generation module, hash code generation module and ID generation module;
Described original character generation module is used for generating original character, and described original character includes timestamp, random number and certainly increases Number;
Described hash code generation module, for according to the timestamp generated, random number with from increasing number, generates timestamp hash respectively Code, random number hash code and oneself increasing hash code;
Described ID generation module is for according to the timestamp hash code generated, random number hash code with from increasing hash code Generate ID.
Device the most according to claim 6, it is characterised in that described original character generation module includes:
Timestamp signal generating unit, random number generation unit and oneself increasing signal generating unit;
Described timestamp signal generating unit is used for generating timestamp;
Described random number generation unit is used for generating random number;
Described increasing signal generating unit certainly is used for generating from increasing number.
Device the most according to claim 6, it is characterised in that described hash code generation module includes:
Timestamp hash code signal generating unit, random number hash code signal generating unit and oneself increasing hash code signal generating unit;
Described timestamp hash code signal generating unit is for generating timestamp hash code according to timestamp;
Described random number hash code signal generating unit is for according to generating random number random number hash code;
Described increasing hash code signal generating unit certainly is for according to from increasing number generation from increasing hash code.
Device the most according to claim 8, it is characterised in that described timestamp hash code signal generating unit is raw according to timestamp Becoming timestamp hash code particularly as follows: timestamp hash code signal generating unit is stabbed with 62 system express times, hash is to by 62 characters In the character string dimension of composition, generate timestamp hash code;
Described random number hash code signal generating unit according to generating random number random number hash code particularly as follows: random number hash code generate Unit represents random number with 62 systems, hashes in the character string dimension being made up of 62 characters, generates random number hash code;
Described increasing hash code signal generating unit certainly is according to generating from increasing hash code from increasing number particularly as follows: increasing hash code generates certainly Unit represents from increasing number with 62 systems, hashes in the character string dimension being made up of 62 characters, generates from increasing hash code.
10. according to the device described in claim 69 any one, it is characterised in that described ID generation module according to The timestamp hash code that generates, random number hash code and from increasings hash code generation ID particularly as follows: described ID Generation module by the timestamp hash code of generation, random number hash code and carries out permutation and combination from increasing hash code, obtains user Mark.
CN201610570101.1A 2016-07-19 2016-07-19 ID generates method and device Pending CN106230593A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610570101.1A CN106230593A (en) 2016-07-19 2016-07-19 ID generates method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610570101.1A CN106230593A (en) 2016-07-19 2016-07-19 ID generates method and device

Publications (1)

Publication Number Publication Date
CN106230593A true CN106230593A (en) 2016-12-14

Family

ID=57531898

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610570101.1A Pending CN106230593A (en) 2016-07-19 2016-07-19 ID generates method and device

Country Status (1)

Country Link
CN (1) CN106230593A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110634052A (en) * 2019-09-20 2019-12-31 中国银行股份有限公司 Method and device for generating order number by distributed architecture
CN115510815A (en) * 2022-11-17 2022-12-23 山东未来网络研究院(紫金山实验室工业互联网创新应用基地) Rule-based identification generation method and apparatus

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060162071A1 (en) * 2005-01-27 2006-07-27 Eleri Dixon A/B testing
CN102611558A (en) * 2012-04-27 2012-07-25 西安电子科技大学 Magic square-based secret key distribution and identity authentication method of electronic account administrated by multi-users commonly
CN102624749A (en) * 2012-04-13 2012-08-01 宁波市北仑海伯精密机械制造有限公司 Load balancing method and system for safety communication
CN104102576A (en) * 2013-04-12 2014-10-15 阿里巴巴集团控股有限公司 Multi-version test method and device
CN105450712A (en) * 2014-09-02 2016-03-30 阿里巴巴集团控股有限公司 Data transmission method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060162071A1 (en) * 2005-01-27 2006-07-27 Eleri Dixon A/B testing
CN102624749A (en) * 2012-04-13 2012-08-01 宁波市北仑海伯精密机械制造有限公司 Load balancing method and system for safety communication
CN102611558A (en) * 2012-04-27 2012-07-25 西安电子科技大学 Magic square-based secret key distribution and identity authentication method of electronic account administrated by multi-users commonly
CN104102576A (en) * 2013-04-12 2014-10-15 阿里巴巴集团控股有限公司 Multi-version test method and device
CN105450712A (en) * 2014-09-02 2016-03-30 阿里巴巴集团控股有限公司 Data transmission method and device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110634052A (en) * 2019-09-20 2019-12-31 中国银行股份有限公司 Method and device for generating order number by distributed architecture
CN115510815A (en) * 2022-11-17 2022-12-23 山东未来网络研究院(紫金山实验室工业互联网创新应用基地) Rule-based identification generation method and apparatus

Similar Documents

Publication Publication Date Title
US9720943B2 (en) Columnar table data protection
US7864952B2 (en) Data processing systems with format-preserving encryption and decryption engines
Li et al. Fast range query processing with strong privacy protection for cloud computing
US9519805B2 (en) Digest obfuscation for data cryptography
CN106203139A (en) A kind of data local desensitization method
US9208491B2 (en) Format-preserving cryptographic systems
CN110110163A (en) Safe substring search is with filtering enciphered data
US10291393B1 (en) Data deduplication and compression evaluation methods and systems
Smith Secure pseudonymisation for privacy-preserving probabilistic record linkage
Srivastava et al. A novel approach to security using extended playfair cipher
CN106610995B (en) Method, device and system for creating ciphertext index
WO2012115031A1 (en) Search system, search method for search system, information processing device, search program, corresponding keyword management device and corresponding keyword management system
EP2301185A2 (en) Format-preserving cryptographic systems
JP6120961B2 (en) Generation and verification of alternative data with a specific format
Sun et al. When gene meets cloud: Enabling scalable and efficient range query on encrypted genomic data
US8538013B2 (en) Rules-driven hash building
CN113127915A (en) Data encryption desensitization method and device, electronic equipment and storage medium
US10505715B2 (en) Method and system of synchronous encryption to render computer files and messages impervious to pattern recognition and brute force attacks
CN106230593A (en) ID generates method and device
CN108416229B (en) Data desensitization method for category information
WO2009001053A1 (en) Randomisation
EP3502947B1 (en) Method, computer program product and processing system for generating secure alternative representation
KR101049072B1 (en) The method of mapping using identification data
US20160337120A1 (en) Equivoe-T: Transposition Equivocation Cryptography
CN111324908A (en) Batch data desensitization method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20161214