strawbrary / php-blake2

PHP wrapper for the BLAKE2 hashing function
MIT License
40 stars 15 forks source link

b2sum for file hashing #7

Open Gauss23 opened 7 years ago

Gauss23 commented 7 years ago

Hello,

I just read about the plans about integrating blake2 via libsodium to PHP 7.2. Unfortunately the PHP community missed the opportunity to add a function b2sum() - like sha1_file() - to PHP 7.2. As sha1 is broken officially now, it would have been perfect to add b2sum() as a system function to hash files. Now we need to add it as a pecl extension or use system calls to b2sum tool.

Do you see any chance to integrate a b2sum() function to your extension? Or will it be deprecated with PHP 7.2?

Best regards, Christopher

strawbrary commented 7 years ago

I would certainly be open to adding a b2sum function, unfortunately I don't have much time these days so I'm not sure when I could get around to it. I'll leave this issue open in case anyone else who uses the extension is interested in implementing it.