29.04.2010, 08:05
I have a plugin to send emails to my users. An email is sent when they register, and it shows their password.
Say my password was 'password', i'd like it to say
p******d
Just showing the first and last letters.
What's the simplest way to do this? Create a new string, extract the first and last character, then strins() the strlen of their password-2?
Say my password was 'password', i'd like it to say
p******d
Just showing the first and last letters.
What's the simplest way to do this? Create a new string, extract the first and last character, then strins() the strlen of their password-2?