I dont want to convert to orginal string, I just need to be able to see on the password textbox as somevalue in there for user to not to type the password again...
I dont want to convert to orginal string, I just need to be able to see on the password textbox as somevalue in there for user to not to type the password again...
It is not about the encript/decript or persisting password after postback.. it is about show hashed password as a textmode=password which would be look like" ..... " back on the password textbox while prepopulating password textbox.
You would have to ask Telerik if they do anything special with RadTextBox. However, if it's based off the System.Web.UI.WebControls.TextBox control, then that's the issue. The TextBox control won't render whatever's in its Text property if TextMode is set
to Password. To get this working, you would have to override AddAttributesToRender and add the password value there.
Having said that, it's really not recommended. Also, why are you passing in a password via querystring? That's horribly insecure.
wilsonnet
Member
22 Points
174 Posts
hashstring
Feb 29, 2012 04:17 AM|LINK
Labeltest.Text = Request.QueryString["password"].ToString();
ADB5 because it is hashed.
labeltest value is something like that F03088CD2F1193553SSA99602D8B
txtPassword.Text = Labeltest.Text;
no value on txtPassword.
(txtPassword textmode=Password so thats the problem)
daisydain
Member
222 Points
51 Posts
Re: hashstring
Feb 29, 2012 06:22 AM|LINK
Hello,
YOu issue is still not clear. Are you not decrypting the password after hashing it?
ramiramilu
All-Star
97923 Points
14516 Posts
Re: hashstring
Feb 29, 2012 07:51 AM|LINK
you cannot convert to original string once it is hashed...
Thanks,
JumpStart
wilsonnet
Member
22 Points
174 Posts
Re: hashstring
Feb 29, 2012 08:00 AM|LINK
I dont want to convert to orginal string, I just need to be able to see on the password textbox as somevalue in there for user to not to type the password again...
salman beher...
All-Star
31583 Points
6008 Posts
Re: hashstring
Feb 29, 2012 08:11 AM|LINK
Hi,
you can encrypt and decrypt password like below.discuess same there...
http://forums.asp.net/t/1375018.aspx/1
Thanks...
Sincerely,
Salman
ramiramilu
All-Star
97923 Points
14516 Posts
Re: hashstring
Feb 29, 2012 12:10 PM|LINK
if you want to persist password textbox value after postback, then please follow this suggestion - http://forums.asp.net/p/1023503/1389673.aspx
Thanks,
JumpStart
wilsonnet
Member
22 Points
174 Posts
Re: hashstring
Feb 29, 2012 04:46 PM|LINK
It is not about the encript/decript or persisting password after postback.. it is about show hashed password as a textmode=password which would be look like" ..... " back on the password textbox while prepopulating password textbox.
wilsonnet
Member
22 Points
174 Posts
Re: hashstring
Feb 29, 2012 06:08 PM|LINK
<telerik:RadTextBox ID="txtPassword" runat="server" TextMode="Password" />
txtPassword.Attributes.Add("value",Request.QueryString["password"].ToString());
No value, it is not working..
if I have <telerik:RadTextBox ID="txtPassword" runat="server" />
That time I can see my hashed value in it.
So conflict is showing hashed value as a TextMode="Password"
wilsonnet
Member
22 Points
174 Posts
Re: hashstring
Feb 29, 2012 06:12 PM|LINK
is this makes sense? http://msdn.microsoft.com/en-us/library/system.web.security.formsauthentication.hashpasswordforstoringinconfigfile.aspx
rossisdead2
Participant
1313 Points
300 Posts
Re: hashstring
Feb 29, 2012 09:45 PM|LINK
You would have to ask Telerik if they do anything special with RadTextBox. However, if it's based off the System.Web.UI.WebControls.TextBox control, then that's the issue. The TextBox control won't render whatever's in its Text property if TextMode is set to Password. To get this working, you would have to override AddAttributesToRender and add the password value there.
Having said that, it's really not recommended. Also, why are you passing in a password via querystring? That's horribly insecure.