Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
echo a password as ****
Old 06-25-2008, 12:21 AM echo a password as ****
Skilled Talker

Posts: 69
Trades: 0
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
Please login or register to view this content. Registration is FREE
- Online wedding planning
weddingm is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 06-25-2008, 01:23 AM Re: echo a password as ****
mgraphic's Avatar
Truth Seeker

Latest Blog Post:
JAMISONTUNES
Posts: 2,898
Name: Keith Marshall
Location: Connecticut
Trades: 0
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, 02:04 AM Re: echo a password as ****
JeremyMiller's Avatar
WT Moderator

Posts: 1,712
Name: Jeremy Miller
Location: Las Vegas, NV
Trades: 0
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

Please login or register to view this content. Registration is FREE
JeremyMiller is offline
Reply With Quote
View Public Profile Visit JeremyMiller's homepage!
 
Old 06-25-2008, 02:06 AM Re: echo a password as ****
Skilled Talker

Posts: 69
Trades: 0
That's exactly what I wanted. Thanks!
__________________
Matt
webmaster of
Please login or register to view this content. Registration is FREE
- Online wedding planning
weddingm is offline
Reply With Quote
View Public Profile
 
Old 06-25-2008, 12:29 PM Re: echo a password as ****
Skilled Talker

Posts: 94
Trades: 0
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
Please login or register to view this content. Registration is FREE
! See a live
Please login or register to view this content. Registration is FREE
ChadR is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to echo a password as ****
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB 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.31369 seconds with 12 queries