Get hash from items

+1 vote
Hello,

I should create a project based on multichain that allow you to add a file and later check if the file has been modified with a hash check. How can i do that? There is a way to get the hash of a data?

Thanks.
asked Jan 8, 2019 by anonymous

1 Answer

0 votes
 
Best answer

It sounds like you should just embed the file's hash in the blockchain, rather than the whole file.

So you just need a method to get the hash of a file. The answer will depend on the programming language you are using, or you could access a command-line tool like sha256sum (on Linux).

answered Jan 8, 2019 by MultiChain
...