CN103457721A - Method and device for generating passwords in bulk - Google Patents
Method and device for generating passwords in bulk Download PDFInfo
- Publication number
- CN103457721A CN103457721A CN2013102604711A CN201310260471A CN103457721A CN 103457721 A CN103457721 A CN 103457721A CN 2013102604711 A CN2013102604711 A CN 2013102604711A CN 201310260471 A CN201310260471 A CN 201310260471A CN 103457721 A CN103457721 A CN 103457721A
- Authority
- CN
- China
- Prior art keywords
- password
- character
- key
- module
- keys
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Landscapes
- Document Processing Apparatus (AREA)
- Storage Device Security (AREA)
Abstract
The invention relates to a method and device for generating passwords in bulk. The method includes the following steps that the number of target passwords of passwords to be generated is obtained and stored; the total number of characters in a password source file is obtained according to the password source file, and a character is randomly selected from the characters in a range between 0 to the total number of the characters in the password source file; password source data are obtained according to positional information of the selected character; the selected character is used as a secret key to be preserved, and the number of secret keys is recorded; when the number of the secret keys reaches a predetermined secret key number, secret key data of the predetermined secret key number are combined and converted to generate passwords, the actual number of the passwords is recorded, the secret keys and the passwords are preserved in a database, returning to the step 5 is carried out, and when the number of the secret keys does not reach the predetermined secret key number, returning to the step 2 is carried out; whether the actual number of the passwords is identical to that of the target passwords or not is judged. The method and device can effectively ensure that an administrator has control over generation of the passwords and the secret keys, and provides a safety guarantee for the combination of software and hardware.
Description
Technical field
The present invention relates to a kind of encryption method, particularly a kind of method of Mass production password and device.
Background technology
In prior art, it is all that system generates automatically that password generates, and the risk that password is revealed is higher.
Encryption technology is divided into two large classes usually: symmetry encryption and asymmetric are encrypted.Symmetry encryption is widely used.It is not same key that asymmetric is encrypted what be exactly that encryption and decryption are used, and two keys are arranged usually, is called " PKI " and " private key ", they two must match use otherwise can not open encrypt file.
Data Encryption Standard (DES) is symmetric cryptographic algorithm, is exactly that encryption key can be calculated out from decruption key, also sets up conversely.Key is shorter, and encryption is simple, and encryption/decryption speed is fast, is applicable to encrypt the occasion of mass data.
RSA is asymmetric arithmetic, and encryption key and decruption key are different, can not go out another key by one of them key derivation in other words.Keys sizes is large, and encryption/decryption speed is slow, generally is used for encrypting low volume data, such as the key of DES.SHA1 and MD5 are hashing algorithms, by the data-mapping to of arbitrary size less, unique value regular length.The hash that encryption is strong must be irreversible, and this just means can't release the raw information of any part by the hash result.The variation of any input message, even only one, all will cause the significant change of hash result, this is referred to as avalanche effect.Hash should be also anti-collision, can not find two information with same Hash result.Whether the hash result with these characteristics just can be modified for authorization information.MD5 is than SHA1 about fast 33%.
Summary of the invention
Technical problem to be solved by this invention is to provide a kind of method and device that can the Mass production password.
The technical scheme that the present invention solves the problems of the technologies described above is as follows: a kind of method of Mass production password comprises the following steps:
Step 1: obtain the target password quantity of password to be generated, storage target password quantity;
Step 2: obtain the character sum in the password source file according to the password source file, from the password source file, zero chooses at random a character to the scope of character sum, obtains the positional information of character;
Step 3: according to the positional information of the character of choosing, obtain the password source data, the character of choosing is also preserved as key, the quantity of statistics key;
Step 4: when the quantity of key reaches predetermined number of keys, the password source data of predetermined number of keys is combined, changed, generating cipher, add up actual password quantity, key and password are saved in database, proceed to step 5, when the quantity of key does not reach predetermined number of keys, proceed to step 2;
Step 5: judge that whether actual password quantity is identical with target password quantity, if identical, end process, otherwise, proceed to step 2.
The invention has the beneficial effects as follows: effectively guarantee the control of manager for the generation of password and key, the guarantee of fail safe is provided to software and hardware combining, allow the generation control of authority of password in the minority staff, make cryptographic key possess non-reproduction, effectively controlled in the motor vehicle monitoring business risk for the quality certificate and key.
On the basis of technique scheme, the present invention can also do following improvement.
Further, described step 3 further comprises:
Step 3a: obtain character line number, row number and the page number;
Step 3b: by the line number of character, row number and the page number combined, form a password source data;
Step 3c: described character is as key and preserve the quantity of statistics key.
The beneficial effect that adopts above-mentioned further scheme is that the secret key safety rank of a plurality of characters compositions is higher, be not easy to crack, if use single character as key, the person that only is not cracked finds corresponding word file to be easy to be cracked, if as key, the speed of generating cipher key can reduce by too many character combination.
Further, the file that described password source file is the word2003 version.
The beneficial effect that adopts above-mentioned further scheme is that not only word is formatted file, the character that can forward obtains capable certain row of certain page number in document, and capable certain row of certain page number that can oppositely obtain certain character place, effectively control the input source that the user provides simultaneously, reduce the run time error of cryptographic algorithm.
Further, a kind of device of Mass production password, comprise and obtain the destination number module, chooses character module, generates cipher key module, generating cipher module and judgement password quantity module;
The described destination number module of obtaining, for obtaining the target password quantity quantity of password to be generated, storage target password quantity, send to judgement password quantity module by target password quantity;
The described character module of choosing, for obtain the character sum of password original according to the password source file, from the password source file, zero chooses at random a character to the scope of character sum, obtains the positional information of character, and the positional information of described character is sent to the generation cipher key module;
Described generation cipher key module, for receiving the positional information of character, according to the positional information of character, obtain the password source data, and the character of choosing is also preserved as key, and the quantity of statistics key, send to the generating cipher module by the quantity of key;
Described generating cipher module, for receiving the quantity of key, when the quantity of key reaches predetermined number of keys, the password source data of predetermined number of keys is combined, changes, and generating cipher, add up actual password quantity, key and password are saved in database, actual password quantity is sent to judgement password quantity module, when the quantity of key does not reach predetermined number of keys, re-execute and choose character module;
Described judgement password quantity module, for receiving target password quantity and actual password quantity, judge that whether actual password quantity is identical with target password quantity, if identical, end process, otherwise, proceed to and choose character module.
The beneficial effect that adopts above-mentioned further scheme is effectively to guarantee the control of manager for the generation of password and key, the guarantee of fail safe is provided to software and hardware combining, allow the generation control of authority of password in the minority staff, make cryptographic key possess non-reproduction, effectively controlled in the motor vehicle monitoring business risk for the quality certificate and key.
Further, described generation cipher key module further comprises: obtain position module, combination pin module and key handling module;
The described position module of obtaining, for the line number of obtaining character, row number and the page number, send to the combination pin module by line number, row number and the page number, and character is sent to the key handling module;
Described combination pin module, for receive line number, row number and the page number, by the line number of character, row number and the page number combined, form a password source data, the password metadata is sent to the key handling module;
Described key handling module, for receiving character, using character as key, preserve key, the quantity of statistics key.
The beneficial effect that adopts above-mentioned further scheme is that the data of bonding word file generated cryptographic key maximize; Simultaneously the monocase key for password be easy to be cracked, in order to guarantee fail safe, adopt a plurality of characters of combination; The password formed for page number line number row number, even key is lost, also can be listed as by the corresponding page number line number of manually searching corresponding word file number fixing definite this locational single character.
Further, the file that described password source file is the word2003 version.
The beneficial effect that adopts above-mentioned further scheme is that not only word is formatted file, the character that can forward obtains capable certain row of certain page number in document, and capable certain row of certain page number that can oppositely obtain certain character place, effectively control the input source that the user provides simultaneously, reduce the run time error of cryptographic algorithm.
The accompanying drawing explanation
Fig. 1 is the inventive method flow chart of steps;
Fig. 2 is apparatus of the present invention structure chart.
In accompanying drawing, the list of parts of each label representative is as follows:
1, obtain the destination number module, 2, choose character module, 3, generate cipher key module, 4, the generating cipher module, 5, judgement password quantity module, 6, obtain position module, 7, the combination pin module, 8, accumulator module, 9, the key handling module.
Embodiment
Below in conjunction with accompanying drawing, principle of the present invention and feature are described, example, only for explaining the present invention, is not intended to limit scope of the present invention.
As shown in Figure 1, the inventive method flow chart of steps; Fig. 2 is apparatus of the present invention structure chart.
A kind of method of Mass production password comprises the following steps:
Step 1: obtain the target password quantity of password to be generated, storage target password quantity;
Step 2: obtain the character sum in the password source file according to the password source file, from the password source file, zero chooses at random a character to the scope of character sum, obtains the positional information of character;
Step 3: according to the positional information of the character of choosing, obtain the password source data, the character of choosing is also preserved as key, the quantity of statistics key;
Step 4: when the quantity of key reaches predetermined number of keys, the password source data of predetermined number of keys is combined, changed, generating cipher, add up actual password quantity, key and password are saved in database, proceed to step 5, when the quantity of key does not reach predetermined number of keys, proceed to step 2;
Step 5: judge that whether actual password quantity is identical with target password quantity, if identical, end process, otherwise, proceed to step 2.
Described step 3 further comprises:
Step 3a: obtain character line number, row number and the page number;
Step 3b: by the line number of character, row number and the page number combined, form a password source data;
Step 3c: described character is as key and preserve the quantity of statistics key.
The file that described password source file is the word2003 version.
A kind of device of Mass production password, comprise and obtain destination number module 1, chooses character module 2, generates cipher key module 3, generating cipher module 4 and judgement password quantity module 5;
The described destination number module 1 of obtaining, for obtaining the target password quantity quantity of password to be generated, storage target password quantity, send to judgement password quantity module 5 by target password quantity;
The described character module 2 of choosing, for obtain the character sum of password original according to the password source file, from the password source file, zero chooses at random a character to the scope of character sum, obtains the positional information of character, and the positional information of described character is sent to and generates cipher key module 3;
Described generation cipher key module 3, for receiving the positional information of character, according to the positional information of character, obtain the password source data, and the character of choosing is also preserved as key, and the quantity of statistics key, send to generating cipher module 4 by the quantity of key;
Described generating cipher module 4, for receiving the quantity of key, when the quantity of key reaches predetermined number of keys, the password source data of predetermined number of keys is combined, changes, and generating cipher, add up actual password quantity, key and password are saved in database, actual password quantity is sent to judgement password quantity module 5, when the quantity of key does not reach predetermined number of keys, re-execute and choose character module 2;
Described judgement password quantity module 5, for receiving target password quantity and actual password quantity, judge that whether actual password quantity is identical with target password quantity, if identical, end process, otherwise, proceed to and choose character module 2.
Described generation cipher key module 3 further comprises: obtain position module 6, combination pin module 7 and key handling module 8;
The described position module 6 of obtaining, for the line number of obtaining character, row number and the page number, send to combination pin module 7 by line number, row number and the page number, and character is sent to key handling module 9;
Described combination pin module 7, for receive line number, row number and the page number, by the line number of character, row number and the page number combined, form a password source data, the password metadata is sent to key handling module 8;
Described key handling module 8, for receiving character, using character as key, preserve key, the quantity of statistics key.The file that described password source file is the word2003 version.
The main purpose that the application will reach is by the Mass production of manual control password, prevents that password from being revealed.The password produced is to serve for the combination lock of operation system.When business handling examine by after, system issues password automatically to combination lock, is that the business handling record produces a password and downloads for the user simultaneously.Handle situation according to practical business, after the user downloads required password, on the combination lock operation interface, the password of this download of input, can open casing, collects evidence and put the card operation.
The background processes of controlling password and key generation mainly is divided into following several step:
The Word(2003 version that the user is uploaded) file is processed, the total number of word of statistics this document;
Obtain at random the character of any one position in 0-total number of word scope in this document, obtain line number in this character place word file, row number and the page number, and record this information;
Using line number, row number, the addition of page number character string is as password, using the character addition of obtaining at random as key;
When meeting key length and be 3, connection data storehouse, and to data inserting in database, record is by the line number at 3 characters of random generation and these three character places, row number, the page number number, otherwise first three steps is carried out in circulation;
Until the password number produced equals the password number that the batch of user's setting need generate, finish password and produce flow process, otherwise front four steps are carried out in circulation, until the thread end.
The foregoing is only preferred embodiment of the present invention, in order to limit the present invention, within the spirit and principles in the present invention not all, any modification of doing, be equal to replacement, improvement etc., within all should being included in protection scope of the present invention.
Claims (6)
1. the method for a Mass production password, is characterized in that, comprises the following steps:
Step 1: obtain the target password quantity of password to be generated, storage target password quantity;
Step 2: obtain the character sum in the password source file according to the password source file, from the password source file, zero chooses at random a character to the scope of character sum, obtains the positional information of character;
Step 3: according to the positional information of the character of choosing, obtain the password source data, the character of choosing is also preserved as key, the quantity of statistics key;
Step 4: when the quantity of key reaches predetermined number of keys, the password source data of predetermined number of keys is combined, changed, generating cipher, add up actual password quantity, key and password are saved in database, proceed to step 5, when the quantity of key does not reach predetermined number of keys, proceed to step 2;
Step 5: judge that whether actual password quantity is identical with target password quantity, if identical, end process, otherwise, proceed to step 2.
2. the method for Mass production password according to claim 1, it is characterized in that: described step 3 further comprises:
Step 3a: obtain character line number, row number and the page number;
Step 3b: by the line number of character, row number and the page number combined, form a password source data;
Step 3c: described character is as key and preserve the quantity of statistics key.
3. the method for Mass production password according to claim 1, is characterized in that: the file that described password source file is the word2003 version.
4. the device of a Mass production password, is characterized in that: comprise and obtain destination number module (1), choose character module (2), generate cipher key module (3), generating cipher module (4) and judgement password quantity module (5);
The described destination number module (1) of obtaining, for obtaining the target password quantity quantity of password to be generated, storage target password quantity, send to judgement password quantity module (5) by target password quantity;
The described character module (2) of choosing, for obtain the character sum of password original according to the password source file, from the password source file, zero chooses at random a character to the scope of character sum, obtain the positional information of character, the positional information of described character is sent to and generates cipher key module (3);
Described generation cipher key module (3), for receiving the positional information of character, according to the positional information of character, obtain the password source data, and the character of choosing is also preserved as key, and the quantity of statistics key, send to generating cipher module (4) by the quantity of key;
Described generating cipher module (4), for receiving the quantity of key, when the quantity of key reaches predetermined number of keys, the password source data of predetermined number of keys is combined, changes, and generating cipher, add up actual password quantity, key and password are saved in database, actual password quantity is sent to judgement password quantity module (5), when the quantity of key does not reach predetermined number of keys, re-execute and choose character module (2);
Described judgement password quantity module (5), for receiving target password quantity and actual password quantity, judge that whether actual password quantity is identical with target password quantity, if identical, end process, otherwise, proceed to and choose character module (2).
5. the device of Mass production password according to claim 5, it is characterized in that: described generation cipher key module (3) further comprises: obtain position module (6), combination pin module (7) and key handling module (8);
The described position module (6) of obtaining, for the line number of obtaining character, row number and the page number, send to combination pin module (7) by line number, row number and the page number, and character is sent to key handling module (9);
Described combination pin module (7), for receive line number, row number and the page number, by the line number of character, row number and the page number combined, form a password source data, the password metadata is sent to key handling module (8);
Described key handling module (8), for receiving character, using character as key, preserve key, the quantity of statistics key.
6. the device of Mass production password according to claim 5, is characterized in that: the file that described password source file is the word2003 version.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310260471.1A CN103457721B (en) | 2013-06-26 | 2013-06-26 | A kind of method and device of Mass production password |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310260471.1A CN103457721B (en) | 2013-06-26 | 2013-06-26 | A kind of method and device of Mass production password |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103457721A true CN103457721A (en) | 2013-12-18 |
CN103457721B CN103457721B (en) | 2016-08-24 |
Family
ID=49739717
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310260471.1A Active CN103457721B (en) | 2013-06-26 | 2013-06-26 | A kind of method and device of Mass production password |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103457721B (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106790191A (en) * | 2016-12-30 | 2017-05-31 | 桂林电子科技大学 | A kind of method of the key management of a large amount of keys of needs |
CN111211895A (en) * | 2019-12-18 | 2020-05-29 | 北京邮电大学 | Key analysis processing method and device and key distribution randomness detection system |
CN111859351A (en) * | 2020-06-22 | 2020-10-30 | 深圳米飞泰克科技有限公司 | Method, system, server and storage medium for writing information into chip |
CN117238065A (en) * | 2023-11-10 | 2023-12-15 | 深圳市每开创新科技有限公司 | Unlocking method, passive electronic lock, electronic device and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1369809A (en) * | 2002-01-14 | 2002-09-18 | 张国柱 | Anti-piracy encryption method for register code of computer software |
CN1593033A (en) * | 2002-02-01 | 2005-03-09 | 思科技术公司 | Method and system for securely storing and transmitting data by applying a one-time pad |
CN1871809A (en) * | 2004-05-03 | 2006-11-29 | 捷讯研究有限公司 | System and method for generating reproducible session keys |
CN102222188A (en) * | 2011-06-09 | 2011-10-19 | 昆明有色冶金设计研究院股份公司 | Information system user password generation method |
-
2013
- 2013-06-26 CN CN201310260471.1A patent/CN103457721B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1369809A (en) * | 2002-01-14 | 2002-09-18 | 张国柱 | Anti-piracy encryption method for register code of computer software |
CN1593033A (en) * | 2002-02-01 | 2005-03-09 | 思科技术公司 | Method and system for securely storing and transmitting data by applying a one-time pad |
CN1871809A (en) * | 2004-05-03 | 2006-11-29 | 捷讯研究有限公司 | System and method for generating reproducible session keys |
CN102222188A (en) * | 2011-06-09 | 2011-10-19 | 昆明有色冶金设计研究院股份公司 | Information system user password generation method |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106790191A (en) * | 2016-12-30 | 2017-05-31 | 桂林电子科技大学 | A kind of method of the key management of a large amount of keys of needs |
CN111211895A (en) * | 2019-12-18 | 2020-05-29 | 北京邮电大学 | Key analysis processing method and device and key distribution randomness detection system |
CN111859351A (en) * | 2020-06-22 | 2020-10-30 | 深圳米飞泰克科技有限公司 | Method, system, server and storage medium for writing information into chip |
CN117238065A (en) * | 2023-11-10 | 2023-12-15 | 深圳市每开创新科技有限公司 | Unlocking method, passive electronic lock, electronic device and storage medium |
CN117238065B (en) * | 2023-11-10 | 2024-03-26 | 深圳市每开创新科技有限公司 | Unlocking method, passive electronic lock, electronic device and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN103457721B (en) | 2016-08-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105939191B (en) | The client secure De-weight method of ciphertext data in a kind of cloud storage | |
US9735962B1 (en) | Three layer key wrapping for securing encryption keys in a data storage system | |
CN109474423A (en) | Data encryption/decryption method, server and storage medium | |
US11184164B2 (en) | Secure crypto system attributes | |
US8892866B2 (en) | Secure cloud storage and synchronization systems and methods | |
US10374807B2 (en) | Storing and retrieving ciphertext in data storage | |
CN104184586B (en) | Message authentication code generating method realizes the authentication device and certification request device of this method | |
CA2921740C (en) | Enabling access to data | |
US20160028699A1 (en) | Encrypted network storage space | |
US9602280B2 (en) | System and method for content encryption in a key/value store | |
US10015014B2 (en) | Technologies for secure presence assurance | |
CN109672521B (en) | Security storage system and method based on national encryption engine | |
KR101989813B1 (en) | Generating and verifying the alternative data in a specified format | |
KR101739203B1 (en) | Password-based user authentication method using one-time private key-based digital signature and homomorphic encryption | |
US10116442B2 (en) | Data storage apparatus, data updating system, data processing method, and computer readable medium | |
CN103731423A (en) | Safe method for repeated data deleting | |
CN104967693A (en) | Document similarity calculation method facing cloud storage based on fully homomorphic password technology | |
CN104901810A (en) | Data encryption storage method based on domestic cryptographic algorithm | |
US10944579B2 (en) | Device pairing and authentication | |
TW202036384A (en) | Cryptography chip with identity verification | |
CN103457721A (en) | Method and device for generating passwords in bulk | |
WO2016202089A1 (en) | Method, apparatus, and system for encrypting data of remote storage device | |
KR101593675B1 (en) | User data integrity verification method and apparatus | |
US10057054B2 (en) | Method and system for remotely keyed encrypting/decrypting data with prior checking a token | |
CN109255225A (en) | Hard disc data security control apparatus based on dual-identity authentication |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right | ||
TR01 | Transfer of patent right |
Effective date of registration: 20210701 Address after: 518000 Room 201, building A, No. 1, Qian Wan Road, Qianhai Shenzhen Hong Kong cooperation zone, Shenzhen, Guangdong (Shenzhen Qianhai business secretary Co., Ltd.) Patentee after: CHANGJIU JINFU ENTERPRISE MANAGEMENT CONSULTING (SHENZHEN) Co.,Ltd. Address before: 130000 Donggang Village, Xixin Township, Lvyuan District, Changchun City, Jilin Province Patentee before: Jilin Changjiu Industrial Group Co.,Ltd. |