PHP / Mobile

From PasswordMaker

Revision as of 20:31, 30 August 2007 by Tanstaafl (Talk | contribs)
Jump to: navigation, search

These editions of PasswordMaker are made with PHP.

PHP Edition

This is the first of the PHP editions, and was never really meant to be standalone. Miquel Fire had looked at the source for the JavaScript Edition and ported the password making algorithms to PHP. Initially, the base classes used the mHash PHP library for the one-way hash algorithms. Currently in PasswordMaker Source Control (Subversion), there's a version that is written to allow this edition to run on servers without mHash since many hosting companies do not offer this library.

Mobile Edition

This edition was made as a way to allow mobile phone users to being able to use PasswordMaker. Currently it's setup to post the parameters to the server and return a password. It is also implemented with PHP.


<form method="post" action="mobile-submit.php">

<label accesskey="m" for="mpw">Master Password</label> <input id="mpw" name="mpw" type="password"/>
<label accesskey="l" for="leet">Use l33t</label>
   <select id="leet" name="leet">
     <option value="0">None</option>
     <option value="1">Before generating password</option>
     <option value="2">After generating password</option>
     <option value="3">Before & after generating password</option>
   </select>
<label accesskey="v" for="level">l33t Level</label>
   <select id="level" name="level">
     <option value="1">1</option>
     <option value="2">2</option>
     <option value="3">3</option>
     <option value="4">4</option>
     <option value="5">5</option>
     <option value="6">6</option>
     <option value="7">7</option>
     <option value="8">8</option>
     <option value="9">9</option>
   </select>
<label accesskey="h" for="alg">Hash Algorithm</label>
   <select id="alg" name="alg">
     <option value="md4">MD4</option>
     <option value="hmac-md4">HMAC-MD4</option>
     <option value="md5">MD5</option>
     <option value="md5_v6">MD5 Version 0.6</option>
     <option value="hmac-md5">HMAC-MD5</option>
     <option value="hmac-md5_v6">HMAC-MD5 Version 0.6</option>
     <option value="sha1">SHA-1</option>
     <option value="hmac-sha1">HMAC-SHA-1</option>
     <option value="sha256">SHA-256</option>
     <option value="hmac-sha256">HMAC-SHA-256</option>
     <option value="rmd160">RIPEMD-160</option>
     <option value="hmac-rmd160">HMAC-RIPEMD-160</option>
   </select>
<label accesskey="u" for="url">URL</label> <input id="url" name="url" type="text"/>
<label accesskey="g" for="len">Generated Password Length</label> <input id="len" name="len" type="text" value="12"/>
<label accesskey="n" for="user">Username</label> <input id="user" name="user" type="text"/>
<label accesskey="o" for="mod">Modifier</label> <input id="mod" name="mod" type="text"/>
<label accesskey="c" for="charset">Characters</label> <input id="charset" name="charset" value="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789`[email protected]#$%^&*()_-+={}|[]\:";'<>?,./" type="text"/>
<label accesskey="p" for="prefix">Prefix</label> <input id="prefix" name="prefix" type="text"/>
<label accesskey="s" for="suffix">Suffix</label> <input id="suffix" name="suffix" type="text"/>
<input id="verbose" name="verbose" type="checkbox"/><label accesskey="b" for="verbose">Echo settings</label>
<input type="submit"/>

</form>

This is a stub.
Personal tools