Print Page | Close Window

Visual Basic MD5

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: General Discussion
Forum Description: General discussion and chat on any topic.
URL: https://forums.webwiz.net/forum_posts.asp?TID=6337
Printed Date: 30 March 2026 at 7:50am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Visual Basic MD5
Posted By: Gullanian
Subject: Visual Basic MD5
Date Posted: 11 October 2003 at 8:40am

For my stupid computing coursework we have to create a VB programme for a buisness.

Anyway, does anyone know of any built in encryption functions or can supply me with one to encrypt in md5 preferably?




Replies:
Posted By: Phat
Date Posted: 11 October 2003 at 9:47am
check out www.planetsourcecode.com



-------------
http://buildit.sitesell.com/sitebuildithome.html - Get a website that sells


Posted By: Mart
Date Posted: 11 October 2003 at 12:40pm

If you are using vb.net you could use this:

Function MD5hash(plaintext as string) as string
Dim md5Hasher as New System.Security.Cryptography.MD5CryptoServiceProvider()
   
Dim hashedBytes as Byte()  
Dim encoder as New System.Text.UTF8Encoding()
Dim output as String
Dim b as byte

hashedBytes = md5Hasher.ComputeHash(encoder.GetBytes(plaintext))

For Each b in hashedBytes
output &= b
Next b

MD5hash = output
End Function




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net