Open akalongman opened 3 years ago
In the method calculateDigest used function hash for calculating digest:
hash
$digest = hash($alg, $data, true);
But openssl library has a openssl_digest function, why don't use it?
openssl_digest
$digest = openssl_digest($data, $alg, true);
In the method calculateDigest used function
hash
for calculating digest:But openssl library has a
openssl_digest
function, why don't use it?