Class ahpwcheck
Version
1.2.
<script> var oPwCheck = new ahpwcheck(aOptions); alert(oPwCheck.getScore('My:0815;Password'); </script>
{undefined} checkPw()
re-read watched input field and update visual output; this function will be added as handler to the password field
{object} getChecks()
get object with results containing all single checks and total result with scoring
{object} getResult(sPassword)
get object with results containing all single checks and total result with scoring
{object} getScore(sPassword)
get scoring (a avalue 0..1); It says how many requirements were fulfilled in a given password. It depends on the number of checks, their required count and the weight for each check. (It is NOT the measurement for the real strength of a given password.)
{undefined} renderAll()
ouput all: put introtext and all checks into the output div
{string} renderChecks()
get html code to render all reqired single checks
{string} renderIntro()
get html code to render intro text
setOptions(aOptions)
set options - override texts - change requirements for single checks - change weights for scoring
{Boolean} watch(sIdInput, sIdOut)
watch - init for visual display in html body; it adds the method checkPw() to eventlisters of the password field and starts the output