according to Select0r I did this so as not to change the * -s count after sending:
onSubmit='encrypt_pass(this)'
and
function encrypt_pass(form){ form.pass_md5.value = md5(form.pass.value); //needs a hidden pass_md5 field var stars = ""; for(i=0;i<form.pass.value.length;i++) stars = stars+"*"; form.pass.value = stars; }
user669677
source share