comp.lang.ada
 help / color / mirror / Atom feed
* GNAT.md5 example?
@ 2010-10-18  2:21 Trogdor
  2010-10-18  6:24 ` AdaMagica
  0 siblings, 1 reply; 2+ messages in thread
From: Trogdor @ 2010-10-18  2:21 UTC (permalink / raw)


Greetings!

I want to create an MD5 hash of a file and several file fragments.  
GNAT.MD5 looks like it wants to do the job, but I am confused as to 
how to use it.

A quick Google search only found an entry in rosettacode.org sending 
a string out for processing, but not getting the hash back.

Does anyone have an example of using GNAT.MD5?

Thanks in advance!


-- 
--------------------------------- --- -- -
Posted with NewsLeecher v3.9 Final
Web @ http://www.newsleecher.com/?usenet
------------------- ----- ---- -- -




^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: GNAT.md5 example?
  2010-10-18  2:21 GNAT.md5 example? Trogdor
@ 2010-10-18  6:24 ` AdaMagica
  0 siblings, 0 replies; 2+ messages in thread
From: AdaMagica @ 2010-10-18  6:24 UTC (permalink / raw)


I do not know the GNAT implementation, but see at

http://www.christ-usch-grein.homepage.t-online.de/Ada/MD5.html

You find there a file MD5.txt with the original RSA text. This
implementation produces the result required at the end of that paper.

In the package MD5.Driver, you find "procedure Digest_File (Filename:
in String);". Just call it and it will print out the MD5 result.

I guess the GNAT imp. will work very much the same.




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-10-18  6:24 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-10-18  2:21 GNAT.md5 example? Trogdor
2010-10-18  6:24 ` AdaMagica

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox