Reply
echo a password as ****
Old 06-24-2008, 11:21 PM echo a password as ****
Skilled Talker

Posts: 61
Is there to echo a password so it only shows as stars (replaces passowrd as stars) and matches the same number of characters?
__________________
Matt
webmaster of www.WeddingMuseum.com - Online wedding planning
weddingm is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
     
Old 06-25-2008, 12:23 AM Re: echo a password as ****
mgraphic's Avatar
Truth Seeker

Latest Blog Post:
Wireless Audio
Posts: 2,314
Name: Keith Marshall
Location: West Hartford, CT
You can use this for an example:

$password = $_POST['password'];

echo str_repeat('*', strlen($password));
__________________

<mgraphic /> - I don't have a solution but I admire the problem.
mgraphic is offline
Reply With Quote
View Public Profile
 
Old 06-25-2008, 01:04 AM Re: echo a password as ****
JeremyMiller's Avatar
Full-Time TeraTasker

Posts: 953
Name: Jeremy Miller
Location: Reno, NV
I'd recommend that you don't go saving people's passwords. Instead, save a hash of their password. This is more secure. The negative, however, is that they cannot view their password, only change or reset it.
__________________
Jeremy Miller - TeraTask Technologies, LLC
Content Farmer - Automated Posting for Content & Blog Sites
JeremyMiller is offline
Reply With Quote
View Public Profile Visit JeremyMiller's homepage!
 
Old 06-25-2008, 01:06 AM Re: echo a password as ****
Skilled Talker

Posts: 61
That's exactly what I wanted. Thanks!
__________________
Matt
webmaster of www.WeddingMuseum.com - Online wedding planning
weddingm is offline
Reply With Quote
View Public Profile
 
Old 06-25-2008, 11:29 AM Re: echo a password as ****
Skilled Talker

Posts: 94
If you need a place to read up on how to do this

http://us2.php.net/sha1

GL and Congrats on making the web a safer place.
__________________
Sell Templates? Try our Template Monster WebAPI absolutely free! See a live Template Shop Demo
ChadR is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to echo a password as ****
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.14683 seconds with 13 queries