The content of the invention
There is provided the display methods and device of a kind of visual password of peep-proof in the embodiment of the present invention, carried with reducing bad password
The time that cross surface is brought wastes problem and improves security.
In order to solve the above-mentioned technical problem, the embodiment of the invention discloses following technical scheme:
First aspect provides a kind of display methods of the visual password of peep-proof, including:
Receive at least one password that user is input to Password Input frame;
The color and background color of the selection display password;
The color and background color of the password is adjusted in corresponding preset range respectively, peep-proof is obtained visually close
Code, wherein, the visual password of peep-proof is that can be seen that in the range of pre-determined distance;
The visual password of the peep-proof is shown by the Password Input frame.
It is described to adjust the color and background color of password respectively in the first possible implementation of first aspect
To before or after corresponding preset range, methods described also includes:Adjust font size, font weight and/or the word of the password
Body type.
With reference to the first possible implementation of first aspect or first aspect, in second of possible implementation
In, methods described also includes:
Shade is added on the password after adjusting font size, font weight and/or the font type of the password
Picture.
With reference to the first or second of possible implementation of first aspect or first aspect, in the third possible reality
In existing mode, described that the color and background color of password is adjusted to before or after corresponding preset range respectively, methods described is also
Including:Shade picture is added on the password.
With reference to the first or second or the third possible implementation of first aspect or first aspect, at the 4th kind
In possible implementation, methods described also includes:
Font size, font weight and/or the font type of the password after adjustment addition shade picture.
Second aspect provides a kind of display device of the visual password of peep-proof, including:
Receiving unit, at least one password of Password Input frame is input to for receiving user;
Selecting unit, the color and background color for selecting the display password;
First adjustment unit, for the color and background color of the password to be adjusted into corresponding preset range respectively
It is interior, the visual password of peep-proof is obtained, wherein, the visual password of peep-proof is visible in the range of pre-determined distance;
Display unit, for showing the visual password of the peep-proof by the Password Input frame.
In the first possible implementation of second aspect, in addition to:
Second adjustment unit, for being adjusted to the color and background color of password pair respectively in first adjustment unit
Before or after the preset range answered, font size, font weight and/or font type for adjusting the password.
With reference to the first possible implementation of second aspect or second aspect, in second of possible implementation
In, in addition to:
First adding device, shade picture is added on the password after second adjustment unit adjustment.
With reference to the first or second of possible implementation of second aspect or aspect, in the third possible realization
In mode, in addition to:
Second adding device, correspondence is adjusted to for first adjustment unit respectively by the color and background color of password
Preset range before or after, on the password add shade picture.
With reference to the first or second or the third possible implementation of second aspect or second aspect, at the 4th kind
In possible implementation, in addition to:
3rd adjustment unit, the font for adjusting the password after the second adding device addition shade picture is big
Small, font weight and/or font type.
As shown from the above technical solution, in the embodiment of the present invention, due to user can see in Password Input it is defeated close
Code correctness, as found to input by mistake, can be corrected at once, so that the time waste problem that bad password is submitted and brought is reduced,
The satisfaction of user is also improved simultaneously.Simultaneously as only closely can just see the password of input, when remote, then without
Method clearly sees password, serves certain cipher anti-theft visual function, improves security.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Whole description, it is clear that described embodiment is only a part of embodiment of the invention, rather than whole embodiments.It is based on
Embodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under the premise of creative work is not made
Embodiment, belongs to the scope of protection of the invention.
Referring to Fig. 1, Fig. 1 is a kind of flow chart of the display methods of the visual password of peep-proof provided in an embodiment of the present invention;
Methods described includes:
Step 101:Receive at least one password that user is input to Password Input frame;
System or processor receive user and pass through computer or mobile terminal(Such as mobile phone, tablet personal computer etc.)Input
Each password, wherein, the password can be startup password, can also log-in password or payment cipher etc..
In the present embodiment, the password can include character, can also include multiple characters or a string of characters etc..
Step 102:The color and background color of the selection display password;
System or processor select the color of the password, and the password after the password of user's input is received
Background color, such as, the background color for selecting the password is black, and it is grey etc. to select the color of the password, certainly
This is not limited to, it is also an option that other colors, the present embodiment is not restricted.
Under normal circumstances, the background color of password can also be set to the black of acquiescence, and select the face of the password
Color is other colors.Optionally, the background color of the color of the password and password can be close color, or no
Close color.When the color and background color of password is close color, its corresponding color can be adjusted;Afterwards, also
Font size, font weight and/or font type of password etc. can be adjusted, when the color and background color of password is non-close
Color when, can directly adjust font size, font weight and/or font type of password etc..
Step 103:The color and background color of the password is adjusted in corresponding preset range respectively, peep-proof is obtained
Visual password, wherein, the visual password of peep-proof is visible in pre-determined distance;
Wherein, system or processor can be preset near further combined with parameters such as itself screen intensity, resolution ratio
Distance can see the preset range of password on background color.Such as, in the PHILIPS light-emitting diode displays (contrast of brightness 70/
50), in the case of indoor bright light, background color is set to RGB (0A, 0A, 0A), text color is set to RGB (19,19,19), obtained
The password of the Password Input frame arrived is visible in off screen curtain 30cm, is difficult to see (concrete numerical value and personal eyesight or ring clearly outside 30cm
Border factor is relevant).But this is not limited to, the adjustment up and down of adaptability can also be carried out on this basis, the present embodiment is not limited
System.It should be noted that, the parameters such as screen intensity, resolution ratio can not also be considered, directly preset based on experience value closely
The preset range of password can be seen on background color.
Wherein, the pre-determined distance can be 20cm or 30cm, can also be 50cm, and its span is general
Can be that, it is, of course, also possible to carry out accommodation as needed, the present embodiment is not restricted between 5cm-100cm.
Step 104:The visual password of the peep-proof is shown by the Password Input frame.
The visual password of obtained peep-proof is shown to the user by system or processor by the Password Input frame, so as to
In the user(That is operator)Can closely see oneself input password, not only can confirm that input password it is correct
Property, and also assures that the security of password.
In this embodiment, if system or processor receive each password that user inputs Password Input frame, system
Or processor will carry out the selection processing of color to this password at once, such as the color for selecting this password is grey, choosing
The background color for selecting this password is black, afterwards, the color and background color of this password is adjusted into corresponding pre- respectively
If in scope, obtaining the visual password of peep-proof of this password, finally, show that the peep-proof is visually close by the Password Input frame
Code.For a user, user often inputs a password, and system or processor can carry out the place of selection color for the password immediately
Reason, is then displayed to the user, that is, be shown to user for the visual password of peep-proof, wherein the visual password of each peep-proof is only near
Just it can see apart from interior, away from the square that several black are can only see after certain distance.
Generally under distance, if the password of user's input is 6 code characters, then each cipher word in 6 code characters
The color and background color for according with selection can be with identical, can also be different, and the present embodiment is not restricted.
In the embodiment of the present invention, because the color and background color of each password to inputting Password Input frame is carried out successively
Adjustment, the password after adjustment only just can see that in pre-determined distance, can not only ensure to input the correctness of password, may be used also
To ensure the security of password, so as to improve the satisfaction of user.
Optionally, in another embodiment, the embodiment selects the face of the password on the basis of above-described embodiment
Color and background color can be similar color, such as, and the background color of password is black, and the color of password itself can be ash
Color or navy blue etc..
Optionally, in another embodiment, the embodiment is on the basis of above-described embodiment, by the color and the back of the body of password
Scape color is adjusted to before or after corresponding preset range respectively, and methods described can also include:The font for adjusting the password is big
Small, font weight and/or font type.
A kind of situation is:First the color and background color of password is adjusted in corresponding preset range respectively, then adjusted
Font size, font weight and/or the font type of the password, in order to make the password after adjustment in short range
It is interior visual.
Another situation is:Font size, font weight and/or the font type of the password are first adjusted, afterwards, then will
The color and background color of password is adjusted in corresponding preset range respectively, in order to make the password after adjustment in low coverage
It is visual from the range of.
Such as, it is assumed that the color of password for light color, and the background color of password be black when, can be first by each of input
The color of password is adjusted in corresponding preset range, then the background color of password is also adjusted in corresponding preset range,
It is of course also possible to which the color and background color for adjusting each password simultaneously is adjusted in corresponding preset range respectively;So
Afterwards, font size, font weight and/or the font type of each password are adjusted, such as, the font size of password is adjusted to small
Font(Such as No. five fonts etc.), and/or, the font type of each password is adjusted into regular script, or Song typeface etc.;Or, pass through figure
As treatment technology distort the password font face or by the font of the password thicken, deform, but be not limited to
This.
It is of course also possible to the font size of each password, font weight and/or font type are first adjusted, then will be each close
The color of code is adjusted in corresponding preset range, specifically refers to above-mentioned, will not be repeated here.
Optionally, in another embodiment, the embodiment is on the basis of above-described embodiment, by the color and the back of the body of password
Scape color is adjusted to before or after corresponding preset range respectively, and methods described can also include:Shade is added on the password
Picture.
A kind of situation is:First the color and background color of password is adjusted in corresponding preset range respectively, described
Shade picture is added on password, in order to make the password of addition shade picture in short range it is visual.
Another situation is:Shade picture is first added on the password, afterwards, then by the color and background color of password
Be adjusted to respectively in corresponding preset range, in order to make the password after adjustment in short range it is visual.
Wherein, the shade picture can be the shade picture pre-set, or according to dynamically being adjusted needed for password
Whole shade picture.
Optionally, in another embodiment, the color and background color of password is being adjusted to corresponding default respectively
Before or after scope, methods described can also include:Adjust font size, font weight and/or the font type of the password;And
Shade picture is added on the password after the adjustment;Or, shade picture is added on the password, and adjust addition shade
The font size of the password, font weight and/or font type after picture.
Wherein, in this embodiment, the shade picture is as described above, will not be repeated here.
In the embodiment of the present invention, the color and background color of password that can first to inputting Password Input frame is adjusted,
In order to make the password after adjustment only closely just can see that, it can not only ensure to input the correctness of password, may be used also
With the security of the password of guarantee, so as to improve the satisfaction of user.Further, can also adjust password font size,
Font weight and/or font type, or by way of adding shade picture, to cover the display visibility of password, so that
The closely visual definition of password is reached, the peep-proof visual function of remote password can not clearly see password at a distance.
Implementation process based on the above method, the embodiment of the present invention also by a kind of display device of the visual password of peep-proof,
Its structural representation is as shown in Figure 2.Described device includes:Receiving unit 21, selecting unit 22, the first adjustment unit 23 and display
Unit 24, wherein, the receiving unit 21 is input at least one password of Password Input frame for receiving user, wherein, should
Password can include character, can also include multiple characters, can also include a string of characters etc.;The selecting unit 22,
Color and background color for selecting the display password;First adjustment unit 23, for by the color of the password
It is adjusted to respectively in corresponding preset range with background color, obtains the visual password of peep-proof, wherein, the visual password of peep-proof is
It is visible in the range of pre-determined distance;The display unit 24, for showing that the peep-proof is visually close by the Password Input frame
Code.
Optionally, the color and background color of the password of the selecting unit selection is similar color, but is not limited
, can be with non-similar color in this, and can be by adjusting the font size, thickness, shape of password for non-close color
And/or type has reached closely visual function.
Optionally, on the basis of Fig. 2 embodiments, described device can also include:Second adjustment unit 31, its structure is shown
It is intended to as shown in figure 3, described Fig. 3 is a kind of another structure of the display device of the visual password of peep-proof provided in an embodiment of the present invention
Schematic diagram, wherein, second adjustment unit 31, in first adjustment unit 23 by the color and background color of password
It is adjusted to respectively before or after corresponding preset range, adjusts font size, font weight and/or the font type of the password.
Optionally, on the basis of Fig. 3, described device can also include:First adding device 41, its structural representation is such as
Shown in Fig. 4, described Fig. 4 is a kind of another structural representation of the display device of the visual password of peep-proof provided in an embodiment of the present invention
Figure, first adding device 41 is used to add shade picture on the password after second adjustment unit 31 adjustment;
Wherein, the shade picture that the shade picture is dynamically adjusted for the shade picture that pre-sets or for needed for according to password.
Optionally, on the basis of embodiment described in Fig. 2, described device can also include:Second adding device 51, it is tied
Structure schematic diagram is as shown in figure 5, described Fig. 5 is a kind of the another of display device of the visual password of peep-proof provided in an embodiment of the present invention
Structural representation, second adding device 51 divides the color and background color of password for first adjustment unit 23
It is not adjusted to before or after corresponding preset range, for adding shade picture on the password.
Optionally, on the basis of embodiment described in Fig. 5, described device can also include:3rd adjustment unit 61, it is tied
Structure schematic diagram is as shown in fig. 6, described Fig. 6 is a kind of the another of display device of the visual password of peep-proof provided in an embodiment of the present invention
Structural representation.Wherein, the 3rd adjustment unit 61, for adjusting after the addition of the second adding device 51 shade picture
Font size, font weight and/or the font type of the password.
The function of unit and the implementation process of effect refer to the realization of correspondence step in the above method in described device
Process, specifically refers to above-mentioned, will not be repeated here.
The embodiment of the present invention also provides a kind of terminal electronic device, includes the display device of the visual password of peep-proof, wherein, institute
The function and effect of stating the display device of the visual password of peep-proof refer to the function and work of the display device of the visual password of above-mentioned peep-proof
With will not be repeated here.
For the ease of the understanding of those skilled in the art, refer to and peeped using putting of being shown after technical scheme of the present invention
The schematic diagram of visual password.
Referring to Fig. 7, Fig. 7 is one kind provided in an embodiment of the present invention shows that the peep-proof is visually close by Password Input frame
The effect enlarged diagram of code.In Fig. 7 by taking the size and font type that adjust password font as an example, but it is not limited to this.The figure
In password by taking 1fa3apj as an example.
Fig. 8 is also referred to, Fig. 8 is that one kind provided in an embodiment of the present invention shows that the peep-proof is visual by Password Input frame
Another effect enlarged diagram of password.In Fig. 8 exemplified by adding shade picture on password, but it is not limited to this.In the figure
Password by taking d5e2ffs as an example.
In the embodiment of the present invention, user can see whether inputted password correct during Password Input, such as send out
Now input by mistake, can correct at once, so that the time waste problem that bad password is submitted and brought is reduced, while also improving use
The satisfaction at family.Further, since only closely can just see password, when remote, then password can not be clearly seen, so that
Serve certain cipher anti-theft visual function.
It should be noted that herein, such as first and second or the like relational terms are used merely to a reality
Body or operation make a distinction with another entity or operation, and not necessarily require or imply these entities or deposited between operating
In any this actual relation or order.Moreover, term " comprising ", "comprising" or its any other variant are intended to
Nonexcludability is included, so that process, method, article or equipment including a series of key elements not only will including those
Element, but also other key elements including being not expressly set out, or also include being this process, method, article or equipment
Intrinsic key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that
Also there is other identical element in process, method, article or equipment including the key element.
Through the above description of the embodiments, those skilled in the art can be understood that the present invention can be by
Software adds the mode of required general hardware platform to realize, naturally it is also possible to which by hardware, but in many cases, the former is more
Good embodiment.Understood based on such, what technical scheme substantially contributed to prior art in other words
Part can be embodied in the form of software product, and the computer software product can be stored in storage medium, such as ROM/
RAM, magnetic disc, CD etc., including some instructions are to cause a computer equipment(Can be personal computer, system or place
Manage device, or network equipment etc.)Perform the method described in some parts of each embodiment of the invention or embodiment.
Described above is only the preferred embodiment of the present invention, it is noted that for the ordinary skill people of the art
For member, under the premise without departing from the principles of the invention, some improvements and modifications can also be made, these improvements and modifications also should
It is considered as protection scope of the present invention.