Re: Displaying Password

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

You can't be serious with that. You should try The next code:

$UserPassword = str_repeat("•", strlen($UserPassword));

Enjoy. (I hope that you are not a programmer)

--------------------------------------------------
From: "Karl DeSaulniers" <karl@xxxxxxxxxxxxxxx>
Sent: Tuesday, December 22, 2009 6:12 AM
To: <php-db@xxxxxxxxxxxxx>
Subject:  Displaying Password

Never mind.
Got it.

$replaceArray = array('a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i',
'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w',
'x', 'y', 'z', '1', '2', '3', '4', '5', '6', '7', '8', '9', '0');
$replaceWith = array
('•','•','•','•','•','•','•','•','•','•','•','•','•','•','•','•','•','•'
,'•','•','•','•','•','•','•','•','•','•','•','•','•','•','•','•','•','•'
);
$UserPassword = str_replace($replaceArray, $replaceWith,
$UserPassword); //hide pasword

Best,

Karl DeSaulniers
Design Drumm
http://designdrumm.com



--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux