472,358 Members | 1,746 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,358 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 5875
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...
2
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and efficiency. While initially associated with cryptocurrencies...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge required to effectively administer and manage Oracle...
0
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was proposed, which integrated multiple engines and...
1
by: Matthew3360 | last post by:
Hi there. I have been struggling to find out how to use a variable as my location in my header redirect function. Here is my code. header("Location:".$urlback); Is this the right layout the...
0
by: AndyPSV | last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and...
0
by: Arjunsri | last post by:
I have a Redshift database that I need to use as an import data source. I have configured the DSN connection using the server, port, database, and credentials and received a successful connection...
0
hi
by: WisdomUfot | last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific technical details, Gmail likely implements measures...
0
by: Carina712 | last post by:
Setting background colors for Excel documents can help to improve the visual appeal of the document and make it easier to read and understand. Background colors can be used to highlight important...
1
by: Ricardo de Mila | last post by:
Dear people, good afternoon... I have a form in msAccess with lots of controls and a specific routine must be triggered if the mouse_down event happens in any control. Than I need to discover what...

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.