UBB.Dev
Posted By: Medar PHP and Password Display - 09/04/2004 6:44 AM
So when you go to Edit your Basic Profile and you want to change your password, it is listed as a bunch of dots. This is achieved by the <input type=password> type of input, which automatically "masks" the information.

Is this possible to do without placing the $ChosenPassword in an input box?

For example if I just said: echo "$ChosenPassword"; - this would list the MD5 encrypted string as regular text on a page.

Any way to mask that on a regular page instead of forcing it into a text box?
Posted By: JoshPet Re: PHP and Password Display - 09/04/2004 7:28 AM
I don't follow - what's the point of going "echo: $Chosenpassword" if you want to mask it? Just do "echo:" followed by 32 dots.
Posted By: Medar Re: PHP and Password Display - 09/04/2004 7:49 AM
LOL Josh - ironically I just stuck the following code in my Teamspeak addon.

$tsname = $row["ts_name"];
$tspass = '··········';

So now if you do not have your TS login information stored, both show up blank. But if you do have it stored, it shows up as the dots.

For anyone that is real bored, check it out. To get an idea on the difference, look at the page NOT logged in, then log in and look at it. Then fiddle with storing the Login Information (or erasing it), and look again.

Fun fun.

http://www.bladekeep.com/ts/ts2.php

Login: Threadsdev
Pass: threadsdev
© UBB.Developers