Open triska opened 7 years ago
As of SWI-Prolog 7.4, library(crypto) provides built-in predicates for computing hashes of data and files.
library(crypto)
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!
By the way, crypto_file_hash/3 works incrementally and does not load the entire file into memory.
crypto_file_hash/3
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!