RSA MD5 Implementation Enquiry

Forums for specific tips, techniques and example code
ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

RSA MD5 Implementation Enquiry

Postby ConvertFromOldNGs » Fri Aug 07, 2009 2:24 pm

by Tom Livingstone >> Sun, 14 May 2000 4:27:06 GMT

Has anybody implemented an RSA MD5 message digest class in Jade that
they are prepared to share?
Alternatively, do you know of a Windows implementation that can be accessed without the involvement of a C compiler or VB?
If neither, then any suggestions about bit twiddling the Jade
primitives? I have the RSA reference implementation, written in C, but
it involves use of unsigned 32-bit integers, and lots of shift-right, shift-left, rotate-left, none of which appears supported within Jade?

ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Re: RSA MD5 Implementation Enquiry

Postby ConvertFromOldNGs » Fri Aug 07, 2009 2:24 pm

by Wilfred Verkley >> Mon, 15 May 2000 3:11:35 GMT

Use the MS Crypto API. Its a standard API library provided by DLL that most versions of windows have (except possibly the earlier versions of 95). Its not a complicated inteface, so Jade can talk to it directly. We use it to SHA1 hash our passwords.

These are the functions you will need to interface to :

cryptAcquireContext
cryptCreateHash
cryptHashData
cryptGetHashParam
cryptDestroyHash
cryptReleaseContext

There is some other useful stuff in there too (strong random number generators, conventional and public-key encryption, certificates, S/MIME etc).

Regards,

Wilfred.


Return to “Tips and Techniques”

Who is online

Users browsing this forum: No registered users and 29 guests