In a project on Laravel 5 the dynamically generated files of different format (PDF, DOCx, etc.) and saved to a folder on the server. Now you want to calculate the hashes of all the stored files and displayed in a plaque along with the names of the files. The hashes need to be calculated according to the algorithm of GOST 34.11-94 and that's the problem. How beautiful to do this in Laravel?
For MD5, SHA, etc. there is a standard solution like: php.net/manual/en/function.sha1-file.php
string sha1_file ( string $filename [, bool $raw_output = false ] )
And what about the standard?