Good day,
In our application we are creating some xml-files which can be send to other applications. In order to ensure the contents of the file we are in the process of adding some hash values (SHA-1, SHA-256 and SHA_512).
Luckily Progress does support these using the message-digest function. However.. I do run into the problem of how to use message-digest on an already existing XML-file?
In a perfect world I would simply use message-digest("SHA-256", file("myxmlfile.xml")) but that doesnt work.
Any suggestions?
Tia,
Luuk
Solved it myself.
First import the file to a memptr and then "message-digest" it.
you can also do this:
def var hash as char no-undo.
input through "md5 file.xml".
import hash.
input close.