While installing i have added an user interface to get datasource , username and pasword
from user
Now how can i mask the password ?
Thanks in advance
Tracy
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Niradhip ChakrabortyPosted Jan 10, 2008, 6:41 PM
Hey check the following link. May be it will help u.
http://www.ondotnet.com/pub/a/dotnet/2005/03/14/liberty.html
regards
Niradhip
yuvraj singhPosted Jan 10, 2008, 1:19 AM
u try this code to make your password (*) in textbox
double click on textbox
in coding write
textbox1.Password = '*';
TracyPosted Jan 9, 2008, 11:44 PM
This is with ref to the installer.cs file where in we override install uninstall methods
Thanks in advance
Tracy
Niradhip ChakrabortyPosted Jan 9, 2008, 3:06 PM
u can musk it in the time of coding only.Inspite of doing it in the installation time,u can musk it while u validating user and create setup.It will automatically mask the password. U can use ncrypt before saving into database and dcrypt while reading from database.
I have given the code below for your reference:
clsPwdCrypto objEncrypt = new clsPwdCrypto(); //'clsPwdCrypto' is the dll i have used for this purpose
if (objEncrypt.dCrypt(dr["usr_vch_Password"].ToString()).ToString() == txtPassword.Text)
{
//reading from database
}
//Following code musk your password.
string ncrypta =(Convert.ToString(objEncrypt.nCrypt(txtPassword.Text)));//Ur password now musk into string ncrypta. Save it in databse.