Getting encoded hash from the path - Studio-42/elFinder GitHub Wiki
If you want to find the hash in a script, it can be obtained with the following code. (In the case of a standard hashing method)
JavaScript (No support for IE8, IE9)
var volumeId = 'l1_';
var path = 'path/to/target'; // without root path
//var path = 'path\\to\\target'; // use \ on windows server
var hash = volumeId + btoa(unescape(encodeURIComponent(path)))
.replace(/\+/g, '-').replace(/\//g, '_').replace(/=/g, '.')
.replace(/\.+$/, '');
PHP
$volumeId = 'l1_';
$path = 'path/to/target'; // without root path
//$path = 'path\\to\\target'; // use \ on windows server
$hash = $volumeId . rtrim(strtr(base64_encode($path), '+/=', '-_.'), '.');