In many work environments imposing very strict rules for user passwords. Sometimes they are so strict that users tend to create keys that then can not remember and have to score, resulting in a lower level of security than it had before the introduction of these rules. One way to generate keys that look random but may be easier for users to remember is to use phrases provided by the users after following certain transformations easier to remember.
For example, if the user intends to extract nearly a song: "And live the cane" where we changed the letter "a" with an at sign, the letter "v" by five and finally taking up to two symbols of each word would get "Y5il @ c @."
For data that create a password using the form below.
\u0026lt;html>FraseClave.php code begins to collect the field values, and then separates the sentence into words and take up to two characters of each word and replace some letters with numbers and special characters.
\u0026lt;head> \u0026lt;title>
key phrases Converter \u0026lt;/ title>
\u0026lt;/ head>
\u0026lt;body>
\u0026lt;h2> converter key phrases \u0026lt;/ h2>
\u0026lt;p> With this tool you can convert
phrase you propose in a seemingly random text
taking up two of the first letters of each word in the phrase
combining them into one
"word." The following is the character replacement
proposal to incorporate
numeric characters and special characters in the word. To incorporate case,
simply type the first few letters of the phrase
capitalized. \u0026lt;/ p>
\u0026lt;FORM ="post" action method name ="forma1" ="FraseClave.php">
\u0026lt;h2> Insert a memorable phrase
(we recommend having at least 5 words) \u0026lt;/ h2> type = "Text" \u0026lt;Input
name= "Frase" size="100"> Choose the letter
\u0026lt;p>
you want to replace with a number.
Lyrics:
\u0026lt;select name="NumLet">
\u0026lt;option> \u0026lt;/ option> \u0026lt;option
selected="selected" value="A"> A \u0026lt;/ option> ... \u0026lt;option
value="Z"> Z \u0026lt;/ option> \u0026lt;/ select>
Number:
\u0026lt;select name="Num">
\u0026lt;option selected = "selected" value = "0 "> 0 \u0026lt;/ option> ... \u0026lt;option
value="9"> 9 \u0026lt;/ option> \u0026lt;/ select>
\u0026lt;/ p>
\u0026lt;p> Choose the letter you want to replace with a special character:
Send
\u0026lt;select name="EspLet">
<option></option>
<option selected="selected" value="A">A</option>...
<option value="Z">Z</option></select>
Caracater especial:
<select name="Esp">
<option selected="selected" value="!">!</option>
<option value="@">@</option>
<option value="#">#</option>
<option value="$">$</option>
<option value="%">%</option>
<option value="^">^</option>
<option value="&">&</option>
<option value="*">*</option>
<option value="?">?</option>
<option value=".">.</option>
</select>
</p><br/> \u0026lt;Input
"Submit" type = Name = "Submit" VALUE = "Enviar">
\u0026lt;/ FORM>
\u0026lt;/ body>
\u0026lt;/ html>
$ passwd = "";only remains to show the user. This example can be adapted to meet the rules for creation of keys that are established. Related
$ phrase = $ _POST ['Text'];
$ NumLet = $ _POST ['NumLet'];
$ Num = $ _POST ['Num'];
$ EspLet = $ _POST ['EspLet'];
$ GMT = $ _POST ['En'];
$ Words = explode ("", $ phrase);
foreach ($ words as $ word) {
preg_match ('/ \\ w /', $ word, $ words);
if (sizeof (letters)> 0)
{$ passwd = $ passwd. $ Letters [0];
} if (sizeof (letters)> 1) {$ passwd = $
passwd. $ Letters [1];
}} $ passwd = preg_replace
("/($ NumLet) / i ", $ Num, $ passwd);
$ passwd = preg_replace ("/($ EspLet) / i" , "$ GMT", $ passwd);
- Using PHP to Enhance Password Security . Converting a phrase to a Seemingly random password using PHP. Christopher Frenz, Apr. 17, 2011
0 comments:
Post a Comment