473,398 Members | 2,335 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

HMAC-MD5

Hi,

I have to encrypt a string with HMAC-MD5 in asp, like the function
MHASH_MD5 in php. Is anyone know how to proceed ?

Thanks.
Vincent

Sep 26 '06 #1
5 5947
Vince wrote:
Hi,

I have to encrypt a string with HMAC-MD5 in asp, like the function
MHASH_MD5 in php. Is anyone know how to proceed ?
I've never done this, but here are some search results that may prove
useful:
http://www.google.com/search?ie=UTF-...q=vbscript+MD5

--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
Sep 26 '06 #2
"Vince" <vi**********@free.frwrote in message
news:11*********************@i42g2000cwa.googlegro ups.com...
Hi,

I have to encrypt a string with HMAC-MD5 in asp, like the function
MHASH_MD5 in php. Is anyone know how to proceed ?
MD5 Homepage (unofficial)
http://userpages.umbc.edu/~mabzug1/cs/md5/md5.html

Sep 26 '06 #3
Thanks but I've already found this function md5 in VB. I'd want
MHASH_MD5 function, wich takes a string and a key as argument :

mhash(string,key)

like : http://www.php.net/mhash ($hash = mhash(MHASH_MD5, $input,
"Jefe");)

Sep 26 '06 #4
"Vince" <vi**********@free.frwrote in message
news:11**********************@m73g2000cwd.googlegr oups.com...
Thanks but I've already found this function md5 in VB. I'd want
MHASH_MD5 function, wich takes a string and a key as argument :

mhash(string,key)

like : http://www.php.net/mhash ($hash = mhash(MHASH_MD5, $input,
"Jefe");)
Sorry, I'm not (yet) familiar with HMAC-MD5 or MHASH_MD5.

http://en.wikipedia.org/wiki/HMAC

"A keyed-hash message authentication code, or HMAC,
is a type of message authentication code (MAC) calculated
using a cryptographic hash function in combination with a
secret key. As with any MAC, it may be used to simultaneously
verify both the data integrity and the authenticity of a message."
Hash ActiveX Objects Version 1.3 ($37.50)
http://www.newobjects.com/product.asp?Category=49

"This is a collection of fifteen ActiveX objects that implement
CRC-32 and Adler-32 checksum algorithms, seven cryptographic
hash (also known as message digest) algorithms, and four algorithms
for calculating Hash-based Message Authentication Codes (HMAC).
... HMAC algorithms are: HMAC-MD5 ...."

Hashing Software
http://www.dotnetthis.com/soft/hashing.html

Sep 26 '06 #5
Vince wrote:
I have to encrypt a string with HMAC-MD5 in asp, like the
function MHASH_MD5 in php. Is anyone know how to proceed ?
Assuming you want to store that hashed value in, say, a database, then you
could do this language-independently if your DB is SQL Server 2005:

http://msdn2.microsoft.com/en-us/library/ms174415.aspx


--
Dave Anderson

Unsolicited commercial email will be read at a cost of $500 per message. Use
of this email address implies consent to these terms.
Sep 26 '06 #6

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

Similar topics

2
by: David McNab | last post by:
Hi, I'm looking for adventurous pre-alpha testers for a DHTML (active website) framework for Python I've developed. Name: - pyWeb Features:
92
by: Reed L. O'Brien | last post by:
I see rotor was removed for 2.4 and the docs say use an AES module provided separately... Is there a standard module that works alike or an AES module that works alike but with better encryption?...
5
by: Steve Holden | last post by:
This is even stranger: it makes it if I import the module a second time: import dbimp as dbimp import sys if __name__ == "__main__": dbimp.install() #k = sys.modules.keys() #k.sort() #for...
12
by: rbt | last post by:
I have written a python socketServer program and I have a few questions that I hope the group can answer... here is a simple version of the server: class...
11
by: Fernando Barsoba | last post by:
Hi all, I very much need your help here guys.. I'm working on a IPSec implementation, and when almost finished, I found a considerable problem. I'm sending a particular array + a key to a...
2
by: Fernando Barsoba | last post by:
Dear all, I have been posting about a problem trying to encrypt certain data using HMAC-SHA1 functions. I posted that my problem was solved, but unfortunately, I was being overly optimistic. I...
2
by: ed | last post by:
Hello, I've been crawling the net tonight looking for a reasonably portable sha1/hmac implementation. I don't need a huge library of different methods, don't suppose anyone has such a piece of...
5
by: KW | last post by:
I'm trying to convert some PHP code using OpenSSL to Python and I'm stuck on openssl_sign() which uses an RSA private key to compute a signature. Example PHP code: $privkeyid =...
4
by: Bhavesh.Feb | last post by:
Hi, I'm trying to use SHA1 and HMAC to create signature for my web service request. I dont know much about HMAC or SHA1 but this is what i need to create signature. What i'm trying to do is: ...
1
by: mirandacascade | last post by:
I am attempting to implement a process, and I'm pretty sure that a major roadblock is that I do not understand the nomenclature. The specs indicate that the goal is to calculate a message digest...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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,...
0
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...
0
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...
0
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,...
0
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...

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.