Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
triska opened this issue Sep 25, 2017 · 1 comment
Open

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

triska opened this issue Sep 25, 2017 · 1 comment

Comments

@triska
Copy link

triska commented Sep 25, 2017

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
Copy link
Author

triska commented Sep 25, 2017

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants