CN113806671B - Chinese character password auxiliary input method, system and equipment applied to webpage - Google Patents

Chinese character password auxiliary input method, system and equipment applied to webpage Download PDF

Info

Publication number
CN113806671B
CN113806671B CN202111357985.XA CN202111357985A CN113806671B CN 113806671 B CN113806671 B CN 113806671B CN 202111357985 A CN202111357985 A CN 202111357985A CN 113806671 B CN113806671 B CN 113806671B
Authority
CN
China
Prior art keywords
password
input
box
character
text box
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.)
Active
Application number
CN202111357985.XA
Other languages
Chinese (zh)
Other versions
CN113806671A (en
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.)
Shandong Xingwei Jiuzhou Safety Technology Co ltd
Original Assignee
Shandong Xingwei Jiuzhou Safety Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shandong Xingwei Jiuzhou Safety Technology Co ltd filed Critical Shandong Xingwei Jiuzhou Safety Technology Co ltd
Priority to CN202111357985.XA priority Critical patent/CN113806671B/en
Publication of CN113806671A publication Critical patent/CN113806671A/en
Application granted granted Critical
Publication of CN113806671B publication Critical patent/CN113806671B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/45Structures or tools for the administration of authentication
    • G06F21/46Structures or tools for the administration of authentication by designing passwords or checking the strength of passwords
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/02Input arrangements using manually operated switches, e.g. using keyboards or dials
    • G06F3/023Arrangements for converting discrete items of information into a coded form, e.g. arrangements for interpreting keyboard generated codes as alphanumeric codes, operand codes or instruction codes
    • G06F3/0233Character input methods

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Databases & Information Systems (AREA)
  • Human Computer Interaction (AREA)
  • Computer Hardware Design (AREA)
  • Software Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Document Processing Apparatus (AREA)

Abstract

The application discloses a Chinese character password auxiliary input method, a system and equipment applied to a webpage, relating to the technical field of password security, wherein the method comprises the following steps: when a Web webpage password box acquires a user input focus, modifying the attribute of the password box into a text box; pre-storing the input password information through an intermediate variable; and when the user focus is detected to leave the text box, restoring the attribute of the password box, and assigning the password content stored in the intermediate variable to the password box. The user can input Chinese characters and Chinese character characters in the original Web page password box, and the input content with the intermediate variable cannot be directly displayed in the text box, so that the user is prevented from peeping. Therefore, the method not only realizes the Web page password box and further improves the complexity of the password, but also ensures the input safety.

Description

Chinese character password auxiliary input method, system and equipment applied to webpage
Technical Field
The application relates to the technical field of password security, in particular to a Chinese character password auxiliary input method, a system and equipment applied to a webpage.
Background
At present, all Web browsers on the market only allow the input of english letters, numbers and character combinations in the password box, but do not allow the input of characters of non-english languages, such as chinese characters, uygur, etc. The english letter code (hereinafter, letter code) does not conform to the use habit of the non-english country population. For Chinese people, letter codes are inconvenient to remember and manage. Especially for the old and people who do not know the Chinese phonetic alphabet, the letter code is more difficult to use.
Taking the 6-digit password commonly used in the traditional technology as an example, since English only has 26 letters and the number of the combination of the letter passwords is more than 3 hundred million, the numerical-order password combination is easier to be guessed violently, and the safety of the letter passwords is poor. And the number of the Chinese characters is more than 9 thousands, the code combination is 4096000000 trillion combinations calculated according to 4000 common Chinese characters, and the probability of violently cracking the code is almost 0.
Therefore, how to realize the input of the Chinese character password in the password box of the Web browser is an urgent technical problem to be solved in the field.
Disclosure of Invention
In order to solve the technical problems, the following technical scheme is provided:
in a first aspect, an embodiment of the present application provides a method for assisting input of a chinese character password applied to a web page, where the method includes: when a Web webpage password box acquires a user input focus, modifying the attribute of the password box into a text box; pre-storing the input password information through an intermediate variable; and when the user focus is detected to leave the text box, restoring the attribute of the password box, and assigning the password content stored in the intermediate variable to the password box.
By adopting the implementation mode, the user can input Chinese characters and Chinese character characters in the original Web page password box, and the input content and the intermediate variable cannot be directly displayed in the text box, so as to avoid peeping. Therefore, the method not only realizes the Web page password box and further improves the complexity of the password, but also ensures the input safety.
With reference to the first aspect, in a first possible implementation manner of the first aspect, the modifying a password box attribute to a text box when the password box of the Web page acquires a user input focus includes: introducing a js file into a Web page, wherein the js file encapsulates a cnpwd function; transmitting parameter information corresponding to a password domain of the password frame, wherein the parameter information comprises a password domain ID or name; the cnpwd function obtains the code domain object according to the parameter information; when the password domain obtains the user input focus, the javascript changes the password box into a text box by modifying the type attribute of the password domain object.
With reference to the first aspect, in a second possible implementation manner of the first aspect, the pre-storing the input password information through an intermediate variable includes: determining user key triggering event information; converting the input key information into corresponding password content according to the key triggering event information; and additionally writing the password content into the intermediate variable.
With reference to the second possible implementation manner of the first aspect, in a third possible implementation manner of the first aspect, converting the input key information into corresponding password content according to the key trigger event information includes: determining a keyCode value corresponding to the key triggering event information; if the keyCode value is 299, inputting Chinese content, and converting the key input information into a corresponding Chinese character; or, if the keyCode value is the ASC11 code of the currently input character, the input is an english letter, an english character or a number, and the key code value is converted into the corresponding english letter, english character or number according to the ASC11 code.
With reference to the third possible implementation manner of the first aspect, in a fourth possible implementation manner of the first aspect, the converting the key input information into a corresponding chinese kanji includes: before the user inputs pinyin by pressing keys to select Chinese characters, displaying pinyin letters in the text box, and after the user selects the Chinese characters, replacing the pinyin letters in the text box with the Chinese characters; or before the user selects no specific Chinese character, the pinyin letter input is not displayed in the text box, and after the user selects the Chinese character, the typed Chinese character directly appears in the text box.
With reference to the fourth possible implementation manner of the first aspect, in a fifth possible implementation manner of the first aspect, when the user uses the chinese input method, if it is detected that the pinyin character length entered by the user through a keystroke exceeds the input length of the text box, the pinyin character in the text box is deleted.
With reference to any one of the third to fifth possible implementation manners of the first aspect, in a sixth possible implementation manner of the first aspect, after the password information entered by the user is written into the intermediate variable, the password information is replaced with the security privacy symbol in the text box.
In a second aspect, an embodiment of the present application provides a system for assisting input of a chinese character password applied to a web page, where the system includes: the attribute modification module is used for modifying the attribute of the password box into a text box when the password box of the Web page acquires the input focus of the user; the storage module is used for pre-storing the input password information through an intermediate variable; and the processing module is used for restoring the attribute of the password box and assigning the password content stored in the intermediate variable to the password box when the fact that the focus of the user leaves the text box is detected.
In a third aspect, an embodiment of the present application provides an apparatus, including: a processor; a memory for storing computer executable instructions; when the processor executes the computer-executable instructions, the processor executes the method of the first aspect or any one of the possible implementation manners of the first aspect to realize inputting Chinese character passwords on a Web page.
Drawings
Fig. 1 is a schematic flowchart of a method for assisting input of a chinese character password applied to a web page according to an embodiment of the present application;
FIG. 2 is a diagram illustrating a Chinese input method according to an embodiment of the present application;
FIG. 3 is a diagram illustrating display contents of a textbox according to an embodiment of the present disclosure;
FIG. 4 is a schematic diagram of a Chinese character password-assisted input system applied to a web page according to an embodiment of the present application;
fig. 5 is a schematic diagram of an apparatus provided in an embodiment of the present application.
Detailed Description
The present invention will be described with reference to the accompanying drawings and embodiments.
Fig. 1 is a schematic flow chart of a method for assisting input of a chinese character password applied to a web page according to an embodiment of the present application, and referring to fig. 1, the method for assisting input of a chinese character password applied to a web page according to the embodiment of the present application includes:
s101, when the password box of the Web page acquires the input focus of the user, the attribute of the password box is modified into a text box.
Under the influence of a browser, an operating system and an input method, solutions used in different client environments are slightly different. The present application is described below with reference to exemplary embodiments.
The method and the device for the webpage calling are called in a javascript script file mode, js files need to be introduced into the Web webpage, and the js files encapsulate cnpwd functions. Then, the cnpwd function is executed, and the Id or name of the password domain to be modified is transmitted. The cnpwd function can accurately obtain the password domain object through the input parameters, and when the password domain obtains the user focus, the javascript changes the password box into a text box by modifying the type attribute of the password domain object. Namely, type = 'password' is modified into type = 'text', so that the user can call the Chinese input method when inputting.
And S102, pre-storing the input password information through an intermediate variable.
In this implementation, the key triggering event information of the user is determined first, and then the input key information is converted into the corresponding password content according to the key triggering event information, and the password content is written into the intermediate variable in an additional way.
The intermediate variable in this embodiment is a definition variable tmp _ v that temporarily stores the password input by the user. When inputting Chinese, the keyCode value of the triggered key event is 229, and when inputting English letters, english characters and numbers, the keyCode value is the ASC11 code of the currently input character.
When the user inputs English and numbers, the program converts the ASC11 code into corresponding English letters and numbers, and additionally writes a tmp _ v variable. When the program detects that the user is inputting Chinese, it detects in real time whether there are any newly added Chinese characters in the text field, and if so, immediately adds them to the tmp _ v variable.
Different Chinese input methods are processed differently. The representation in the text box according to the input method can be divided into two categories. The first type is that pinyin letters are simultaneously displayed in a text box before a user selects no chinese character after typing pinyin, and the pinyin letters in the text box are replaced with chinese characters after the user selects chinese characters. Such as a dog-hunting pinyin input method. In the second category, no pinyin letters are entered in the text box until the user has not selected a particular chinese character.
When a user uses the Chinese input method, if the content length of the text box is increased when the key pressing of the user is detected, the method is the first type of input method, otherwise, the method is the second type of input method, and the second type of input method does not need special processing.
In the first type of input method, when a user selects a Chinese character, cnpwd deletes the pinyin character in the text box to ensure the completeness of input. And if the pinyin character length input by the user key exceeds the input length of the text box, deleting the pinyin character in the text box, and at the moment, pre-storing the previously input content in the text box. Referring to fig. 2, for example, if the input password is a chinese character "chinese character password auxiliary input method applied to a web page", assuming that "yingyongyuwangye" is input, the text box cannot be input continuously, and at this time, "yingyongyuwangyye" is pre-stored, and then, the continuous input of subsequent characters is deleted.
It should be noted that in the present embodiment, the newly input character in the text box is replaced with "x", so that only one character of "x" exists in the text box, and the true password content exists in the tmp _ v variable, see fig. 3.
S103, when the fact that the focus of the user leaves the text box is detected, the attribute of the password box is restored, and the password content stored in the intermediate variable is assigned to the password box.
And when the focus of the user is detected to leave the text box, the password input is considered to be finished, the text box is restored to be the password box, and the password content is returned to the password box. That is, tmp _ v is assigned to the value attribute of the password box, and the value in the password box is the chinese character. Therefore, the method and the device only help the user to input the Chinese characters in the password frame which does not support the Chinese characters, and other attributes of the password frame are not changed, so that the method and the device have good compatibility.
Corresponding to the Chinese character password auxiliary input method applied to the webpage provided by the embodiment, the application also provides an embodiment of the Chinese character password auxiliary input system applied to the webpage.
Referring to fig. 4, the chinese character password auxiliary input system 20 applied to the web page includes: an attribute modification module 201, a storage module 202 and a processing module 203.
The attribute modification module 201 is configured to modify the password box attribute into a text box when the password box of the Web page obtains a user input focus. The storage module 202 is configured to pre-store the input password information through an intermediate variable. The processing module 203 is configured to restore the attribute of the password box when it is detected that the user focus leaves the text box, and assign the password content stored in the intermediate variable to the password box.
An apparatus is also provided in the embodiments of the present application, and referring to fig. 5, the apparatus 30 includes: a processor 301, a memory 302, and a communication interface 303.
In fig. 5, the processor 301, the memory 302, and the communication interface 303 may be connected to each other by a bus; the bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown in FIG. 5, but this is not intended to represent only one bus or type of bus.
The processor 301 is generally an integral function of the device 30, for example, the device 30 is started, and a Web page password box is detected after the device 30 is started, and when the Web page password box acquires a user input focus, the password box attribute is modified into a text box; pre-storing the input password information through an intermediate variable; and when the user focus is detected to leave the text box, restoring the attribute of the password box, and assigning the password content stored in the intermediate variable to the password box.
It is noted that, in this document, relational terms such as "first" and "second," and the like, may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising a … …" does not exclude the presence of another identical element in a process, method, article, or apparatus that comprises the element.

Claims (5)

1. A Chinese character password auxiliary input method applied to a webpage is characterized by comprising the following steps:
when a Web webpage password box acquires a user input focus, modifying the attribute of the password box into a text box;
pre-storing the input password information through an intermediate variable, wherein the pre-storing comprises the following steps:
determining user key triggering event information;
converting the input key information into corresponding password content according to the key triggering event information;
additionally writing the password content into the intermediate variable;
converting the input key information into corresponding password content according to the key triggering event information comprises:
determining a keyCode value corresponding to the key triggering event information;
if the keyCode value is 299, inputting Chinese content, and converting the key input information into a corresponding Chinese character;
alternatively, the first and second liquid crystal display panels may be,
if the keyCode value is the ASC11 code of the current input character, the input character is an English letter, an English character or a number, and the key code value is converted into the corresponding English letter, english character or number according to the ASC11 code;
converting the key input information into corresponding Chinese characters, comprising:
before the user inputs pinyin by pressing keys to select Chinese characters, displaying pinyin letters in the text box, and after the user selects the Chinese characters, replacing the pinyin letters in the text box with the Chinese characters;
or before the user selects no specific Chinese character, the pinyin letter input is not displayed in the text box, and after the user selects the Chinese character, the typed Chinese character directly appears in the text box;
when a user uses the Chinese input method, if the fact that the length of the pinyin character input by the user key exceeds the input length of the text box is detected, the pinyin character in the text box is prestored, then the pinyin character in the text box is deleted, and the subsequent character is continuously input;
and when the user focus is detected to leave the text box, restoring the attribute of the password box, and assigning the password content stored in the intermediate variable to the password box.
2. The auxiliary input method of Chinese character password applied to Web page of claim 1, wherein the modifying the password box attribute to a text box when the Web page password box gets the user input focus comprises:
introducing a js file into a Web page, wherein the js file encapsulates a cnpwd function;
transmitting parameter information corresponding to a password domain of the password frame, wherein the parameter information comprises a password domain ID or a name;
the cnpwd function obtains a password domain object according to the parameter information;
when the password domain obtains the user input focus, the javascript changes the password box into a text box by modifying the type attribute of the password domain object.
3. The auxiliary input method of Chinese character password applied to web page as claimed in claim 1, wherein after the password information typed by the user is written into the intermediate variable, the password information is replaced by the security privacy symbol in the text box.
4. A Chinese character password auxiliary input system applied to a webpage is characterized by comprising:
the attribute modification module is used for modifying the attribute of the password box into a text box when the password box of the Web page acquires the input focus of the user;
the storage module is used for pre-storing the input password information through an intermediate variable; the method comprises the following steps:
determining key triggering event information of a user;
converting the input key information into corresponding password content according to the key triggering event information;
additionally writing the password content into the intermediate variable;
converting the input key information into corresponding password content according to the key triggering event information comprises the following steps:
determining a keyCode value corresponding to the key triggering event information;
if the keyCode value is 299, inputting Chinese content, and converting the key input information into a corresponding Chinese character;
alternatively, the first and second electrodes may be,
if the keyCode value is the ASC11 code of the current input character, the input character is an English letter, an English character or a number, and the key code value is converted into the corresponding English letter, english character or number according to the ASC11 code;
converting the key input information into corresponding Chinese characters, comprising:
before the user inputs pinyin by pressing keys to select Chinese characters, displaying pinyin letters in the text box, and after the user selects the Chinese characters, replacing the pinyin letters in the text box with the Chinese characters;
or before the user selects no specific Chinese character, the pinyin letter input is not displayed in the text box, and after the user selects the Chinese character, the typed Chinese character directly appears in the text box;
when a user uses the Chinese input method, if the fact that the length of the pinyin character input by the user key exceeds the input length of the text box is detected, the pinyin character in the text box is prestored, then the pinyin character in the text box is deleted, and the subsequent character is continuously input;
and the processing module is used for restoring the attribute of the password box and assigning the password content stored in the intermediate variable to the password box when the fact that the focus of the user leaves the text box is detected.
5. An apparatus, comprising:
a processor;
a memory for storing computer executable instructions;
when the processor executes the computer-executable instructions, the processor executes the method of any one of claims 1-3 to input the Chinese character password on the Wed webpage.
CN202111357985.XA 2021-11-17 2021-11-17 Chinese character password auxiliary input method, system and equipment applied to webpage Active CN113806671B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111357985.XA CN113806671B (en) 2021-11-17 2021-11-17 Chinese character password auxiliary input method, system and equipment applied to webpage

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111357985.XA CN113806671B (en) 2021-11-17 2021-11-17 Chinese character password auxiliary input method, system and equipment applied to webpage

Publications (2)

Publication Number Publication Date
CN113806671A CN113806671A (en) 2021-12-17
CN113806671B true CN113806671B (en) 2022-10-14

Family

ID=78898649

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111357985.XA Active CN113806671B (en) 2021-11-17 2021-11-17 Chinese character password auxiliary input method, system and equipment applied to webpage

Country Status (1)

Country Link
CN (1) CN113806671B (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107292205A (en) * 2016-03-31 2017-10-24 阿里巴巴集团控股有限公司 A kind of input method and device, electronic equipment

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
AU2014201250B2 (en) * 2011-04-21 2015-01-15 Accenture Global Services Limited Analysis system for test artifact generation
US9996512B2 (en) * 2012-11-13 2018-06-12 Beijing Qihoo Technology Company Limited Customized processing of DOM objects
CN107016035A (en) * 2016-12-27 2017-08-04 阿里巴巴集团控股有限公司 form data processing method and server
CN106934297A (en) * 2017-02-22 2017-07-07 广东网金控股股份有限公司 A kind of method and device for preventing browser to automatically save information

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107292205A (en) * 2016-03-31 2017-10-24 阿里巴巴集团控股有限公司 A kind of input method and device, electronic equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
"文本输入框涉及的详细解析";小龙;《人人都是产品经理》;20200807;第1-27页 *

Also Published As

Publication number Publication date
CN113806671A (en) 2021-12-17

Similar Documents

Publication Publication Date Title
CN103959206B (en) Method and apparatus for dynamically adapting dummy keyboard
US9027122B2 (en) Isolation tool for user assistance in solving a captcha test
US6968455B2 (en) Method of referring to digital watermark information embedded in a mark image
EP2472428B1 (en) Response determining device, response determining method, response determining program, recording medium and response determining system
US20060155780A1 (en) Adding personalized value to web sites
US11017052B1 (en) Electronic forms interaction framework for a consistent user experience
KR20090003397A (en) Method and system for providing additional information service onto e-mail using indication of information-region
JPH11328076A (en) Method and system for accessing internet
KR20000071286A (en) Bidirectional network language support
US20150254713A1 (en) Content dynamically targetted according to context
CN1051440A (en) The link method of application program and conversion program
CN113806671B (en) Chinese character password auxiliary input method, system and equipment applied to webpage
US20040126017A1 (en) Grammar-determined handwriting recognition
CN108234391B (en) Login information prompting method and device
US20140289608A1 (en) Terminal device, display method, and server device
US10346606B2 (en) Generation of a captcha on a handheld touch screen device
CN107533522B (en) Information linking system, information linking program, and method of operating information linking system
KR20230131753A (en) Web font service method of font service system
US20180239570A1 (en) Printer and content display method
JP2017204056A (en) Determination device and determination method
US7363588B2 (en) GUI for organizational environment
JP5052058B2 (en) Information processing apparatus, information processing method, and information processing program
CN103795732A (en) Method and device for generating code
US11574134B2 (en) Systems and methods of processing a document in an imaging device
KR100788239B1 (en) Internet site connecting apparatus based on Korean initial sound character string by recognizing mouse writing and the storage medium applicable therein and readable by computer

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
GR01 Patent grant
GR01 Patent grant
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: A Chinese character password assisted input method, system, and device applied to web pages

Granted publication date: 20221014

Pledgee: Qilu Bank Co.,Ltd. Jinan Science and Technology Innovation Financial Center Branch

Pledgor: Shandong Xingwei Jiuzhou Safety Technology Co.,Ltd.

Registration number: Y2024980013067

PE01 Entry into force of the registration of the contract for pledge of patent right