hello,
i've made a quick, minimal prototype: https://github.com/sansculotte/pd-hasher
it's limited to md5, sha1 and sha256 at the moment, but the limit is only imposed by the external code. the library used is libgcrypt. i'm not sure if this is specifically a good idea, but it works. https://www.gnupg.org/documentation/manuals/gcrypt/
looks like the way forward is to either use a select list of algorithms and include their implementations, thus reducing dependencies or keep using the library and expose more functionality.
the makefile is linux only, but i'm sure it can be made to work for osx and windows too.
have fun, post any issues to github.
cheers, ub
On 08.02.2018 13:10, IOhannes m zmoelnig wrote:
On 2018-02-08 04:22, Marco Hugo Schretter wrote:
i'll try to do some documentation soon so maybe we can solve the md5 thing. there are some opensource projects which provide all the basic c/c++ code for an md5 external as i found out. time will come.
if you (or anybody else) starts such a library, i'd suggest to make it a general hashing library, that implements multiple algorithms, not only "md5". (i think practically no new software uses MD5; it's supported (everywhere) for legacy purposes).
fgmasdr IOhannes
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list