.NET String Hashing: The Hidden Knot
page 2 of 5
by Joseph Chahine
Feedback
Average Rating: 
Views (Total / Last 10 Days): 23249/ 37

Sample

In .NET 1.1, a sample hashing function can be as follows:

Listing 1

Imports System.Text
Imports System.Security.Cryptography
Function ComputeHashValue(ByVal Data As StringAs String
  Dim HashAlgorithm As SHA1 = SHA1.Create
  Dim HashValue() As Byte =
   HashAlgorithm.ComputeHash(Encoding.ASCII.GetBytes(Data))
  Return Encoding.ASCII.GetString(HashValue)
End Function

View Entire Article

User Comments

No comments posted yet.

Product Spotlight
Product Spotlight 





Community Advice: ASP | SQL | XML | Regular Expressions | Windows


©Copyright 1998-2024 ASPAlliance.com  |  Page Processed at 2024-04-24 1:05:23 AM  AspAlliance Recent Articles RSS Feed
About ASPAlliance | Newsgroups | Advertise | Authors | Email Lists | Feedback | Link To Us | Privacy | Search