saltstack / salt

Software to automate the management and configuration of any infrastructure or application at scale. Install Salt from the Salt package repositories here:
https://docs.saltproject.io/salt/install-guide/en/latest/
Apache License 2.0
14.18k stars 5.48k forks source link

[FEATURE REQUEST] Support BLAKEx cryptographic hashes in the file module #61838

Open dhs-rec opened 2 years ago

dhs-rec commented 2 years ago

The BLAKE2 family of cryptographic hash algorithms outperforms SHA2/3 by a factor of 2 (according to my tests with a 267M file) while at the same time claiming to be as secure.

It would thus be nice to have support for it in the file module.

OrangeDog commented 2 years ago

That website already says "CONSIDER USING BLAKE3, faster than BLAKE2" by the way.

Python packages exist: https://pypi.org/project/pyblake2/ https://pypi.org/project/blake3/

dhs-rec commented 2 years ago

@OrangeDog, yeah, I've seen that, too. But it seems only BLAKE2 is already packaged on Linux (coreutils ships a b2sum command alongside the other *sum commands). Anyway, feel free to add both, leaves more choices for your users...