473,791 Members | 3,275 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Generating MD5 hash in ASP that returns same string as .NET MD5CryptoServic eProvider?

I need to generate an MD5 hash in ASP, not ASP.NET, and have that hash be
the same as what is produced by the .NET MD5CryptoServic eProvider, any
ideas?

I found a few examples that return MD5 hash as hex string, how can I resolve
that with the byte[] that .NET MD5 implementation gives me?

Thanks in advance!

Derrick
Jul 19 '05 #1
1 3045
cpuppos
1 New Member
Derrick did you ever find a solution for your problem?? I am running into the same thing and I cannot find an anwser.


Thanks in advance !!!!

I need to generate an MD5 hash in ASP, not ASP.NET, and have that hash be
the same as what is produced by the .NET MD5CryptoServic eProvider, any
ideas?

I found a few examples that return MD5 hash as hex string, how can I resolve
that with the byte[] that .NET MD5 implementation gives me?

Thanks in advance!

Derrick
Apr 19 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1360
by: Bshowers | last post by:
I need to generate an MD5 hash in ASP, not ASP.NET, and have that hash be the same as what is produced by the .NET MD5CryptoServiceProvider. This is the vb.net code I am using... Function GenerateMD5Hash(ByVal SourceText As String) As String 'Create an encoding object to ensure the encoding standard for the source text Dim Ue As New UnicodeEncoding 'Retrieve a byte array based on the source text Dim ByteSourceText() As Byte =...
1
8615
by: TOI DAY | last post by:
Hi All, This is what I want to do. Support I have two file name abc.txt, xyz.txt I did created md5 hash for abc.txt and store it some directory Here is how I create md5 for the abc.txt FileStream file1 = new FileStream(abc.txt, FileMode.Open, FileAccess.Read); MD5CryptoServiceProvider md5 = new MD5CryptoServiceProvider();
5
3854
by: HamuNaptra | last post by:
Hi im trying to get a hash from a string and conert it back to a string eg. "test" = "098f6bcd4621d373cade4e832627b4f6" my function: Private Function GenerateHash(ByVal SourceText As String) As String Dim Ue As New UnicodeEncoding()
3
6471
by: Paul Spielvogel | last post by:
I need to compute the MD5 hash on VERY large files 500mb to 4gb+ I have found two ways but neither one of them does what i need. Private Function ComputeDataMD5(ByVal path As String) As String Dim fi As New FileInfo(path) Dim fs As FileStream = fi.OpenRead() fs = fi.OpenRead Dim Md5 As New MD5CryptoServiceProvider
2
4471
by: Shaun Merrill | last post by:
This function doesn't seem to be giving me the appearance I expect. This should appear more like "1ba442ab45c8002a86d068d1c1748e44" but it looks really cryptic and screwy, like "­óìØLÜzrVÊ%' \Y7". Here is my code segment written in VB.NET Enterprise Architect: -------- Public Function MD5File(ByVal Filename As String) As String ' ' Read a file, produce an MD5 hashed key value in a String.
5
2632
by: Gary | last post by:
I found with Asp.Net, you can use this function to very easily create an MD5 hash: System.Web.Security.FormsAuthentication.HashPasswordForStoringInConfigFile( created.ToUpper(),"MD5"); Is there a similar one for Windows programs? I like that function because you don't have to convert to bytes. The variable created is simply a string which makes life easy. :) I tried using it in a windows program but it didn't like it :? --
5
3517
by: andrewcw | last post by:
I have a VB 5 module that duplicates the FCIV.exe from Microsoft. I need to move an application forward to C#, but the samples for MD5 hash using the framework I tried gave different hashes. What do I feed the framework and how do I get the same values ?? The following code DOES NOT GIVE THE FCIV value: public string getFileHash(string filePath) { string retVal = "";
2
2670
by: =?Utf-8?B?TW91dGhPZk1hZG5lc3M=?= | last post by:
How can I add an MD5 hash to XMLSerializer.Serialize without corrupting the content of the file; then how to read it back to verify is correct? I'd like to code up something (see below) that looks like this, but I'm not sure this is correct approach to the problem. Once I add the signature, the file won't test the same way again. I know I could add it to the bottom of the file, but then everyone would have to know my algorithm for...
6
3481
by: shapper | last post by:
Hello, How can I hash a string in C#? I suppose I should use MD5 ... at least is what is used in ASP.NET membership. I need to has a string and compare it to an already hashed string. Thanks, Miguel
0
9669
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10428
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10207
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10156
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9030
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7537
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5435
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4110
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3718
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.