want an Object-oriented interface for HashContext
| From: | Hans Henrik Bergan | Date: | Mon, 12 Oct 2020 11:49:13 +0000 |
| Subject: | want an Object-oriented interface for HashContext | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-112034@lists.php.net to get a copy of this message | ||
something like
$result = (new HashContext("SHA1"))->update($str1)->update($str2)->final();
(userland sample imp: https://3v4l.org/lXd3u )
I tried asking on the bugtracker ( https://bugs.php.net/bug.php?id=80221 ) ,
but was told to ask on this mailing list instead.