php-blake2 icon indicating copy to clipboard operation
php-blake2 copied to clipboard

b2sum for file hashing

Open Gauss23 opened this issue 7 years ago • 1 comments

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

Gauss23 avatar Sep 05 '17 15:09 Gauss23

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.

strawbrary avatar Sep 06 '17 07:09 strawbrary