|
MD5 is called a one-way hash, one-way is not two-way....
During the password change, why don't you encrypt the typed password and compare it with the stored one.
This is the way, i have implemented.....
|
|
|
|
|
thanks for ur response.
I know that md5 is one way hash.
Actually am storing passwords in plain text only in the database,because at one glance one cant say the actual password from the database(again he has to decrypt the whole thing using symmetric key logic which i dont want to use).and am using md5 with salt which doesnt show the plain text to the end user.
But in the changed password,the new password am encrypting with md5 but problem occuring while updating the data.
which is the best way to do while password change?please send me some code snippet,so that i may get some idea.
The above code i have send is working perfectly while login.which i have to use.
kissy
|
|
|
|
|
You cannot decrypt when using MD5 because it is one way encryption.
Instead use some encryption/Decryption technique.
himanshu
|
|
|
|
|
MD5 is a hash algorithm which does not support decryption. It is one-way.
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
The woods are lovely, dark and deep,
But I have promises to keep,
And miles to go before I sleep,
And miles to go before I sleep!
|
|
|
|
|
not getting value in request.cookies("lang")
Protected Sub LnkEng1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles LnkEng1.Click
Dim appCookie As New HttpCookie("lang")
Thread.CurrentThread.CurrentCulture = New CultureInfo("es-ES")
LoadStrings(Thread.CurrentThread.CurrentCulture)
here i am getting value "es-ES" <-----------Response.Cookies("lang").Value = thread.CurrentThread.CurrentCulture.ToString
appCookie.Expires = DateTime.MaxValue
Response.Cookies.Add(appCookie)
but in immediate window i am not getting the value for request.cookies("lang")
pls help
tanx
|
|
|
|
|
how to generate verification code i.e auto generated code (ex.hX84R) used while registering or sending mails..
|
|
|
|
|
|
Hi
In my page i have one textarea the user will enter the values in this format
Material1 Materil2 Material3
1 150 200
2 27 35
I need to insert these values to database .plse help me.
|
|
|
|
|
Hi,
What are Material1 Materil2 Material3?
Are they column name..
If not then Split the string like
string[] lines = Regex.Split(TextBox1.Text, "\r\n");
himanshu
|
|
|
|
|
these are the cloumn names.if i am using split function "r\n" it is not working .Plse help me
|
|
|
|
|
Hi,
try this
string[] lines = Regex.Split(TextBox1.Text, "\r\n");
string sql ="Insert into "+"Table Name("+ lines[0].Replace(' ',',')+ ") values(";
for (int i=1;i<lines.Length;i++)
{
sql = sql + lines[i].Replace(' ', ',') + ")";
}
himanshu
|
|
|
|
|
Thanks a lot himanshu...
It is working fine....
Shiji
|
|
|
|
|
try this example,
string s = TextBox1.Text;
string[] s1 = s.Split(new char[] { ' ' });
for (int i = 0; i < s1.GetUpperBound(0); i++)
{
Response.Write(s1[i]); //store this value to database instead
}
Education is not a way to escape poverty — it is a way of fighting it.
|
|
|
|
|
iam using a formview control in my project..
and iam trying to update fields of 2 tables using formview..
table1:Personal_details:
columns:P_id --->primary key
Emp_id-->foreign key
First_name
table2:Educational_qualification
columns:Eq_id ->primary key
Emp_id ->foreign key
Institute..
these 2 tables are connected by column Emp_id
My update command of formview control is:
UpdateCommand="Update [Personal_details] Set [First_name]=@First_name WHERE [P_id]=@original_P_id and[Emp_id]=@original_Emp_id and [First_name]=@original_First_name;
Update [Educational_qualification] Set[Institute]=@Institute WHERE [Eq_id]=@original_Eq_id and [Emp_id]=@original_Emp_id and [Institute]=@original_Institute"
>
<UpdateParameters >
<asp:Parameter Name ="P_id" Type ="string" />
<asp:Parameter Name ="original_P_id" Type ="string" />
<asp:Parameter Name ="original_Eq_id" Type ="string" />
<asp:Parameter Name ="First_name" Type ="string" />
<asp:Parameter Name ="Institute" Type ="string" />
<asp:Parameter Name="original_First_name" Type ="string" />
<asp:Parameter Name="original_Institute" Type ="string" />
<asp:Parameter Name ="original_Emp_id" Type ="string" />
</UpdateParameters>
when i try 2 edit values,old values are not gettin updated..i.e after clicking on the update link still the old values are gettin displayed..
plz suggest some solution..
modified on Thursday, June 18, 2009 2:26 AM
|
|
|
|
|
bind data to formview again
In Word you can only store 2 bytes. That is why I use Writer.
|
|
|
|
|
i did bind data to formview again,but still no change i.e the prob still persists
ne changes need to be made in the update command??
plzz suggest some alternative..
|
|
|
|
|
neone,,plzz suggest solution for my problem..
|
|
|
|
|
|
|
hi iam using webparts in my application now my doubt is how to implement webparts personaliztion.means different users will select different types of webparts how to show them individually for the next login
|
|
|
|
|
|
hi mr abhijit any example for this one
|
|
|
|
|
|
Hi,
I have got a weird problem opening a simple .aspx page using a Javascript on the click of ASP.net server control. It works perfectly fine in my local system.
Scenario: The application is deployed to production server. Clients get remote access to the application thr' Netilla platform which runs in https mode.
Code snippet:
Protected Sub LinkButton2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles LinkButton2.Click
'Pop up new window for address collection...
Dim x As String
x = lstPickup.SelectedValue
Dim sb As New System.Text.StringBuilder()
sb.Append("<script language='javascript'>")
sb.Append("alert('" & x & "');")
sb.Append("window.open('CollectionAddress.aspx?selectedPickup=" + x + "', 'CollectionAddressPage',")
sb.Append("'width=500, height=500, menubar=yes, resizable=no');")
sb.Append("</script>")
Dim t As Type
t = Me.GetType()
If Not ClientScript.IsClientScriptBlockRegistered(t, "PopupScript") Then
ClientScript.RegisterClientScriptBlock(t, "PopupScript", sb.ToString())
End If
End Sub
The application URL looks is http://myApplication/Reserve.aspx but when browsed using Netilla it looks like..
https://ras.abc.co.uk/,host=192.168.145.32,port=80,proto=http/myApplication/Reserve.aspx
Okay..now the funny thing is that the same code works if it is copied to another new pages with nothing but just the above code and a button.
Weird.
Any help would be appreciated.
Many thanks
Milan G
Milan
|
|
|
|
|
Hi all,
i want to open an existing word document in a folder in the project,path of that file is stored in oracle table.
When i click a link button a query should be executed to take the corresponding path,then with that path the file should be opened.
i tried like this..
Private Sub Linkbutton6_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Linkbutton6.Click
Dim str As String
Dim command As String = "SELECT FILENAME FROM S_TR_BUILDDATA A WHERE 1= (SELECT COUNT(DISTINCT B.DATEOFBUILD ) FROM
S_TR_BUILDDATA B WHERE A.DATEOFBUILD <=B.DATEOFBUILD) "
Dim DFmenu As DataSet = Me.ExecuteSql(command)
str = DFmenu.Tables(0).Rows(0).Item(0)
System.Diagnostics.Process.Start(str)
' Response.Redirect(str)
End Sub
its getting filled in dataset..
but the file is not opening..
what shall i do???
thanks n regards,
kums
|
|
|
|