MD5 Hash #2

  • Follow


Hi,

I need in my C++ programm a MD5 hash value. I'm write my codes with 
Boost for Unix, OSX and Windows. Is there any class or function in the 
STD for creating a MD5 hash or supports Boost MD5 hash?
Can you help me with a little code example?
My solution idea is to compile OpenSSL and link the library?

Thanks

Phil

0
Reply Philipp 6/10/2010 6:15:17 PM

On 6/10/2010 2:15 PM, Philipp Kraus wrote:
> I need in my C++ programm a MD5 hash value. I'm write my codes with
> Boost for Unix, OSX and Windows. Is there any class or function in the
> STD for creating a MD5 hash

No.

 > or supports Boost MD5 hash?

You need to look for it on Boost's web site.

> Can you help me with a little code example?

Not really.  Have you tried looking for it on Google?  I would hazard a 
guess that there are open-source solutions for that.  Perhaps even on 
'sourceforge.net'...

> My solution idea is to compile OpenSSL and link the library?

I don't know.  Why are you asking?

V
-- 
I do not respond to top-posted replies, please don't ask
0
Reply Victor 6/10/2010 6:41:38 PM


[Please do not mail me a copy of your followup]

Philipp Kraus <philipp.kraus@flashpixx.de> spake the secret code
<hura3l$lkr$1@online.de> thusly:

>I need in my C++ programm a MD5 hash value. I'm write my codes with 
>Boost for Unix, OSX and Windows. Is there any class or function in the 
>STD for creating a MD5 hash or supports Boost MD5 hash?
>Can you help me with a little code example?
>My solution idea is to compile OpenSSL and link the library?

Try Crypto++ <http://cryptopp.com/>

Disclaimer: I haven't used it myself.
-- 
"The Direct3D Graphics Pipeline" -- DirectX 9 draft available for download
 <http://legalizeadulthood.wordpress.com/the-direct3d-graphics-pipeline/>

      Legalize Adulthood! <http://legalizeadulthood.wordpress.com>
0
Reply jeeves (198) 6/10/2010 6:45:52 PM

On 2010-06-10 20:45:52 +0200, Richard said:

> [Please do not mail me a copy of your followup]
> 
> Philipp Kraus <philipp.kraus@flashpixx.de> spake the secret code
> <hura3l$lkr$1@online.de> thusly:
> 
>> I need in my C++ programm a MD5 hash value. I'm write my codes with
>> Boost for Unix, OSX and Windows. Is there any class or function in the
>> STD for creating a MD5 hash or supports Boost MD5 hash?
>> Can you help me with a little code example?
>> My solution idea is to compile OpenSSL and link the library?
> 
> Try Crypto++ <http://cryptopp.com/>
> 
> Disclaimer: I haven't used it myself.

Thanks, that's a very nice lib, because it's a "wrapper class" for the 
os functions

0
Reply Philipp 6/10/2010 7:13:51 PM

On Thu, 2010-06-10, Philipp Kraus wrote:
> Hi,
>
> I need in my C++ programm a MD5 hash value. I'm write my codes with 
> Boost for Unix, OSX and Windows. Is there any class or function in the 
> STD for creating a MD5 hash or supports Boost MD5 hash?

What's the STD?

> Can you help me with a little code example?
> My solution idea is to compile OpenSSL and link the library?

That would work. It's also common for people to copy a public-domain
or liberally licensed version (in C) into their project, and use it.
There is a version by Colin Plumb which is commonly used; google it,

/Jorgen

-- 
  // Jorgen Grahn <grahn@  Oo  o.   .  .
\X/     snipabacken.se>   O  o   .
0
Reply Jorgen 6/11/2010 9:32:05 PM

[Please do not mail me a copy of your followup]

Jorgen Grahn <grahn+nntp@snipabacken.se> spake the secret code
<slrni15aql.1m5.grahn+nntp@frailea.sa.invalid> thusly:

>On Thu, 2010-06-10, Philipp Kraus wrote:
>> My solution idea is to compile OpenSSL and link the library?
>
>That would work. It's also common for people to copy a public-domain
>or liberally licensed version (in C) into their project, and use it.
>There is a version by Colin Plumb which is commonly used; google it,

According to its web page, the Crypto++ library contains mostly public
domain sources.
-- 
"The Direct3D Graphics Pipeline" -- DirectX 9 draft available for download
 <http://legalizeadulthood.wordpress.com/the-direct3d-graphics-pipeline/>

      Legalize Adulthood! <http://legalizeadulthood.wordpress.com>
0
Reply jeeves (198) 6/12/2010 12:55:47 AM

Richard <legalize+jeeves@mail.xmission.com> wrote:
> According to its web page, the Crypto++ library contains mostly public
> domain sources.

  http://www.linuxjournal.com/article/6225
0
Reply Juha 6/12/2010 8:23:06 AM

6 Replies
741 Views

(page loaded in 0.076 seconds)

Similiar Articles:













7/21/2012 8:42:56 PM


Reply: