CN107548062A - Storage method, wifi connection methods and the device of wifi passwords - Google Patents

Storage method, wifi connection methods and the device of wifi passwords Download PDF

Info

Publication number
CN107548062A
CN107548062A CN201610498079.4A CN201610498079A CN107548062A CN 107548062 A CN107548062 A CN 107548062A CN 201610498079 A CN201610498079 A CN 201610498079A CN 107548062 A CN107548062 A CN 107548062A
Authority
CN
China
Prior art keywords
wifi
wifi hotspot
crypted password
hotspot
pairing
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
CN201610498079.4A
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.)
Leadcore Technology Co Ltd
Datang Semiconductor Design Co Ltd
Original Assignee
Leadcore Technology Co Ltd
Datang Semiconductor Design 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 Leadcore Technology Co Ltd, Datang Semiconductor Design Co Ltd filed Critical Leadcore Technology Co Ltd
Priority to CN201610498079.4A priority Critical patent/CN107548062A/en
Publication of CN107548062A publication Critical patent/CN107548062A/en
Pending legal-status Critical Current

Links

Abstract

The invention provides in a kind of storage method of wifi passwords, wifi connection methods and device, a Crypted password is generated according to the user cipher of the title of a wifi hotspot and the wifi hotspot, and the Crypted password is stored in a storage medium.Obtain the read-write power of the storage medium other people after the Crypted password is obtained, can not also obtain the user cipher of the wifi hotspot, improve the security of the password of wifi hotspot.Further, it can directly be established and connected with the wifi hotspot according to the Crypted password, during wifi connections, reduce the process that the Crypted password is calculated according to the title and user cipher of wifi hotspot, reduce the time that connection is established with the wifi hotspot, the speed of wifi connections is improved, and then improves Consumer's Experience.

Description

Storage method, wifi connection methods and the device of wifi passwords
Technical field
The present invention relates to wireless communication field, the especially a kind of storage method of wifi passwords, wifi connection methods and dress Put.
Background technology
The endurance of mobile terminal increasingly becomes one of most concerned performance of user.People make for wifi at present With more and more, and a critical functions of the wifi as mobile terminal, frequency of use also more and more higher.Currently, mobile terminal Wifi user cipher is to be preserved with clear-text way into storage medium, so when other people have the read-write of the storage medium Authority, it is possible to obtain user cipher easily, cause password to leak.
The content of the invention
It is an object of the invention to provide a kind of storage method of wifi passwords, wifi connection methods and device, to solve The problem of security is low caused by wifi passwords are stored with clear-text way.
In order to achieve the above object, the invention provides a kind of storage method of wifi passwords, according to a wifi hotspot The user cipher of title and the wifi hotspot generates a Crypted password, and the Crypted password is stored in into a storage medium On.
Preferably, in the storage method of above-mentioned wifi passwords, reflected for wpa-psk authentication modes or wpa2-psk Power mode, the Crypted password are a main key of pairing.
Preferably, in the storage method of above-mentioned wifi passwords, by the main key of the pairing directly with the wifi Focus establishes connection.
Preferably, in the storage method of above-mentioned wifi passwords, the name using hash principles according to the wifi hotspot Claim and user cipher generates the main key of pairing.
Present invention also offers a kind of wifi connection methods, comprise the following steps:
Input the user cipher of a wifi hotspot;
One Crypted password is generated according to the title of the wifi hotspot and user cipher, and the Crypted password is stored in In one storage medium;
Established and connected according to the Crypted password and the wifi hotspot.
Preferably, in above-mentioned wifi connection methods, for wpa-psk authentication modes or wpa2-psk authentication sides Formula, the Crypted password is a pairing master key, and is directly established and connected with the wifi hotspot according to the Crypted password.
Preferably, in above-mentioned wifi connection methods, title and use using hash principles according to the wifi hotspot The family password generation main key of pairing.
Preferably, in above-mentioned wifi connection methods, the user cipher, then root are decrypted according to the Crypted password According to the pairing master key of title and user cipher generation one of the wifi hotspot, further according to the pairing master key and wifi heat Point establishes connection.
Present invention also offers a kind of wifi connection methods, comprise the following steps:
Read wifi configuration files;
Wifi hotspot is obtained from the wifi configuration files;
Crypted password corresponding with the title of the wifi hotspot is read from a storage medium;
Established and connected according to the Crypted password and the wifi hotspot.
Preferably, in above-mentioned wifi connection methods, for wpa-psk authentication modes or wpa2-psk authentication sides Formula, the Crypted password are a main key of pairing, and connected according to being established between the pairing master key with the wifi hotspot.
Preferably, in above-mentioned wifi connection methods, title and use using hash principles according to the wifi hotspot The family password generation main key of pairing.
The present invention more provides a kind of wifi attachment means, including:One input module, a computing module, a memory module An and connection establishment module;Wherein,
The input module is used for the user cipher for inputting a wifi hotspot;
The computing module is used to generate a Crypted password according to the title and user cipher of the wifi hotspot;
The memory module is a storage medium, for storing the Crypted password;
The connection establishment module, which is used to be established according to the Crypted password and the wifi hotspot, to be connected.
Preferably, in above-mentioned wifi attachment means, for wpa-psk authentication modes or wpa2-psk authentication sides Formula, the Crypted password are a main key of pairing.
Preferably, in above-mentioned wifi attachment means, directly built by the main key of pairing with the wifi hotspot Vertical connection.
Preferably, in above-mentioned wifi attachment means, title and use using hash principles according to the wifi hotspot The family password generation main key of pairing.
In the storage method of wifi passwords provided by the invention, wifi connection methods and device, according to a wifi hotspot Title and the user cipher of the wifi hotspot generate a Crypted password, and the Crypted password is stored in a storage medium On.Obtain the read-write power of the storage medium other people after the Crypted password is obtained, can not also obtain the wifi heat The user cipher of point, improve the security of the password of wifi hotspot.Further, can be according to the Crypted password directly and institute State wifi hotspot and establish connection, during wifi connections, reduce and calculated according to the title and user cipher of wifi hotspot The process of the Crypted password, the time that connection is established with the wifi hotspot is reduced, the speed of wifi connections is improved, enters And improve Consumer's Experience.
Brief description of the drawings
Fig. 1 is the flow chart of the wifi connection methods provided in the embodiment of the present invention;
Fig. 2 is the flow chart of the another wifi connection methods provided in the embodiment of the present invention;
Fig. 3 is the structural representation of the wifi attachment means provided in the embodiment of the present invention;
In figure:
101- input modules;102- computing modules;103- memory modules;104- connection establishment modules.
Embodiment
The embodiment of the present invention is described in more detail below in conjunction with schematic diagram.According to description below and Claims, advantages and features of the invention will become apparent from.It should be noted that accompanying drawing is using very simplified form and Using non-accurately ratio, only for the purpose of facilitating and clarifying the purpose of the embodiments of the invention.
The embodiments of the invention provide a kind of storage method of wifi passwords, according to the title of a wifi hotspot and described The user cipher of wifi hotspot generates a Crypted password, and the Crypted password is stored in a storage medium.
Specifically, for wifi wpa-psk authentication modes or wpa2-psk authentication modes, the Crypted password For a pairing master key (PMK, Pairwise Master Key), the Crypted password is stored in the storage medium, i.e., PMK is stored in the storage medium.Wherein, wpa is Wi-Fi Protected Access abbreviation, and it is wireless for protection The system of computer network (Wi-Fi) safety, there is two standards of WPA and WPA2.Psk is Pre-shared Key abbreviation, and it is released Justice is wildcard.
Further, the PMK is is generated using hash principles according to the title and user cipher of the wifi hotspot , it is the user cipher that counter can not release the wifi hotspot according to the PMK, there is irreversibility.Obtained that is, working as The storage medium access limit other people obtain be stored in the PMK in the storage medium when, being can not basis The PMK is counter release the wifi hotspot be used for password, i.e., can not obtain the user cipher of the wifi hotspot, improve The security of the user cipher of wifi passwords.
Further, applicants have found that, currently, for wifi wpa-psk authentication modes or wpa2-psk For authentication mode, when with the wifi hotspot establish connection during, be first from storage medium read storage The user cipher of wifi hotspot, a PMK is then generated according to the title of wifi hotspot and user cipher, generated further according to the PKM Other required keys are connected with the wifi hotspot, so as to realize the connection between the wifi hotspot.And above-mentioned During, it is most according to PMK described in the title dynamic generation of the user cipher and wifi hotspot that are stored in the storage medium Time-consuming, in Android platform, take around 60 milliseconds or so.
When wifi is during opening, the title and user cipher of the wifi hotspot that can be stored before dynamically be given birth to Into PMK, if the wifi hotspot quantity stored before is more, it is necessary to which the PMK calculated quantity can also increase, so as to cause Wifi toggle speed greatly extends.For example, it is 10 to add the wifi hotspot stored before, then need to calculate 10 PMK, The time needed is about 600 milliseconds, and Consumer's Experience is bad.
And in embodiments of the present invention, due to storing inherently PMK on said storage, then be described During wifi hotspot establishes connection, it is only necessary to the title with the wifi hotspot of storage is read from the storage medium Corresponding PMK, then directly established and connected with the wifi hotspot according to the PMK.
A kind of wifi connection methods are provided in embodiments of the present invention, as shown in figure, start to be connected to one when just During the wifi hotspot not connected before individual, comprise the following steps that.
Step S11:Input the user cipher of the wifi hotspot.
For wifi hotspot that is searching but not connecting, the user cipher of the wifi hotspot is inputted first.
Step S12:One Crypted password is generated according to the title of the wifi hotspot and user cipher, and the encryption is close Code is stored in a storage medium.
Step S13:Established and connected according to the Crypted password and the wifi hotspot.
The Crypted password, the encryption are generated according to the title and user cipher of the wifi hotspot using hash principles Password is PMK, and the PMK is stored in the storage medium, is then directly established according to the PMK with the wifi hotspot Connection.
When the Crypted password is obtained with other AESs, rather than, it is necessary to first enter to the Crypted password during PMK Row decoding, to obtain the user cipher of the wifi hotspot, then using hash principles according to the title of the wifi hotspot and User cipher generation PMK after decryption, establishes further according to the PMK and the wifi hotspot and connects.
In this method, store on said storage be not plaintext version user cipher, it is but encrypted Crypted password, when other people of the acquisition storage medium access limit are obtaining encrypted Crypted password, it can not also obtain The user cipher of the wifi hotspot is obtained, improves the security of wifi passwords.
The embodiment of the present invention additionally provides a kind of wifi connection methods, has been connected before needing to reconnect During wifi hotspot, as shown in Fig. 2 comprising the following steps.
Step S21:Read wifi configuration files.
Step S22:Wifi hotspot is obtained from the wifi configuration files.
Step S23:Crypted password corresponding with the title of the wifi hotspot is read from a storage medium.
The Crypted password is the PMK generated using hash principles according to the title and user cipher of the wifi hotspot.
Step S24:Established and connected according to the Crypted password and the wifi hotspot.
Directly established and connected with the wifi hotspot according to the PMK, without the title according to wifi hotspot and user Cryptographic calculations obtain PMK, when the number of the wifi hotspot stored before is more, also can directly using be stored in it is described storage be situated between The PMK of each wifi hotspot in matter is directly established with corresponding wifi hotspot and connected, and greatly reduces the time of wifi connections, Improve Consumer's Experience.
Further, the embodiment of the present invention additionally provides a kind of wifi attachment means, as shown in figure 3, including:One input module 101st, a computing module 102, a memory module 103 and a connection establishment module 104;Wherein, the input module 101 is used for Input the user cipher of a wifi hotspot;The computing module 102 is used for title and user cipher according to the wifi hotspot Generate a Crypted password;The memory module 103 is a storage medium, for storing the Crypted password;The connection is established Module 104, which is used to be established according to the Crypted password and the wifi hotspot, to be connected.
The Crypted password is the PMK generated using hash principles, and the connection establishment module can be direct according to the PMK Establish and connect with the wifi hotspot.
In embodiments of the present invention, the storage medium includes but is not limited to a FLASH flash memories.
To sum up, in the storage method of wifi passwords provided in an embodiment of the present invention, wifi connection methods and device, according to The user cipher of the title of one wifi hotspot and the wifi hotspot generates a Crypted password, and the Crypted password is stored in In one storage medium.Obtain the read-write power of the storage medium other people after the Crypted password is obtained, can not also obtain The user cipher of the wifi hotspot, improve the security of the password of wifi hotspot.Further, can be close according to the encryption Code is directly established with the wifi hotspot and connected, and during wifi connections, reduces title and use according to wifi hotspot The process of Crypted password described in the cryptographic calculations of family, the time that connection is established with the wifi hotspot is reduced, improve wifi companies The speed connect, and then improve Consumer's Experience.
The preferred embodiments of the present invention are above are only, any restrictions effect is not played to the present invention.Belonging to any Those skilled in the art, in the range of technical scheme is not departed from, to the invention discloses technical scheme and Technology contents make the variation such as any type of equivalent substitution or modification, belong to the content without departing from technical scheme, still Belong within protection scope of the present invention.

Claims (15)

  1. A kind of 1. storage method of wifi passwords, it is characterised in that
    One Crypted password is generated according to the user cipher of the title of a wifi hotspot and the wifi hotspot, and the encryption is close Code is stored in a storage medium.
  2. 2. the storage method of wifi passwords as claimed in claim 1, it is characterised in that for wpa-psk authentication modes or Wpa2-psk authentication modes, the Crypted password are a main key of pairing.
  3. 3. the storage method of wifi passwords as claimed in claim 2, it is characterised in that by the main key of the pairing directly with The wifi hotspot establishes connection.
  4. 4. the storage method of wifi passwords as claimed in claim 2, it is characterised in that using hash principles according to the wifi Title and user cipher the generation main key of pairing of focus.
  5. 5. a kind of wifi connection methods, it is characterised in that comprise the following steps;
    Input the user cipher of a wifi hotspot;
    One Crypted password is generated according to the title of the wifi hotspot and user cipher, and the Crypted password is stored in one and deposited On storage media;
    Established and connected according to the Crypted password and the wifi hotspot.
  6. 6. wifi connection methods as claimed in claim 5, it is characterised in that for wpa-psk authentication modes or wpa2- Psk authentication modes, the Crypted password is a pairing master key, and is directly built according to the Crypted password with the wifi hotspot Vertical connection.
  7. 7. wifi connection methods as claimed in claim 6, it is characterised in that using hash principles according to the wifi hotspot Title and the user cipher generation main key of pairing.
  8. 8. wifi connection methods as claimed in claim 5, it is characterised in that the user is decrypted according to the Crypted password Password, title further according to the wifi hotspot and the pairing master key of user cipher generation one, further according to the pairing master key with The wifi hotspot establishes connection.
  9. 9. a kind of wifi connection methods, it is characterised in that comprise the following steps;
    Read wifi configuration files;
    Wifi hotspot is obtained from the wifi configuration files;
    Crypted password corresponding with the title of the wifi hotspot is read from a storage medium;
    Established and connected according to the Crypted password and the wifi hotspot.
  10. 10. wifi connection methods as claimed in claim 9, it is characterised in that for wpa-psk authentication modes or wpa2- Psk authentication modes, the Crypted password are a main key of pairing, and according between the pairing master key with the wifi hotspot Establish connection.
  11. 11. wifi connection methods as claimed in claim 10, it is characterised in that using hash principles according to the wifi hotspot Title and the main key of the user cipher generation pairing.
  12. A kind of 12. wifi attachment means, it is characterised in that including;One input module, a computing module, a memory module and One connection establishment module;Wherein,
    The input module is used for the user cipher for inputting a wifi hotspot;
    The computing module is used to generate a Crypted password according to the title and user cipher of the wifi hotspot;
    The memory module is a storage medium, for storing the Crypted password;
    The connection establishment module, which is used to be established according to the Crypted password and the wifi hotspot, to be connected.
  13. 13. wifi attachment means as claimed in claim 12, it is characterised in that for wpa-psk authentication modes or wpa2- Psk authentication modes, the Crypted password are a main key of pairing.
  14. 14. wifi attachment means as claimed in claim 13, it is characterised in that by the main key of the pairing directly with it is described Wifi hotspot establishes connection.
  15. 15. wifi attachment means as claimed in claim 13, it is characterised in that using hash principles according to the wifi hotspot Title and the main key of the user cipher generation pairing.
CN201610498079.4A 2016-06-29 2016-06-29 Storage method, wifi connection methods and the device of wifi passwords Pending CN107548062A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610498079.4A CN107548062A (en) 2016-06-29 2016-06-29 Storage method, wifi connection methods and the device of wifi passwords

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610498079.4A CN107548062A (en) 2016-06-29 2016-06-29 Storage method, wifi connection methods and the device of wifi passwords

Publications (1)

Publication Number Publication Date
CN107548062A true CN107548062A (en) 2018-01-05

Family

ID=60966464

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610498079.4A Pending CN107548062A (en) 2016-06-29 2016-06-29 Storage method, wifi connection methods and the device of wifi passwords

Country Status (1)

Country Link
CN (1) CN107548062A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102883315A (en) * 2012-08-28 2013-01-16 中兴通讯股份有限公司 Wireless fidelity (WiFi) authentication method and system, and terminal
CN103702395A (en) * 2013-12-30 2014-04-02 中科创达软件股份有限公司 Method and device for establishing communication channel. and electronic equipment
CN104113895A (en) * 2014-07-21 2014-10-22 上海庆科信息技术有限公司 Wi-Fi (wireless fidelity) network connecting method and device
CN104834863A (en) * 2015-03-31 2015-08-12 努比亚技术有限公司 Wi-Fi password storage method and apparatus
EP3153985A1 (en) * 2015-10-08 2017-04-12 Thomson Licensing Device and method for password generation in a user device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102883315A (en) * 2012-08-28 2013-01-16 中兴通讯股份有限公司 Wireless fidelity (WiFi) authentication method and system, and terminal
CN103702395A (en) * 2013-12-30 2014-04-02 中科创达软件股份有限公司 Method and device for establishing communication channel. and electronic equipment
CN104113895A (en) * 2014-07-21 2014-10-22 上海庆科信息技术有限公司 Wi-Fi (wireless fidelity) network connecting method and device
CN104834863A (en) * 2015-03-31 2015-08-12 努比亚技术有限公司 Wi-Fi password storage method and apparatus
EP3153985A1 (en) * 2015-10-08 2017-04-12 Thomson Licensing Device and method for password generation in a user device

Similar Documents

Publication Publication Date Title
JP6979420B2 (en) Security configuration for communication between communication devices and network devices
EP2903389B1 (en) Method for keeping subscriber identity module cards on standby and terminal equipment
CN102571702B (en) Key generation method, system and equipment in Internet of things
EP2890167B1 (en) Method, terminal and universal integrated circuit card (uicc) for realizing subscriber identity module (sim) card function in terminal
EP3661241B1 (en) Method and device for protecting privacy
CN102196422B (en) Method for preventing leakage of lost file of handheld communication terminal
CN102843687A (en) Smartphone portable point safe access system and method
CN103888941A (en) Method and device for key negotiation of wireless network
JP2014053675A (en) Security chip, program, information processing device, and information processing system
CN103458400A (en) Key management method for voice encryption communication system
CN105376059A (en) Method and system for performing application signature based on electronic key
CN102761870A (en) Terminal authentication and service authentication method, system and terminal
WO2014169610A1 (en) Data encryption and decryption method and device, and protection system of mobile terminal
CN103632081A (en) Encrypted storage device and authentication system and authentication method thereof
EP4187952A1 (en) Method, system and apparatus for determining user plane security algorithm
JP2022513134A (en) Ensuring secure attachments in size-limited authentication protocols
CN101296231A (en) Data card operation method and data card
CN101557588B (en) User certificate management and use method and mobile terminal thereof
EP3281431B1 (en) Uicc key provisioning
CN104994498B (en) The method and system that a kind of terminal applies are interacted with mobile phone card application
CN114697008B (en) Communication system and method based on quantum security SIM card, quantum security SIM card and key service platform
CN109756451B (en) Information interaction method and device
CN105554759A (en) Authentication method and authentication system
CN103096317A (en) Two-way authentication method and system based on sharing enciphered data
CN103763697A (en) Wireless access point multi-secret key support system and method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
EE01 Entry into force of recordation of patent licensing contract
EE01 Entry into force of recordation of patent licensing contract

Application publication date: 20180105

Assignee: Shanghai Li Ke Semiconductor Technology Co., Ltd.

Assignor: Leadcore Technology Co., Ltd.

Contract record no.: 2018990000159

Denomination of invention: WiFi password storage method as well as WiFi connection method and device

License type: Common License

Record date: 20180615

WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20180105