I have a .sh file generating an openssl sha256 key
$(echo -n ${DATA} | openssl sha256 -binary | base64)
And need to generate same key to compare it to using sha256 in my php file, the old one is sha1. This is my php code right now, which outputs fine sha1 string.
$params['Code'] = base64_encode(sha1($params['Product'] . $params['Model'] . $params['Number'],true));
I changed sha1 to sha256, and I get internal server error.