Trying "create-cash-customer" with API using PHP on Linux returns invalid hash

Epicor uses a DLL for creating a hash and the is an example of how is is done at Additional Password Validation - #10 by hkeric.wci . Unfortunately DLL don’t run on Linux. Base on the sparse documentation I have found, I have some very simple PHP code that I have been modifying to try to produce a compatible hash on Linux.

$br=‘
’;
$salt=random_bytes(8);
//$salt=‘$b^strfh’;
$pwd = ‘donabcdefgh’;
$pwdSub=$salt.$pwd;
$pwd_hashed= hash(‘sha256’, $pwdSub);
echo '$salt: '.$salt.$br;
echo '$pwd_hashed: '.$pwd_hashed.$br;
echo '$pwd_hashed base64_encode: '.base64_encode($pwd_hashed).$br;

I have been trying the different hashes this produces using the “create-cash-customer” API in Swagger. No luck!
Unfortunately, I don’t have access to see how the DLL is building the hash.

If anyone has any suggestions on how to resolve this it will be greatly appreciated.

This project will be for not if I can’t come up with a solution.