evoldoers / biomake

GNU-Make-like utility for managing builds and complex workflows
BSD 3-Clause "New" or "Revised" License
102 stars 9 forks source link

Use built-in hash predicates of library(crypto) for portability #45

Open triska opened 7 years ago

triska commented 7 years ago

As of SWI-Prolog 7.4, library(crypto) provides built-in predicates for computing hashes of data and files.

I have uploaded a primer that contains more information about various options and encodings:

https://www.metalevel.at/prolog/cryptography

Please consider using library(crypto) as a more portable alternative to calling external programs.

Thank you for your work on biomake!

triska commented 7 years ago

By the way, crypto_file_hash/3 works incrementally and does not load the entire file into memory.