src/Functions/ExtendedOperations/ValidityFunctions.php
public function createHashFileName(string $filename, string $extension = '.php'): string
    {
        return sprintf('%s%s', hash('sha256', $filename, false), $extension);
    }
public function createHashFileName(string $filename, string $extension = '.php'): string
    {
        return sprintf('%s%s', hash('sha256', $filename, false), $extension);
    }
public function createHashFileName ( string $ filename , string $ extension = '.php' ) : string { return sprintf ( '%s%s' , hash ( 'sha256' , $ filename , false ) , $ extension ) ; }
Generate a hash file name.

@param string $filename  The file name or key
@param string $extension The file extension

@return string The hash filename

@api
Generate a hash file name .