<cfscript> password = 'Password123'; password_firstchar = left(password,1); password_lastchar = right(password,1); writeOutput(password_firstchar & '***' & password_lastchar); writeOutput('<p> </p>'); writeOutput(password_firstchar); writeOutput(repeatString('.',len(password)-2)); writeOutput(password_lastchar); </cfscript>