Click here to Skip to main content
15,901,853 members
Home / Discussions / Visual Basic
   

Visual Basic

 
Questionproblrem in sql statment Pin
microuser_200030-Aug-05 2:30
microuser_200030-Aug-05 2:30 
AnswerRe: problrem in sql statment Pin
Dave Kreskowiak30-Aug-05 2:41
mveDave Kreskowiak30-Aug-05 2:41 
QuestionRetrieving data from a datagrid Pin
daviiie30-Aug-05 1:13
daviiie30-Aug-05 1:13 
AnswerRe: Retrieving data from a datagrid Pin
_mubashir30-Aug-05 1:22
_mubashir30-Aug-05 1:22 
GeneralRe: Retrieving data from a datagrid Pin
daviiie30-Aug-05 1:30
daviiie30-Aug-05 1:30 
GeneralRe: Retrieving data from a datagrid Pin
|Spud|30-Aug-05 1:46
|Spud|30-Aug-05 1:46 
GeneralRe: Retrieving data from a datagrid Pin
daviiie30-Aug-05 1:48
daviiie30-Aug-05 1:48 
Questionmd5 Pin
ecentinela30-Aug-05 1:07
ecentinela30-Aug-05 1:07 
I'm having problems trying to hash a password in Visual Basic NET. The result of my code is different that the result of my php page.

My VBNET code is this
Dim md5 As MD5CryptoServiceProvider<br />
Dim bytValue() As Byte<br />
Dim bytHash() As Byte<br />
md5 = New MD5CryptoServiceProvider<br />
bytValue = System.Text.Encoding.UTF8.GetBytes(txtPassword.Text)<br />
bytHash = md5.ComputeHash(bytValue)<br />
md5.Clear()<br />
messagebox.show(Convert.ToBase64String(bytHash))


The result is "bXOF/9d64JOf/waR9/mEFQ=="

In PHP with his simple code
echo md5($password);

shows "6d7385ffd77ae0939fff0691f7f98415"

Maybe anyone can say me why is different? Wich is the good VB code to show the same that in PHP?

Thanks in advance
AnswerRe: md5 Pin
Insincere Dave30-Aug-05 10:40
Insincere Dave30-Aug-05 10:40 
GeneralRe: md5 Pin
ecentinela30-Aug-05 20:49
ecentinela30-Aug-05 20:49 
GeneralRe: md5 Pin
ecentinela30-Aug-05 22:32
ecentinela30-Aug-05 22:32 
GeneralRe: md5 Pin
Insincere Dave31-Aug-05 4:40
Insincere Dave31-Aug-05 4:40 
Questiongetting ms access columns Pin
tigertwareg30-Aug-05 1:06
tigertwareg30-Aug-05 1:06 
Questiondatabase to pdf Pin
Anonymous30-Aug-05 0:29
Anonymous30-Aug-05 0:29 
QuestionData Input in Text box Pin
prathiba_naresh29-Aug-05 22:46
prathiba_naresh29-Aug-05 22:46 
AnswerRe: Data Input in Text box Pin
toxcct30-Aug-05 0:07
toxcct30-Aug-05 0:07 
GeneralRe: Data Input in Text box Pin
prathiba_naresh30-Aug-05 0:27
prathiba_naresh30-Aug-05 0:27 
GeneralRe: Data Input in Text box Pin
toxcct30-Aug-05 0:58
toxcct30-Aug-05 0:58 
GeneralRe: Data Input in Text box Pin
prathiba_naresh30-Aug-05 1:36
prathiba_naresh30-Aug-05 1:36 
AnswerRe: Data Input in Text box Pin
Rizwan Bashir30-Aug-05 1:25
Rizwan Bashir30-Aug-05 1:25 
GeneralRe: Data Input in Text box Pin
prathiba_naresh30-Aug-05 5:46
prathiba_naresh30-Aug-05 5:46 
AnswerRe: Data Input in Text box Pin
MohammadAmiry30-Aug-05 8:45
MohammadAmiry30-Aug-05 8:45 
GeneralRe: Data Input in Text box Pin
prathiba_naresh31-Aug-05 3:41
prathiba_naresh31-Aug-05 3:41 
AnswerRe: Data Input in Text box Pin
Taen_Karth31-Aug-05 15:23
Taen_Karth31-Aug-05 15:23 
QuestionCompression n Decompression Pin
_mubashir29-Aug-05 22:39
_mubashir29-Aug-05 22:39 

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.