WO2017113587A1 - 创建wep密码的方法和装置 - Google Patents
创建wep密码的方法和装置 Download PDFInfo
- Publication number
- WO2017113587A1 WO2017113587A1 PCT/CN2016/084229 CN2016084229W WO2017113587A1 WO 2017113587 A1 WO2017113587 A1 WO 2017113587A1 CN 2016084229 W CN2016084229 W CN 2016084229W WO 2017113587 A1 WO2017113587 A1 WO 2017113587A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- wireless network
- network hotspot
- character string
- letters
- name
- Prior art date
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W12/00—Security arrangements; Authentication; Protecting privacy or anonymity
- H04W12/03—Protecting confidentiality, e.g. by encryption
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L9/00—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
- H04L9/08—Key distribution or management, e.g. generation, sharing or updating, of cryptographic keys or passwords
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L9/00—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
- H04L9/08—Key distribution or management, e.g. generation, sharing or updating, of cryptographic keys or passwords
- H04L9/0861—Generation of secret information including derivation or calculation of cryptographic keys or passwords
- H04L9/0869—Generation of secret information including derivation or calculation of cryptographic keys or passwords involving random numbers or seeds
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W12/00—Security arrangements; Authentication; Protecting privacy or anonymity
- H04W12/02—Protecting privacy or anonymity, e.g. protecting personally identifiable information [PII]
Definitions
- the present invention relates to the field of wireless communication technologies, and in particular, to a method and an apparatus for creating a password.
- Wired Equivalent Wired Equivalent
- the Privacy, WEP mode requires the user to manually enter a certain number of passwords, such as 16-bit, 32-bit, and so on.
- the main object of the present invention is to provide a method and apparatus for creating a WEP password, which aims to realize a WEP password for automatically creating a hotspot of a wireless network.
- the present invention provides a method for creating a WEP password, the method comprising the following steps:
- the encryption type of the wireless network hotspot is WEP
- the first character string of the first predetermined length and the second character of the second predetermined length generated according to the predetermined rule according to the letters in the wireless network hotspot name are composed of randomly generated numbers.
- the string formed after string concatenation is created as a WEP password.
- the first character string of the first predetermined length consisting of randomly generated numbers and the character string formed by concatenating the second character string of the second predetermined length generated according to the predetermined rule in the wireless network hotspot name are created.
- the steps for the WEP password include:
- the second character string and the first character string are concatenated as a WEP password of the wireless network hotspot.
- the extracted letters, the randomly selected letters, and the first character string are sequentially sorted to obtain a sorted character string, and the character string is used as a WEP password of the wireless network hotspot.
- the present invention also provides a method for creating a WEP password, the method comprising the following steps:
- a character string formed by randomly generating a first character string of a first predetermined length and a second character string of a second predetermined length generated according to a predetermined rule according to a letter in a wireless network hotspot name is created as a WEP password.
- the step of identifying the letters in the wireless network hotspot name includes:
- the first character string of the first predetermined length consisting of randomly generated numbers and the character string formed by concatenating the second character string of the second predetermined length generated according to the predetermined rule in the wireless network hotspot name are created.
- the steps for the WEP password include:
- the second character string and the first character string are concatenated as a WEP password of the wireless network hotspot.
- the extracted letters, the randomly selected letters, and the first character string are sequentially sorted to obtain a sorted character string, and the character string is used as a WEP password of the wireless network hotspot.
- the first character string of the first predetermined length consisting of randomly generated numbers and the character string formed by concatenating the second character string of the second predetermined length generated according to the predetermined rule in the wireless network hotspot name are created Before the steps for the WEP password are also included:
- the string formed after the second string is concatenated is created as a WEP password.
- the present invention also provides an apparatus for creating a WEP password, the apparatus comprising:
- a receiving module configured to receive a wireless network hotspot name input by the user on the wireless network setting page
- An identification module configured to identify a letter in the wireless network hotspot name
- a creating module configured to, by a randomly generated number, a first character string of a first predetermined length and a string formed by concatenating a second character string of a second predetermined length generated according to a predetermined rule in a wireless network hotspot name Create a WEP password.
- the device further comprises:
- a determining module configured to determine whether characters in the wireless network hotspot name are all legal characters, wherein the legal characters include English letters and numbers;
- the identifying module is further configured to: if the characters in the wireless network hotspot name are all legal characters, perform the step of: identifying the letters in the wireless network hotspot name.
- the creating module includes:
- An extracting unit configured to extract a letter in a name of the wireless network hotspot
- a selecting unit configured to randomly select a letter of the corresponding number of bits among all the English letters and the extracted letter to form a second character string of a second preset length, and randomly select the numbers in the numbers 0-9 to generate the first predetermined number
- the first string of length
- a creating unit configured to serially connect the second string and the first string as a WEP password of the wireless network hotspot.
- the creating unit is further configured to sequentially sort the extracted letters, the randomly selected letters, and the first character string to obtain a sorted string, and use the string as the hotspot of the wireless network. WEP password.
- the device further comprises:
- the creating module is further configured to: when the type of the wireless network hotspot is WEP, perform the steps of: forming, by a randomly generated number, a first character string of a first predetermined length and according to a predetermined rule according to a letter in a wireless network hotspot name The generated character string formed by concatenating the second string of the second predetermined length is created as a WEP password.
- the invention receives the name of the wireless network hotspot input by the user on the wireless network setting page; identifies the letter in the wireless network hotspot name; the randomly generated number constitutes the first predetermined length of the first character string and according to the wireless network hotspot name
- the character string formed by concatenating the second character string of the second predetermined length generated by the letter in accordance with the predetermined rule is created as a WEP password.
- the present invention can automatically create a corresponding WEP password according to the characters in the name entered by the user on the wireless network setting page, thereby reducing the user operation and improving the creation efficiency of the WEP password of the wireless network hotspot.
- FIG. 1 is a schematic flowchart of a first embodiment of a method for creating a WEP password according to the present invention
- FIG. 2 is a schematic flowchart of a second embodiment of a method for creating a WEP password according to the present invention
- FIG. 3 is a schematic diagram of a first character string of a first predetermined length composed of randomly generated numbers and a second character string of a second predetermined length generated according to a predetermined rule according to a predetermined name in a wireless network hotspot name according to an embodiment of the present invention.
- FIG. 4 is a schematic flowchart of a third embodiment of a method for creating a WEP password according to the present invention.
- FIG. 5 is a schematic diagram of functional modules of a first embodiment of a device for creating a WEP password according to the present invention
- FIG. 6 is a schematic diagram of functional modules of a second embodiment of a device for creating a WEP password according to the present invention.
- FIG. 7 is a schematic diagram of a refinement function module for creating a module according to an embodiment of the present invention.
- FIG. 8 is a schematic diagram of functional modules of a third embodiment of a device for creating a WEP password according to the present invention.
- the present invention provides a method of creating a WEP password.
- FIG. 1 is a schematic flowchart diagram of a first embodiment of a method for creating a WEP password according to the present invention.
- the method for creating a password includes:
- Step S10 receiving a wireless network hotspot name input by the user on the wireless network setting page
- the smart TV is used as the main body of the execution.
- the device may be a device such as a router or a mobile terminal that can set a hotspot of the wireless network.
- a wireless network circuit can be disposed on the smart television, and the wireless network circuit can be used for the hotspot mode circuit, and can also be included as a sub-circuit of the client.
- the wireless network circuit can also be set on the smart TV.
- the smart TV is only used as the display for setting the wireless network password, that is, the wireless network hotspot password of the wireless router is set by the smart TV.
- the software of the present invention can be applied to the wireless router. in.
- the invention can also be applied to a smart TV, and the password of the wireless router is automatically set by the smart TV.
- the user can open the wireless network setting page through the operation device of the smart TV, open the wireless network setting or add a new function, for example, open the wireless network setting page through the setting menu or open the router wireless network setting page through the webpage, and of course, the first When it is used for a second time, the smart TV or router automatically jumps to the wireless network setting page and displays it through the smart TV display interface.
- the smart television real-time monitors the position generated by the operating device in the position of the display page. When the focus moves to the setting wireless network setting page name SSID, the user can input the wireless network hotspot name in the name input box.
- Step S20 identifying a letter in the name of the wireless network hotspot
- the letters in the wireless network hotspot name are automatically identified. Specifically, after the user inputs the wireless network hotspot name for a period of time, when the user continues to operate, the user is determined to input the wireless hotspot. After the name is completed, the device automatically recognizes the letters in the wireless network hotspot name. Of course, when the user inputs the wireless hotspot name, the user may click a button to generate a password in the page by operating the device, and the smart TV starts.
- Identifying a letter in the wireless network hotspot name in a specific implementation, when the user moves the focus corresponding to the operating device to another location other than the name input box, determining that the wireless network hotspot name is input, the smart TV starts. Identifying the letters in the wireless network hotspot name.
- Step S30 a string formed by randomly generating a first character string of a first predetermined length and a second character string of a second predetermined length generated according to a predetermined rule according to a letter in a wireless network hotspot name is created as WEP password.
- the letter identified in step S20 is created with a corresponding WEP password by a preset rule, such as a number and/or a letter of a fixed number of bits randomly added after the character of the wireless network hotspot name is recognized.
- a preset rule such as a number and/or a letter of a fixed number of bits randomly added after the character of the wireless network hotspot name is recognized. If some systems set the WEP password digits rule, after identifying the wireless network hotspot name characters, obtain the number of digits required for WEP password encryption in the system, such as 16 bits, 32 bits, 64 bits, etc., and then identify The character is followed by the character corresponding to the number of digits. If the number of characters in the wireless network hotspot name is greater than the number of digits of the password, the character corresponding to the number of bits is randomly selected as the password among the recognized characters.
- the letters in the wireless network hotspot name may not be identified.
- the corresponding WEP password is directly created according to the preset rule, for example, the WEP password of the corresponding digit is directly generated randomly.
- WEP passwords can also be added in other ways.
- the invention receives the name of the wireless network hotspot input by the user on the wireless network setting page; identifies the letter in the wireless network hotspot name; the randomly generated number constitutes the first predetermined length of the first character string and according to the wireless network hotspot name
- the character string formed by concatenating the second character string of the second predetermined length generated by the letter in accordance with the predetermined rule is created as a WEP password.
- the present invention can automatically create a corresponding WEP password according to the characters in the name entered by the user on the wireless network setting page, thereby reducing the user operation and improving the creation efficiency of the WEP password of the wireless network hotspot.
- FIG. 2 is a schematic flowchart diagram of a second embodiment of a method for creating a WEP password according to the present invention.
- the first embodiment of the method for creating a WEP password according to the present invention may further include:
- Step S40 Determine whether the characters in the wireless network hotspot name are all legal characters.
- the commonly set passwords are numbers and letters.
- the legal characters may also include some common symbols such as a slash.
- step S20 is performed to identify the letter in the wireless network hotspot name. Otherwise, the corresponding hotspot password will not be created. Of course, a prompt can also be popped up, for example, the name is invalid.
- FIG. 3 is a first string of a first predetermined length and a second string of a second predetermined length generated according to a predetermined rule according to a letter in a hotspot name of a wireless network according to an embodiment of the present invention.
- a string diagram of a string formed after concatenation is created as a WEP password.
- the second embodiment of the method for creating a password based on the present invention may include:
- Step S31 extracting letters in the wireless network hotspot name
- step S40 When it is determined in step S40 that the wireless network hotspot name includes legal characters, the letters in the wireless network hotspot name are extracted, that is, the English letters in the wireless network hotspot name are extracted.
- Step S32 randomly selecting the letter of the corresponding number of bits and the extracted letters to form a second character string of the second preset length among all the English letters, and randomly selecting the numbers in the numbers 0-9 to generate the first predetermined length.
- step S31 Determining, according to the character extracted in step S31, the number of bits of the character extracted in the hotspot name of the wireless network and the number of bits required for the preset number of encrypted bits, wherein the preset number of encrypted bits is a preset encrypted password.
- the number of bits can also be obtained in real time when the system is running in different systems.
- the number of bits required for WEP password encryption is generally 16, 32 and higher, it can be considered that the number of letters included in the name entered by the user is less than the number of digits required for WEP password encryption, when determining the required number of digits.
- in English letters and / or numbers 0 ⁇ 9 randomly select the English letters and / or numbers corresponding to the number of digits required, that is, randomly select the letters and / or numbers of the corresponding digits in AZ and 0-9, Including: randomly selecting the corresponding number of letters in AZ; randomly selecting the number of corresponding digits in 0-9; randomly selecting the letters and numbers of the corresponding digits in AZ and 0-9.
- the English letters are not case sensitive, and the Chinese and English letters in the specific implementation can be case-sensitive.
- the preset number of English letters and/or numbers is selected among the extracted English letters and/or numbers.
- a second character string of a second preset length composed of letters and randomly selected corresponding digits is extracted, and the first predetermined length of the digit group is extracted as the first character string, and the second pre-
- the length and the first preset length may be set according to specific conditions. For example, when the WEP password encryption digit is 16 bits, the second preset length and the first preset length are both 8 bits.
- Step S33 serially connecting the second character string and the first character string as a WEP password of the wireless network hotspot.
- the second character string determined according to step S32 and the first character string are concatenated as a password of the wireless network hotspot.
- the extracted letters, the randomly selected letters, and the first character string are sequentially sorted to obtain a sorted character string, and the character string is used as a WEP password of the wireless network hotspot.
- the number of preset interface bits is 16 bits
- the name of the wireless network hotspot input by the user is A_Wifi1
- the characters extracted into the wireless network hotspot name are A, W, i, f, i, and are extracted.
- the number in the wireless network hotspot name is 1, assuming that the number of digits and English letters in the password are both 8 digits, and 8 digits are randomly selected in 0-9, which are 9, 1, 3, 2, 4, 5, 7 in order. 8, because the extracted letters are less than 8 bits, then randomly select 3 bits in AZ, which are C, D, E in turn, randomly select the numbers, extract the characters in the wireless network hotspot name and randomly select
- the English alphabets are sorted in order, and the sorted string is obtained: 91324478AWifiCDE, and the sorted string is used as the password. Of course, you can sort by other sorting methods to get the sorted string. In the specific implementation, the number of digits and letters can be customized according to actual needs.
- FIG. 4 is a schematic flowchart diagram of a third embodiment of a method for creating a WEP password according to the present invention.
- the first embodiment of the method for creating a WEP password according to the present invention may further include:
- Step S50 obtaining an encryption type of the wireless network hotspot.
- This step may be performed before step S20; or may be performed before step S40; may also be performed after step S40, before step S30, that is, before identifying the letter in the wireless network hotspot name; or after identifying the wireless
- the letters in the hotspot name of the network are used to determine whether the characters in the hotspot name of the wireless network include legal characters, or after determining that the characters include legal characters
- the encryption of the wireless hotspot is obtained before the WEP password is created.
- Type where the encryption type of the wireless network hotspot includes wired equivalent encryption WEP, WPA, WPA2, and the like.
- step S30 is performed: the first predetermined length of the first character string and the second predetermined length generated according to the predetermined rule according to the letters in the wireless network hotspot name are formed by the randomly generated numbers.
- the string formed by the second string concatenation is created as a WEP password. For example, after the user inputs the name of the wireless network hotspot, the type of the hot spot selected by the user is WEP, or the default is when the user opens the wireless network password setting page.
- the type of the hotspot is WEP
- step S30 is performed: the first character string of the first predetermined length and the second predetermined length generated according to the predetermined rule according to the letters in the wireless network hotspot name are composed of randomly generated numbers.
- the string formed after the second string is concatenated is created as a WEP password.
- the password is not automatically created, or the automatically created password is cleared when the type selected by the user is not WEP.
- the present invention further provides an apparatus for creating a WEP password.
- FIG. 5 is a schematic diagram of functional modules of a first embodiment of a device for creating a WEP password according to the present invention.
- the device for creating a password includes:
- the receiving module 10 is configured to receive a wireless network hotspot name input by the user on the wireless network setting page.
- the smart TV is used as the main body of the execution.
- the device may be a device such as a router or a mobile terminal that can set a hotspot of the wireless network.
- a wireless network circuit can be disposed on the smart television, and the wireless network circuit can be used for the hotspot mode circuit, and can also be included as a sub-circuit of the client.
- the wireless network circuit can also be set on the smart TV.
- the smart TV is only used as the display for setting the wireless network password, that is, the wireless network hotspot password of the wireless router is set by the smart TV.
- the software of the present invention can be applied to the wireless router. in.
- the invention can also be applied to a smart TV, and the password of the wireless router is automatically set by the smart TV.
- the user can open the wireless network setting page through the operation device of the smart TV, open the wireless network setting or add a new function, for example, open the wireless network setting page through the setting menu or open the router wireless network setting page through the webpage, and of course, the first When it is used for a second time, the smart TV or router automatically jumps to the wireless network setting page and displays it through the smart TV display interface.
- the smart television real-time monitors the position generated by the operating device in the position of the display page. When the focus moves to the set wireless network setting page name SSID, the user can input a name in the wireless network hotspot name input box.
- the identification module 20 is configured to identify a letter in the wireless network hotspot name.
- the letters in the wireless network hotspot name are automatically identified. Specifically, after the user inputs the wireless network hotspot name for a period of time, if the user continues to operate, the user is determined to enter the name. The device automatically identifies the letter in the wireless network hotspot name. Of course, when the user inputs the wireless network hotspot name, the user can click the button for generating a password in the page by operating the device, and the smart TV starts to identify the In the specific implementation, when the user moves the focus corresponding to the operating device to another location other than the name input box, it is determined that the wireless network hotspot name is input, and the smart TV starts to identify the location. The letters in the wireless network hotspot name.
- a creating module 30 configured to form, by the randomly generated number, a first character string of a first predetermined length and a character string formed by concatenating a second character string of a second predetermined length according to a predetermined rule in a wireless network hotspot name
- the string is created as a WEP password.
- the corresponding WEP password is created by the preset rule according to the letter recognized by the identification module 20, for example, a fixed number of digits and/or letters are randomly added after the character of the wireless network hotspot name is recognized. If some systems set the WEP password digits rule, after identifying the wireless network hotspot name characters, obtain the number of digits required for WEP encryption in the system, such as 16 bits, 32 bits, 64 bits, etc., and then identify them. Add characters corresponding to the number of digits after the character. If the number of characters in the wireless network hotspot name is greater than the number of digits of the password, the character corresponding to the number of bits is randomly selected as the password among the recognized characters.
- the letters in the wireless network hotspot name may not be identified.
- the corresponding WEP password is directly created according to the preset rule, for example, the WEP password of the corresponding digit is directly generated randomly.
- WEP passwords can also be added in other ways.
- the invention receives the name of the wireless network hotspot input by the user on the wireless network setting page; identifies the letter in the wireless network hotspot name; the randomly generated number constitutes the first predetermined length of the first character string and according to the wireless network hotspot name
- the character string formed by concatenating the second character string of the second predetermined length generated by the letter in accordance with the predetermined rule is created as a WEP password.
- the present invention can automatically create a corresponding WEP password according to characters in the wireless network hotspot name input by the user on the wireless network setting page, thereby reducing user operations and improving the creation efficiency of the wireless network hotspot WEP password.
- FIG. 6 is a schematic diagram of functional modules of a second embodiment of a device for creating a WEP password according to the present invention.
- a first embodiment of the device for creating a WEP password according to the present invention the device further comprising:
- the determining module 40 is configured to determine whether the characters in the wireless network hotspot name are all legal characters, wherein the legal characters include English letters and numbers; and the identifying module 20 is further configured to: if the characters in the wireless network hotspot name All are legal characters, and the steps are performed: identifying the letters in the wireless network hotspot name.
- the commonly set passwords are numbers and letters.
- the legal characters may also include some common symbols such as a slash.
- the identification module 20 identifies the letters in the wireless network hotspot name, it is determined whether the characters in the wireless network hotspot name are all legal characters, wherein the legal characters are English letters and numbers, and the present embodiment identifies the When the characters in the wireless network hotspot name are English letters and/or numbers, they are considered as legal names; if the characters in the wireless network hotspot name include other characters except English letters and numbers, such as Chinese characters, the wireless network is considered The hotspot name is an illegal name.
- step S20 is performed to identify the letter in the wireless network hotspot name. Otherwise, the corresponding hotspot password will not be created. Of course, a prompt can also be popped up, for example, the name is invalid.
- FIG. 7 is a schematic diagram of a refinement function module for creating a module according to an embodiment of the present invention.
- the second embodiment of the apparatus for creating a WEP password according to the present invention the creating module 30 further includes:
- the extracting unit 31 is configured to extract the letters in the wireless network hotspot name if the characters in the wireless network hotspot name are legal characters.
- the determining module 40 determines that the wireless network hotspot name includes legal characters, extracting the letters in the wireless network hotspot name, that is, extracting the English letters in the wireless network hotspot name.
- the selecting unit 32 is configured to randomly select the letter of the corresponding number of bits and the extracted letters to form the second character string of the second preset length among all the English letters, and randomly select the numbers in the numbers 0-9 to generate the first character.
- the first string of the predetermined length is configured to randomly select the letter of the corresponding number of bits and the extracted letters to form the second character string of the second preset length among all the English letters, and randomly select the numbers in the numbers 0-9 to generate the first character.
- the first string of the predetermined length is configured to randomly select the letter of the corresponding number of bits and the extracted letters to form the second character string of the second preset length among all the English letters, and randomly select the numbers in the numbers 0-9 to generate the first character.
- the extracting unit 31 Determining, according to the character extracted by the extracting unit 31, the number of bits of the character extracted in the hotspot name of the wireless network and the number of digits required for the preset number of encrypted digits, the preset encrypted digits being a preset encryption
- the number of digits of the password can also be obtained in real time when the system is running in different systems.
- the number of bits required for WEP password encryption is generally 16, 32 and higher, it can be considered that the number of letters included in the name entered by the user is less than the number of digits required for WEP password encryption, when determining the required number of digits.
- randomly select the English letters and/or numbers corresponding to the required number of digits in English letters and/or one-digit integer numbers that is, randomly select the letters of the corresponding digits in AZ and/or numbers 0-9 and/or Or numbers, including: randomly selecting the letters of the corresponding number of digits in AZ; randomly selecting the number of corresponding digits in 0-9; randomly selecting the letters and numbers of the corresponding digits in AZ and 0-9.
- the English letters are not case sensitive, and the Chinese and English letters in the specific implementation can be case-sensitive.
- the preset number of English letters and/or numbers is selected among the extracted English letters and/or numbers.
- a second character string of a second preset length composed of letters and randomly selected corresponding digits is extracted, and the first predetermined length of the digit group is extracted as the first character string, and the second pre-
- the length and the first preset length may be set according to specific conditions. For example, when the WEP password encryption digit is 16 bits, the second preset length and the first preset length are both 8 bits.
- the creating unit 33 is configured to serially connect the second character string and the first character string as a WEP password of the wireless network hotspot.
- the creating unit 33 is further configured to sequentially sort the extracted letters, the randomly selected letters, and the first character string to obtain a sorted character string, and use the character string as the WEP password of the wireless network hotspot.
- the English alphabet and/or number corresponding to the corresponding number of bits selected by the selecting unit 32 and the character extracted to the wireless network hotspot name in step S31 are used as the password of the wireless network hotspot.
- the randomly selected number, the letter in the wireless network hotspot name, and the randomly selected alphabet are sequentially sorted to obtain a sorted string, and the character string is used as a password of the wireless network hotspot.
- the number of preset interface bits is 16 bits
- the name of the wireless network hotspot input by the user is A_Wifi1
- the characters extracted into the wireless network hotspot name are A, W, i, f, i, and are extracted.
- the number in the wireless network hotspot name is 1, assuming that the number of digits and English letters in the password are both 8 digits, and 8 digits are randomly selected in 0-9, which are 9, 1, 3, 2, 4, 5, 7 in order. 8, because the extracted letters are less than 8 bits, then randomly select 3 bits in AZ, which are C, D, E in turn, randomly select the numbers, extract the characters in the wireless network hotspot name and randomly select
- the English alphabets are sorted in order, and the sorted string is obtained: 91324478AWifiCDE, and the sorted string is used as the password. Of course, you can sort by other sorting methods to get the sorted string. In the specific implementation, the number of digits and letters can be customized according to actual needs.
- FIG. 8 is a schematic diagram of functional modules of a third embodiment of a device for creating a WEP password according to the present invention.
- a first embodiment of the device for creating a WEP password according to the present invention the device further comprising:
- the obtaining module 50 is configured to obtain an encryption type of the wireless network hotspot; the creating module 30 is further configured to: when the type of the wireless network hotspot is WEP, perform the step of: forming a first predetermined length by a randomly generated number A character string formed by concatenating a character string and a second character string of a second predetermined length generated according to a predetermined rule according to a letter in the wireless network hotspot name is created as a WEP password.
- the encryption type of the wireless network hotspot is obtained before the WEP password is created.
- the type of the wireless network hotspot includes wired equivalent encryption WEP, WPA, WPA2, and the like.
- the encryption type of the wireless network hotspot is WEP
- the string formed by the string concatenation is created as a WEP password.
- the type of the hot spot selected by the user is WEP, or the hotspot is defaulted when the user opens the wireless network password setting page.
- the encryption type is WEP
- the creation module 30 is composed of a randomly generated number to form a first character string of a first predetermined length and a second predetermined length generated according to a predetermined rule according to the letters in the wireless network hotspot name.
- the string formed after the string is concatenated is created as a WEP password.
- the password is not automatically created, or the automatically created password is cleared when the type selected by the user is not WEP.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
本发明公开了一种创建WEP密码的方法,所述方法包括:接收用户在无线网设置页面输入的无线网热点名称;识别出所述无线网热点名称中的字母;由随机生成的数字组成第一预定长度的第一字符串和根据无线网热点名称中的字母按照预定规则生成的第二预定长度的第二字符串串接后形成的字符串创建为WEP密码。本发明还公开了一种创建WEP密码的装置。本发明能够根据用户在无线网设置页面输入的名称中字符自动创建对应的WEP密码,减少了用户操作,提高了无线网WEP密码的创建效率。
Description
技术领域
本发明涉及无线通信技术领域,尤其涉及一种创建密码的方法和装置。
背景技术
在手动添加无线网络时,如果用户选择对添加的无线网络进行加密,比如对添加的无线网选择有线等效加密WEP(Wired Equivalent
Privacy,WEP)方式,需要用户手动输入一定位数的密码,比如16位、32位等。
这种需要用户输入和设置密码的方式,会浪费用户时间,特别是通过智能电视中设置密码时,由于电视的输入键盘的输入操作比较麻烦,比如需要切换输入法,键盘光标移动迟缓。这很不方便用户手动设置密码。
发明内容
本发明的主要目的在于提出一种创建WEP密码的方法和装置,旨在实现自动创建无线网热点的WEP密码。
为实现上述目的,本发明提供的一种创建WEP密码的方法,所述方法包括以下步骤:
接收用户在无线网设置页面输入的无线网热点名称;
判断所述无线网热点名称中字符是否全部为合法字符,其中所述合法字符包括英文字母和数字;
如果所述无线网热点名称中字符全部为合法字符,则识别出所述无线网热点名称中的字母;
获得所述无线网热点的加密类型;
在所述无线网热点的加密类型为WEP时,由随机生成的数字组成第一预定长度的第一字符串和根据无线网热点名称中的字母按照预定规则生成的第二预定长度的第二字符串串接后形成的字符串创建为WEP密码。
其中,所述由随机生成的数字组成第一预定长度的第一字符串和根据无线网热点名称中的字母按照预定规则生成的第二预定长度的第二字符串串接后形成的字符串创建为WEP密码的步骤包括:
提取所述无线网热点名称中的字母;
在所有的英文字母中随机选择对应位数的字母和提取到的字母组成第二预设长度的第二字符串,并在数字0~9中随机选取数字以生成第一预定长度的第一字符串;
将所述第二字符串和所述第一字符串串接作为所述无线网热点的WEP密码。
其中,所述将所述第二字符串和所述第一字符串串接作为所述无线网热点的WEP密码的步骤包括:
将提取到的字母、随机选择的字母和所述第一字符串依次进行排序,获得排好序的字符串,将所述字符串作为所述无线网热点的WEP密码。
此外,为实现上述目的,本发明还提供一种创建WEP密码的方法,所述方法包括以下步骤:
接收用户在无线网设置页面输入的无线网热点名称;
识别出所述无线网热点名称中的字母;
由随机生成的数字组成第一预定长度的第一字符串和根据无线网热点名称中的字母按照预定规则生成的第二预定长度的第二字符串串接后形成的字符串创建为WEP密码。
其中,所述识别出所述无线网热点名称中的字母的步骤之前包括:
判断所述无线网热点名称中字符是否全部为合法字符,其中所述合法字符包括英文字母和数字;
如果所述无线网热点名称中字符全部为合法字符,则执行步骤:识别出所述无线网热点名称中的字母。
其中,所述由随机生成的数字组成第一预定长度的第一字符串和根据无线网热点名称中的字母按照预定规则生成的第二预定长度的第二字符串串接后形成的字符串创建为WEP密码的步骤包括:
提取所述无线网热点名称中的字母;
在所有的英文字母中随机选择对应位数的字母和提取到的字母组成第二预设长度的第二字符串,并在数字0~9中随机选取数字以生成第一预定长度的第一字符串;
将所述第二字符串和所述第一字符串串接作为所述无线网热点的WEP密码。
其中,所述将所述第二字符串和所述第一字符串串接作为所述无线网热点的WEP密码的步骤包括:
将提取到的字母、随机选择的字母和所述第一字符串依次进行排序,获得排好序的字符串,将所述字符串作为所述无线网热点的WEP密码。
其中,所述由随机生成的数字组成第一预定长度的第一字符串和根据无线网热点名称中的字母按照预定规则生成的第二预定长度的第二字符串串接后形成的字符串创建为WEP密码的步骤之前还包括:
获得所述无线网热点的加密类型;
在所述无线网热点的加密类型为WEP时,执行步骤:由随机生成的数字组成第一预定长度的第一字符串和根据无线网热点名称中的字母按照预定规则生成的第二预定长度的第二字符串串接后形成的字符串创建为WEP密码。
此外,为实现上述目的,本发明还提供一种创建WEP密码的装置,所述装置包括:
接收模块,用于接收用户在无线网设置页面输入的无线网热点名称;
识别模块,用于识别出所述无线网热点名称中的字母;
创建模块,用于由随机生成的数字组成第一预定长度的第一字符串和根据无线网热点名称中的字母按照预定规则生成的第二预定长度的第二字符串串接后形成的字符串创建为WEP密码。
其中,所述装置还包括:
判断模块,用于判断所述无线网热点名称中字符是否全部为合法字符,其中所述合法字符包括英文字母和数字;
所述识别模块,还用于如果所述无线网热点名称中字符全部为合法字符,则执行步骤:识别出所述无线网热点名称中的字母。
其中,所述创建模块包括:
提取单元,用于提取所述无线网热点名称中的字母;
选择单元,用于在所有的英文字母中随机选择对应位数的字母和提取到的字母组成第二预设长度的第二字符串,并在数字0~9中随机选取数字以生成第一预定长度的第一字符串;
创建单元,用于将所述第二字符串和所述第一字符串串接作为所述无线网热点的WEP密码。
其中,所述创建单元还用于将提取到的字母、随机选择的字母和所述第一字符串依次进行排序,获得排好序的字符串,将所述字符串作为所述无线网热点的WEP密码。
其中,所述装置还包括:
获得模块,用于获得所述无线网热点的加密类型;
所述创建模块,还用于在所述无线网热点的类型为WEP时,执行步骤:由随机生成的数字组成第一预定长度的第一字符串和根据无线网热点名称中的字母按照预定规则生成的第二预定长度的第二字符串串接后形成的字符串创建为WEP密码。
本发明通过接收用户在无线网设置页面输入的无线网热点名称;识别出所述无线网热点名称中的字母;由随机生成的数字组成第一预定长度的第一字符串和根据无线网热点名称中的字母按照预定规则生成的第二预定长度的第二字符串串接后形成的字符串创建为WEP密码。通过上述方式,本发明能够根据用户在无线网设置页面输入的名称中字符自动创建对应的WEP密码,减少了用户操作,提高了无线网热点WEP密码的创建效率。
附图说明
图1为本发明创建WEP密码的方法第一实施例的流程示意图;
图2为本发明创建WEP密码的方法第二实施例的流程示意图;
图3为本发明实施例中由随机生成的数字组成第一预定长度的第一字符串和根据无线网热点名称中的字母按照预定规则生成的第二预定长度的第二字符串串接后形成的字符串创建为WEP密码的一种流程示意图;
图4为本发明创建WEP密码的方法第三实施例的流程示意图;
图5为本发明创建WEP密码的装置第一实施例的功能模块示意图;
图6为本发明创建WEP密码的装置第二实施例的功能模块示意图;
图7为本发明实施例中创建模块的一种细化功能模块示意图;
图8为本发明创建WEP密码的装置第三实施例的功能模块示意图。
本发明目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。
具体实施方式
应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。
本发明提供一种创建WEP密码的方法。
参照图1,图1为本发明创建WEP密码的方法第一实施例的流程示意图。
在本实施例中,该创建密码的方法包括:
步骤S10,接收用户在无线网设置页面输入的无线网热点名称;
本实施例中以智能电视为执行主体进行说明,实际实施时还可以为如路由器、移动终端等可以设置无线网热点的设备。
智能电视上可以设置有无线网电路,无线网电路可以用于热点模式的电路,还可以包括为客户端的子电路。当然也可以在智能电视上不设置有无线网电路,智能电视只用于作为设置无线网密码的显示,即通过智能电视设置无线路由器的无线网热点密码,此时本发明软件可以应用在无线路由器中。具体实施中也可以将本发明应用于智能电视上,通过智能电视自动设置无线路由器的密码。
用户可以通过智能电视的操作设备,打开无线网设置或者新增功能,从而打开无线网设置页面,比如通过设置菜单打开无线网设置页面或者通过网页打开路由器无线网设置页面,当然还可以在第一次打开使用时,智能电视或者路由器自动跳转到无线网设置页面,通过智能电视显示界面显示。所述智能电视实时监测操作设备产生的焦点在显示页面中位置,在所述焦点移动到设置无线网设置页面名称SSID时,用户可以在名称输入框中输入无线网热点名称。
步骤S20,识别出所述无线网热点名称中的字母;
根据步骤S10接收到的无线网热点名称,自动识别出所述无线网热点名称中的字母,具体地,在用户输入无线网热点名称一段时间后,没有进行继续操作时,判定用户输入无线网热点名称完毕,设备自动识别所述无线网热点名称中的字母,当然也可以用户在输入完所述无线网热点名称时,通过操作设备点击设置在该页面中生成密码的按钮,所述智能电视开始识别所述无线网热点名称中的字母,具体实施中还可以在用户将操作设备对应的焦点移动到除名称输入框的其他位置时,判定所述无线网热点名称输入完毕,所述智能电视开始识别所述无线网热点名称中的字母。
步骤S30,由随机生成的数字组成第一预定长度的第一字符串和根据无线网热点名称中的字母按照预定规则生成的第二预定长度的第二字符串串接后形成的字符串创建为WEP密码。
根据步骤S20识别出的字母通过预置规则创建对应的WEP密码,比如在识别出所述无线网热点名称的字符后随机添加固定位数的数字和/或字母。如果有些系统设置了WEP密码位数规则,则在识别出所述无线网热点名称字符后,获得系统中WEP密码加密要求的位数,比如16位、32位、64位等,然后在识别出的字符后面添加对应位数的字符。如果无线网热点名称中字符的个数大于密码的位数,则在识别出的字符中随机选择对应位数的字符作为密码。
具体实施中也可以不识别所述无线网热点名称中的字母,在判定用户输入无线网热点名称完毕后,直接根据预置规则创建对应的WEP密码,比如直接随机生成对应位数的WEP密码。在更多的实施中还可以通过其他的方式添加WEP密码。
本发明通过接收用户在无线网设置页面输入的无线网热点名称;识别出所述无线网热点名称中的字母;由随机生成的数字组成第一预定长度的第一字符串和根据无线网热点名称中的字母按照预定规则生成的第二预定长度的第二字符串串接后形成的字符串创建为WEP密码。通过上述方式,本发明能够根据用户在无线网设置页面输入的名称中字符自动创建对应的WEP密码,减少了用户操作,提高了无线网热点WEP密码的创建效率。
参照图2,图2为本发明创建WEP密码的方法第二实施例的流程示意图。
基于本发明创建WEP密码的方法第一实施例,所述方法还可以包括:
步骤S40,判断所述无线网热点名称中字符是否全部为合法字符。
由于汉字识别较为复杂,为减轻运行本发明设备的负担,同时符合大部分设备设置密码的规则:一般设置的密码为数字和字母。具体实施中合法字符还可以包括斜杠等一些常用符号。
在步骤S20识别出所述无线网热点名称中的字母之前,判断所述无线网热点名称中字符是否全部为合法字符,其中所述合法字符为英文字母和数字,本实施例中识别出所述无线网热点名称中字符为英文字母和/或数字时,认为其为合法名称;如果所述无线网热点名称中字符包括除英文字母和数字的其他字符,比如汉字,则认为所述无线网热点名称为不合法的名称。
如果所述无线网热点名称中字符为合法字符,则执行步骤S20:识别出所述无线网热点名称中的字母。否则不创建对应的热点密码,当然还可以弹出提示,比如:名称不合法。
参照图3,图3为本发明实施例中由随机生成的数字组成第一预定长度的第一字符串和根据无线网热点名称中的字母按照预定规则生成的第二预定长度的第二字符串串接后形成的字符串创建为WEP密码的一种流程示意图。
基于本发明创建密码的方法第二实施例,步骤S30可以包括:
步骤S31,提取所述无线网热点名称中的字母;
在步骤S40判定所述无线网热点名称中包括合法字符时,提取所述无线网热点名称中的字母,即提取所述无线网热点名称中的英文字母。
步骤S32,在所有的英文字母中随机选择对应位数的字母和提取到的字母组成第二预设长度的第二字符串,并在数字0~9中随机选取数字以生成第一预定长度的第一字符串;
根据步骤S31提取的字符,确定所述无线网热点名称中提取到的字符的位数与预置加密位数相比还需要的位数,所述预置加密位数为预先设定的加密密码的位数,也可以是在不同的系统中运行时,实时获得该系统设定的加密位数。
由于WEP密码加密要求的位数一般为16、32以及更高的位数,因此可以认为用户输入的名称中所包括的字母位数小于WEP密码加密要求的位数,在确定需要的位数时,在英文字母和/或数字0~9中随机选择与需要的位数对应位数的英文字母和/或数字,即在A-Z和0-9中随机选择对应位数的字母和/或数字,包括:在A-Z中随机选择对应位数的字母;在0-9中随机选择对应位数的数字;在A-Z和0-9中随机选择对应位数的字母和数字。本实施例中英文字母不区分大小写,具体实施中英文字母可以区分大小写。
如果提取到的字符的位数大于或等于预置加密位数,则在提取到的英文字母和/或数字中,选择预置位数个英文字母和/或数字。
本实施例中将提取到字母和随机选择对应位数的字母组成的第二预设长度的第二字符串,提取到的第一预定长度的数字组作为第一字符串,所述第二预设长度和第一预设长度可根据具体情况进行设置,比如在WEP密码加密位数为16位时,所述第二预设长度和第一预设长度都为8位。
步骤S33,将所述第二字符串和所述第一字符串串接作为所述无线网热点的WEP密码。
根据步骤S32确定的所述第二字符串和所述第一字符串串接作为所述无线网热点的密码。
具体地,将提取到的字母、随机选择的字母和所述第一字符串依次进行排序,获得排好序的字符串,将所述字符串作为所述无线网热点的WEP密码。
将在步骤S32随机在0-9中选择的预置位数的数字,提取到所述无线网热点名称中的字母以及在A-Z中随机选择的英文字母依次进行排序,获得排好序的字符串,然后将排好序的字符串作为所述无线网的WEP密码。比如在某个系统中预置界面位数为16位,用户输入的无线网热点名称为A_Wifi1,则提取到所述无线网热点名称中字符为A、W、i、f、i,提取到所述无线网热点名称中数字为1,假设密码中数字和英文字母位数都为8位,在0-9中随机选8位数字,依次为9、1、3、2、4、5、7、8,由于提取到的字母少于8位,则在A-Z中随机选择3位,依次为C、D、E,将随机选择的数字,提取到的所述无线网热点名称中字符以及随机选择的英文字母依次进行排序,获得排好序的字符串:91324578AWifiCDE,将排好序的字符串作为密码。当然还可以同其他排序方式进行排序获得排好序的字符串。具体实施中数字和字母的位数可以根据实际需求进行自定义设置。
参照图4,图4为本发明创建WEP密码的方法第三实施例的流程示意图。
基于本发明创建WEP密码的方法第一实施例,所述方法还可以包括:
步骤S50,获得所述无线网热点的加密类型。
本步骤可以在步骤S20之前执行;也可以在步骤S40之前执行;还可以在步骤S40之后,步骤S30之前执行,即在识别所述无线网热点名称中的字母之前;或者在识别出所述无线网热点名称中的字母后,判断所述无线网热点名称中的字符是否包括合法字符之前;或者在判断出所述字符包括合法字符之后,对应创建WEP密码之前,获得所述无线网热点的加密类型,其中无线网热点的加密类型包括有线等效加密WEP、WPA、WPA2等。
在所述无线网热点的加密类型为WEP时,执行步骤S30:由随机生成的数字组成第一预定长度的第一字符串和根据无线网热点名称中的字母按照预定规则生成的第二预定长度的第二字符串串接后形成的字符串创建为WEP密码,比如用户在输入所述无线网热点名称之后,选择创建的该热点的类型为WEP,或者在用户打开无线网密码设置页面时默认该热点的类型为WEP,则在用户输入密码之后执行步骤S30:由随机生成的数字组成第一预定长度的第一字符串和根据无线网热点名称中的字母按照预定规则生成的第二预定长度的第二字符串串接后形成的字符串创建为WEP密码。
如果获得所述无线网热点的类型不为WEP,则不自动创建密码,或者在用户选择的类型不为WEP时,清除自动创建的密码。
本发明进一步提供一种创建WEP密码的装置。
参照图5,图5为本发明创建WEP密码的装置第一实施例的功能模块示意图。
在本实施例中,该创建密码的装置包括:
接收模块10,用于接收用户在无线网设置页面输入的无线网热点名称。
本实施例中以智能电视为执行主体进行说明,实际实施时还可以为如路由器、移动终端等可以设置无线网热点的设备。
智能电视上可以设置有无线网电路,无线网电路可以用于热点模式的电路,还可以包括为客户端的子电路。当然也可以在智能电视上不设置有无线网电路,智能电视只用于作为设置无线网密码的显示,即通过智能电视设置无线路由器的无线网热点密码,此时本发明软件可以应用在无线路由器中。具体实施中也可以将本发明应用于智能电视上,通过智能电视自动设置无线路由器的密码。
用户可以通过智能电视的操作设备,打开无线网设置或者新增功能,从而打开无线网设置页面,比如通过设置菜单打开无线网设置页面或者通过网页打开路由器无线网设置页面,当然还可以在第一次打开使用时,智能电视或者路由器自动跳转到无线网设置页面,通过智能电视显示界面显示。所述智能电视实时监测操作设备产生的焦点在显示页面中位置,在所述焦点移动到设置无线网设置页面名称SSID时,用户可以在无线网热点名称输入框中输入名称。
识别模块20,用于识别出所述无线网热点名称中的字母。
根据接收模块10接收到的无线网热点名称,自动识别出所述无线网热点名称中的字母,具体地,在用户输入无线网热点名称一段时间后,没有进行继续操作时,判定用户输入名称完毕,设备自动识别所述无线网热点名称中的字母,当然也可以用户在输入完所述无线网热点名称时,通过操作设备点击设置在该页面中生成密码的按钮,所述智能电视开始识别所述无线网热点名称中的字母,具体实施中还可以在用户将操作设备对应的焦点移动到除名称输入框的其他位置时,判定所述无线网热点名称输入完毕,所述智能电视开始识别所述无线网热点名称中的字母。
创建模块30,用于由随机生成的数字组成第一预定长度的第一字符串和根据无线网热点名称中的字母按照预定规则生成的第二预定长度的第二字符串串接后形成的字符串创建为WEP密码。
根据识别模块20识别出的字母通过预置规则创建对应的WEP密码,比如在识别出所述无线网热点名称的字符后随机添加固定位数的数字和/或字母。如果有些系统设置了WEP密码位数规则,则在识别出所述无线网热点名称字符后,获得系统中WEP加密要求的位数,比如16位、32位、64位等,然后在识别出的字符后面添加对应位数的字符。如果无线网热点名称中字符的个数大于密码的位数,则在识别出的字符中随机选择对应位数的字符作为密码。
具体实施中也可以不识别所述无线网热点名称中的字母,在判定用户输入无线网热点名称完毕后,直接根据预置规则创建对应的WEP密码,比如直接随机生成对应位数的WEP密码。在更多的实施中还可以通过其他的方式添加WEP密码。
本发明通过接收用户在无线网设置页面输入的无线网热点名称;识别出所述无线网热点名称中的字母;由随机生成的数字组成第一预定长度的第一字符串和根据无线网热点名称中的字母按照预定规则生成的第二预定长度的第二字符串串接后形成的字符串创建为WEP密码。通过上述方式,本发明能够根据用户在无线网设置页面输入的无线网热点名称中字符自动创建对应的WEP密码,减少了用户操作,提高了无线网热点WEP密码的创建效率。
参照图6,图6为本发明创建WEP密码的装置第二实施例的功能模块示意图;
基于本发明创建WEP密码的装置第一实施例,所述装置还包括:
判断模块40,用于判断所述无线网热点名称中字符是否全部为合法字符,其中所述合法字符包括英文字母和数字;所述识别模块20,还用于如果所述无线网热点名称中字符全部为合法字符,则执行步骤:识别出所述无线网热点名称中的字母。
由于汉字识别较为复杂,为减轻运行本发明设备的负担,同时符合大部分设备设置密码的规则:一般设置的密码为数字和字母。具体实施中合法字符还可以包括斜杠等一些常用符号。
在识别模块20识别出所述无线网热点名称中的字母之前,判断所述无线网热点名称中字符是否全部为合法字符,其中所述合法字符为英文字母和数字,本实施例中识别出所述无线网热点名称中字符为英文字母和/或数字时,认为其为合法名称;如果所述无线网热点名称中字符包括除英文字母和数字的其他字符,比如汉字,则认为所述无线网热点名称为不合法的名称。
如果所述无线网热点名称中字符为合法字符,则执行步骤S20:识别出所述无线网热点名称中的字母。否则不创建对应的热点密码,当然还可以弹出提示,比如:名称不合法。
参照图7,图7为本发明实施例中创建模块的一种细化功能模块示意图;
基于本发明创建WEP密码的装置第二实施例,创建模块30还包括:
提取单元31,用于如果所述无线网热点名称中字符为合法字符,则提取所述无线网热点名称中的字母。
在判断模块40判定所述无线网热点名称中包括合法字符时,提取所述无线网热点名称中的字母,即提取所述无线网热点名称中的英文字母。
选择单元32,用于在所有的英文字母中随机选择对应位数的字母和提取到的字母组成第二预设长度的第二字符串,并在数字0~9中随机选取数字以生成第一预定长度的第一字符串。
根据提取单元31提取的字符,确定所述无线网热点名称中提取到的字符的位数与预置加密位数相比还需要的位数,所述预置加密位数为预先设定的加密密码的位数,也可以是在不同的系统中运行时,实时获得该系统设定的加密位数。
由于WEP密码加密要求的位数一般为16、32以及更高的位数,因此可以认为用户输入的名称中所包括的字母位数小于WEP密码加密要求的位数,在确定需要的位数时,在英文字母和/或一位整数数字中随机选择与需要的位数对应位数的英文字母和/或数字,即在A-Z和/或数字0-9中随机选择对应位数的字母和/或数字,包括:在A-Z中随机选择对应位数的字母;在0-9中随机选择对应位数的数字;在A-Z和0-9中随机选择对应位数的字母和数字。本实施例中英文字母不区分大小写,具体实施中英文字母可以区分大小写。
如果提取到的字符的位数大于或等于预置加密位数,则在提取到的英文字母和/或数字中,选择预置位数个英文字母和/或数字。
本实施例中将提取到字母和随机选择对应位数的字母组成的第二预设长度的第二字符串,提取到的第一预定长度的数字组作为第一字符串,所述第二预设长度和第一预设长度可根据具体情况进行设置,比如在WEP密码加密位数为16位时,所述第二预设长度和第一预设长度都为8位。
创建单元33,用于将所述第二字符串和所述第一字符串串接作为所述无线网热点的WEP密码。
创建单元33还用于将提取到的字母、随机选择的字母和所述第一字符串依次进行排序,获得排好序的字符串,将所述字符串作为所述无线网热点的WEP密码。
根据选择单元32选择的对应位数的英文字母和/或数字以及在步骤S31提取到所述无线网热点名称中字符,作为所述无线网热点的密码。
具体地,将随机选择的数字、所述无线网热点名称中的字母与随机选择的字母依次进行排序,获得排好序的字符串,将所述字符串作为所述无线网热点的密码。
将在步骤S32随机在0-9中选择的预置位数的数字,提取到所述无线网热点名称中的字母以及在A-Z中随机选择的英文字母依次进行排序,获得排好序的字符串,然后将排好序的字符串作为所述无线网热点的WEP密码。比如在某个系统中预置界面位数为16位,用户输入的无线网热点名称为A_Wifi1,则提取到所述无线网热点名称中字符为A、W、i、f、i,提取到所述无线网热点名称中数字为1,假设密码中数字和英文字母位数都为8位,在0-9中随机选8位数字,依次为9、1、3、2、4、5、7、8,由于提取到的字母少于8位,则在A-Z中随机选择3位,依次为C、D、E,将随机选择的数字,提取到的所述无线网热点名称中字符以及随机选择的英文字母依次进行排序,获得排好序的字符串:91324578AWifiCDE,将排好序的字符串作为密码。当然还可以同其他排序方式进行排序获得排好序的字符串。具体实施中数字和字母的位数可以根据实际需求进行自定义设置。
参照图8,图8为本发明创建WEP密码的装置第三实施例的功能模块示意图
基于本发明创建WEP密码的装置第一实施例,所述装置还包括:
获得模块50,用于获得所述无线网热点的加密类型;创建模块30,还用于在所述无线网热点的类型为WEP时,执行步骤:由随机生成的数字组成第一预定长度的第一字符串和根据无线网热点名称中的字母按照预定规则生成的第二预定长度的第二字符串串接后形成的字符串创建为WEP密码。
在识别所述无线网热点名称中的字母符之前;或者在识别出所述无线网热点名称中的字母后,判断所述无线网热点名称中是否包括合法字符之前;或者在判断出所述字符包括合法字符之后,对应创建WEP密码之前,获得所述无线网热点的加密类型,其中无线网热点的类型包括有线等效加密WEP、WPA、WPA2等。
在所述无线网热点的加密类型为WEP时,执行:由随机生成的数字组成第一预定长度的第一字符串和根据无线网热点名称中的字母按照预定规则生成的第二预定长度的第二字符串串接后形成的字符串创建为WEP密码,比如用户在输入所述无线网热点名称之后,选择创建的该热点的类型为WEP,或者在用户打开无线网密码设置页面时默认该热点的加密类型为WEP,则在用户输入密码之后创建模块30由随机生成的数字组成第一预定长度的第一字符串和根据无线网热点名称中的字母按照预定规则生成的第二预定长度的第二字符串串接后形成的字符串创建为WEP密码。
如果获得所述无线网热点的类型不为WEP,则不自动创建密码,或者在用户选择的类型不为WEP时,清除自动创建的密码。
以上仅为本发明的优选实施例,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本发明的专利保护范围内。
Claims (13)
- 一种创建WEP密码的方法,其特征在于,所述方法包括以下步骤:接收用户在无线网设置页面输入的无线网热点名称;判断所述无线网热点名称中字符是否全部为合法字符,其中所述合法字符包括英文字母和数字;如果所述无线网热点名称中字符全部为合法字符,则识别出所述无线网热点名称中的字母;获得所述无线网热点的加密类型;在所述无线网热点的加密类型为WEP时,由随机生成的数字组成第一预定长度的第一字符串和根据无线网热点名称中的字母按照预定规则生成的第二预定长度的第二字符串串接后形成的字符串创建为WEP密码。
- 如权利要求1所述的方法,其特征在于,所述由随机生成的数字组成第一预定长度的第一字符串和根据无线网热点名称中的字母按照预定规则生成的第二预定长度的第二字符串串接后形成的字符串创建为WEP密码的步骤包括:提取所述无线网热点名称中的字母;在所有的英文字母中随机选择对应位数的字母和提取到的字母组成第二预设长度的第二字符串,并在数字0~9中随机选取数字以生成第一预定长度的第一字符串;将所述第二字符串和所述第一字符串串接作为所述无线网热点的WEP密码。
- 如权利要求2所述的方法,其特征在于,所述将所述第二字符串和所述第一字符串串接作为所述无线网热点的WEP密码的步骤包括:将提取到的字母、随机选择的字母和所述第一字符串依次进行排序,获得排好序的字符串,将所述字符串作为所述无线网热点的WEP密码。
- 一种创建WEP密码的方法,其特征在于,所述方法包括以下步骤:接收用户在无线网设置页面输入的无线网热点名称;识别出所述无线网热点名称中的字母;由随机生成的数字组成第一预定长度的第一字符串和根据无线网热点名称中的字母按照预定规则生成的第二预定长度的第二字符串串接后形成的字符串创建为WEP密码。
- 如权利要求4所述的方法,其特征在于,所述识别出所述无线网热点名称中的字母的步骤之前包括:判断所述无线网热点名称中字符是否全部为合法字符,其中所述合法字符包括英文字母和数字;如果所述无线网热点名称中字符全部为合法字符,则执行步骤:识别出所述无线网热点名称中的字母。
- 如权利要求5所述的方法,其特征在于,所述由随机生成的数字组成第一预定长度的第一字符串和根据无线网热点名称中的字母按照预定规则生成的第二预定长度的第二字符串串接后形成的字符串创建为WEP密码的步骤包括:提取所述无线网热点名称中的字母;在所有的英文字母中随机选择对应位数的字母和提取到的字母组成第二预设长度的第二字符串,并在数字0~9中随机选取数字以生成第一预定长度的第一字符串;将所述第二字符串和所述第一字符串串接作为所述无线网热点的WEP密码。
- 如权利要求6所述的方法,其特征在于,所述将所述第二字符串和所述第一字符串串接作为所述无线网热点的WEP密码的步骤包括:将提取到的字母、随机选择的字母和所述第一字符串依次进行排序,获得排好序的字符串,将所述字符串作为所述无线网热点的WEP密码。
- 如权利要求4所述的方法,其特征在于,所述由随机生成的数字组成第一预定长度的第一字符串和根据无线网热点名称中的字母按照预定规则生成的第二预定长度的第二字符串串接后形成的字符串创建为WEP密码的步骤之前还包括:获得所述无线网热点的加密类型;在所述无线网热点的加密类型为WEP时,执行步骤:由随机生成的数字组成第一预定长度的第一字符串和根据无线网热点名称中的字母按照预定规则生成的第二预定长度的第二字符串串接后形成的字符串创建为WEP密码。
- 一种创建WEP密码的装置,其特征在于,所述装置包括:接收模块,用于接收用户在无线网设置页面输入的无线网热点名称;识别模块,用于识别出所述无线网热点名称中的字母;创建模块,用于由随机生成的数字组成第一预定长度的第一字符串和根据无线网热点名称中的字母按照预定规则生成的第二预定长度的第二字符串串接后形成的字符串创建为WEP密码。
- 如权利要求9所述的装置,其特征在于,所述装置还包括:判断模块,用于判断所述无线网热点名称中字符是否全部为合法字符,其中所述合法字符包括英文字母和数字;所述识别模块,还用于如果所述无线网热点名称中字符全部为合法字符,则执行步骤:识别出所述无线网热点名称中的字母。
- 如权利要求10所述的装置,其特征在于,所述创建模块包括:提取单元,用于提取所述无线网热点名称中的字母;选择单元,用于在所有的英文字母中随机选择对应位数的字母和提取到的字母组成第二预设长度的第二字符串,并在数字0~9中随机选取数字以生成第一预定长度的第一字符串;创建单元,用于将所述第二字符串和所述第一字符串串接作为所述无线网热点的WEP密码。
- 如权利要求11所述的装置,其特征在于,所述创建单元还用于将提取到的字母、随机选择的字母和所述第一字符串依次进行排序,获得排好序的字符串,将所述字符串作为所述无线网热点的WEP密码。
- 如权利要求9所述的装置,其特征在于,所述装置还包括:获得模块,用于获得所述无线网热点的加密类型;所述创建模块,还用于在所述无线网热点的类型为WEP时,执行步骤:由随机生成的数字组成第一预定长度的第一字符串和根据无线网热点名称中的字母按照预定规则生成的第二预定长度的第二字符串串接后形成的字符串创建为WEP密码。
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201511027141.3 | 2015-12-30 | ||
CN201511027141.3A CN105681029A (zh) | 2015-12-30 | 2015-12-30 | 创建wep密码的方法和装置 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2017113587A1 true WO2017113587A1 (zh) | 2017-07-06 |
Family
ID=56298241
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2016/084229 WO2017113587A1 (zh) | 2015-12-30 | 2016-06-01 | 创建wep密码的方法和装置 |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN105681029A (zh) |
WO (1) | WO2017113587A1 (zh) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111262645A (zh) * | 2019-10-21 | 2020-06-09 | 上海百事通信息技术股份有限公司 | 一种数据传输方法、装置、存储介质和终端 |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108228562A (zh) * | 2017-12-29 | 2018-06-29 | 歌尔科技有限公司 | 蓝牙模块的重命名方法以及电子设备 |
CN110995644A (zh) * | 2019-10-19 | 2020-04-10 | 南京禾泽信息技术有限公司 | 一种可生成随机登录信息的装置和方法 |
CN111847533A (zh) * | 2020-05-25 | 2020-10-30 | 安徽普偌森环保科技有限公司 | 一体化生活污水处理工程管理系统 |
CN113207097B (zh) * | 2021-04-29 | 2023-05-30 | 深圳市欧瑞博科技股份有限公司 | 智能设备组网方法、装置、电子设备及存储介质 |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20130256407A1 (en) * | 2012-03-27 | 2013-10-03 | Flyfish Holdings Limited | Wireless 2d barcode communication connection method |
US20130318587A1 (en) * | 2012-05-24 | 2013-11-28 | Buffalo Inc. | Authentication method and wireless connection device |
CN103501482A (zh) * | 2013-09-26 | 2014-01-08 | 小米科技有限责任公司 | 网络接入方法、装置及终端 |
CN104660313A (zh) * | 2013-11-25 | 2015-05-27 | 上海益尚信息科技有限公司 | 新型流媒体系统中的选择天线极化数据发送接收方法 |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101272237B (zh) * | 2008-04-22 | 2010-10-06 | 北京飞天诚信科技有限公司 | 一种用于自动生成和填写登录信息的方法和系统 |
CN102739404B (zh) * | 2012-06-29 | 2016-01-06 | 浪潮(北京)电子信息产业有限公司 | 一种密码管理方法和系统 |
CN103546890B (zh) * | 2012-07-17 | 2016-12-07 | 深圳紫煌网络科技有限公司 | 用于进行wi-fi网络配置的方法和wi-fi无线网络设备 |
CN104994118A (zh) * | 2015-08-11 | 2015-10-21 | 吴培希 | 一种基于动态密码的WiFi认证系统及方法 |
-
2015
- 2015-12-30 CN CN201511027141.3A patent/CN105681029A/zh active Pending
-
2016
- 2016-06-01 WO PCT/CN2016/084229 patent/WO2017113587A1/zh active Application Filing
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20130256407A1 (en) * | 2012-03-27 | 2013-10-03 | Flyfish Holdings Limited | Wireless 2d barcode communication connection method |
US20130318587A1 (en) * | 2012-05-24 | 2013-11-28 | Buffalo Inc. | Authentication method and wireless connection device |
CN103501482A (zh) * | 2013-09-26 | 2014-01-08 | 小米科技有限责任公司 | 网络接入方法、装置及终端 |
CN104660313A (zh) * | 2013-11-25 | 2015-05-27 | 上海益尚信息科技有限公司 | 新型流媒体系统中的选择天线极化数据发送接收方法 |
Non-Patent Citations (1)
Title |
---|
CHEN HUAQIANG: "The security technology study on WLAN", CMFD INFORMATION TECHNOLOGY, no. 3, 15 March 2011 (2011-03-15), ISSN: 1674-0246 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111262645A (zh) * | 2019-10-21 | 2020-06-09 | 上海百事通信息技术股份有限公司 | 一种数据传输方法、装置、存储介质和终端 |
CN111262645B (zh) * | 2019-10-21 | 2023-07-18 | 上海百事通信息技术股份有限公司 | 一种数据传输方法、装置、存储介质和终端 |
Also Published As
Publication number | Publication date |
---|---|
CN105681029A (zh) | 2016-06-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2017113587A1 (zh) | 创建wep密码的方法和装置 | |
WO2017054592A1 (zh) | 一种界面显示的方法及终端 | |
WO2018082482A1 (zh) | 一种网络共享方法、接入网络方法及系统 | |
WO2019231252A1 (en) | Electronic device for authenticating user and operating method thereof | |
WO2017143692A1 (zh) | 智能电视及其语音控制方法 | |
WO2017148112A1 (zh) | 一种指纹录入方法及终端 | |
WO2017084337A1 (zh) | 一种身份验证方法、装置和系统 | |
WO2015139594A1 (en) | Security verification method, apparatus, and system | |
WO2015172684A1 (en) | Ap connection method, terminal, and server | |
WO2019196213A1 (zh) | 接口测试方法、装置、设备及计算机可读存储介质 | |
WO2019051899A1 (zh) | 终端控制方法、装置及存储介质 | |
WO2013127233A1 (zh) | 一种基于手机的按键解锁方法及手机 | |
WO2019041851A1 (zh) | 家电售后咨询方法、电子设备和计算机可读存储介质 | |
WO2016089009A1 (en) | Method and cloud server for managing device | |
WO2019100531A1 (zh) | 数字签名生成、验证方法及其设备和存储介质 | |
WO2018120457A1 (zh) | 数据处理方法、装置、设备及计算机可读存储介质 | |
WO2019024336A1 (zh) | 数据查询方法、装置及计算机可读存储介质 | |
WO2018188342A1 (zh) | 脚本文件生成方法、装置、设备和计算机可读存储介质 | |
WO2018034491A1 (en) | A primary device, an accessory device, and methods for processing operations on the primary device and the accessory device | |
WO2019062112A1 (zh) | 空调器控制方法、装置、空调器及计算机可读存储介质 | |
WO2018201699A1 (zh) | 客户评价方法、装置、设备以及计算机可读存储介质 | |
WO2017080195A1 (zh) | 音频识别方法及装置 | |
WO2019000466A1 (zh) | 人脸识别方法、装置、存储介质及电子设备 | |
WO2018076453A1 (zh) | 一种关联应用显示方法、装置及移动终端 | |
WO2019042220A1 (zh) | 智能系统调整方法、装置及计算机可读存储介质 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 16880395 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
32PN | Ep: public notification in the ep bulletin as address of the adressee cannot be established |
Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 14.11.2018) |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 16880395 Country of ref document: EP Kind code of ref document: A1 |