Projeto-Pindorama / heirloom-ng

A collection of standard Unix utilities that is intended to provide maximum compatibility with traditional Unix while incorporating additional features necessary today.
http://heirloom-ng.pindorama.net.br
Other
28 stars 7 forks source link

Implement a ``digest``(1) command for dealing with newer hashing algorithms. #33

Open takusuman opened 1 year ago

takusuman commented 1 year ago

Reference: https://github.com/Projeto-Pindorama/copacabana/commit/a16ef117953d1b43096225298a089322ec43ab48

Today I implemented a sha256sum utility in Korn Shell 93 and AWK, but I've been thinking about implementing a set of *sum utilities in Heirloom starting from the cksum(1) source code or implementing a new command --- a clone of Solaris' digest(1) seems to be a good option. Yes, a clone, not porting old code (since it's copyrighted anyway). I think implementing a entire new command may be a better option since we do not take the risk of breaking cksum. The drawback would be depending on a SSL library being installed on the system, but this could be workarounded if we make the new command build and install being optional.

Just planning for now.

arthurbacci commented 9 months ago

The current crypto.-related functionalities don't use any external libraries?

takusuman commented 9 months ago

The current crypto.-related functionalities don't use any external libraries?

Apparently no, the cksum utility is pretty simple.