Click here to Skip to main content
15,896,352 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Named anchor link Pin
Christian Graus28-May-09 21:42
protectorChristian Graus28-May-09 21:42 
GeneralRe: Named anchor link Pin
ScottM128-May-09 22:07
ScottM128-May-09 22:07 
GeneralRe: Named anchor link Pin
Matt Cavanagh29-May-09 2:42
Matt Cavanagh29-May-09 2:42 
Questionhow to resize whole aspx page Pin
Jaymm28-May-09 20:47
Jaymm28-May-09 20:47 
AnswerRe: how to resize whole aspx page Pin
adatapost28-May-09 20:58
adatapost28-May-09 20:58 
AnswerRe: how to resize whole aspx page Pin
Mohit111028-May-09 21:34
professionalMohit111028-May-09 21:34 
GeneralRe: how to resize whole aspx page Pin
Jaymm29-May-09 0:44
Jaymm29-May-09 0:44 
Questionproblem while using md5 for password encryption Pin
Kissy1628-May-09 20:22
Kissy1628-May-09 20:22 
hai all,
i am using the below function for password encryption.here my password is changing into encrypted form,but i dont know how to check that encrypted form password with plain text password from database?
because database contains plain text password.Please can anybody respond my question.
i wanted to use md5 in my login page.
I dont know exactly how to use it.

Public Function MD5Encryption(ByVal passwd As String) As Byte
Dim i As Integer
Dim md5 As MD5CryptoServiceProvider = New MD5CryptoServiceProvider
Dim hashedbytes As Byte()
Dim textencoder As UTF8Encoding = New UTF8Encoding
hashedbytes = md5.ComputeHash(textencoder.GetBytes(passwd))
md5.ComputeHash(textencoder.GetBytes(passwd))
Dim right As StringBuilder = New StringBuilder
For i = 0 To hashedbytes.Length - 1 Step 1
right.Append(hashedbytes(i).ToString("x2"))
Next i
If (right.ToString() <> passwd) Then
Response.Redirect("login.aspx")
md5.Clear()
Else
Response.Redirect("index.html")
End If
End Function

kissy

AnswerRe: problem while using md5 for password encryption Pin
ScottM128-May-09 20:35
ScottM128-May-09 20:35 
GeneralRe: problem while using md5 for password encryption Pin
Kissy1628-May-09 20:47
Kissy1628-May-09 20:47 
GeneralRe: problem while using md5 for password encryption Pin
Christian Graus28-May-09 21:13
protectorChristian Graus28-May-09 21:13 
GeneralRe: problem while using md5 for password encryption Pin
ScottM128-May-09 22:11
ScottM128-May-09 22:11 
GeneralRe: problem while using md5 for password encryption Pin
Kissy1628-May-09 23:38
Kissy1628-May-09 23:38 
AnswerRe: problem while using md5 for password encryption Pin
dwaipayan911-Aug-09 0:54
dwaipayan911-Aug-09 0:54 
QuestionLINQ to dataview........ Pin
pranavcool28-May-09 19:27
pranavcool28-May-09 19:27 
AnswerRe: LINQ to dataview........ Pin
padmanabhan N28-May-09 19:33
padmanabhan N28-May-09 19:33 
Questionhow to convert system.Drawing.Image to system.web.ui.webcontrols.image Pin
A k ch28-May-09 19:16
A k ch28-May-09 19:16 
AnswerRe: how to convert system.Drawing.Image to system.web.ui.webcontrols.image Pin
Christian Graus28-May-09 19:23
protectorChristian Graus28-May-09 19:23 
GeneralRe: how to convert system.Drawing.Image to system.web.ui.webcontrols.image Pin
A k ch28-May-09 19:31
A k ch28-May-09 19:31 
GeneralRe: how to convert system.Drawing.Image to system.web.ui.webcontrols.image Pin
Christian Graus28-May-09 20:09
protectorChristian Graus28-May-09 20:09 
GeneralRe: how to convert system.Drawing.Image to system.web.ui.webcontrols.image [modified] Pin
A k ch28-May-09 20:45
A k ch28-May-09 20:45 
QuestionHow to test my web application? Pin
Subin Alex28-May-09 18:58
Subin Alex28-May-09 18:58 
AnswerRe: How to test my web application? Pin
Christian Graus28-May-09 19:24
protectorChristian Graus28-May-09 19:24 
AnswerRe: How to test my web application? Pin
ScottM128-May-09 20:38
ScottM128-May-09 20:38 
AnswerRe: How to test my web application? Pin
Christian Graus28-May-09 21:11
protectorChristian Graus28-May-09 21:11 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.