Skip to content
This repository has been archived by the owner on Dec 12, 2021. It is now read-only.

Commit

Permalink
Released v0.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
S1SYPHOS authored Oct 31, 2017
1 parent 0c1cad7 commit 02aa2e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kirby-sri.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

function sri_checksum($input) {
$algorithm = c::get('sri-hash.algorithm') ? c::get('sri-hash.algorithm') : 'sha512';
$hash = hash('sha512', $input, true);
$hash = hash($algorithm, $input, true);
$hash_base64 = base64_encode($hash);

return "$algorithm-$hash_base64";
Expand Down

0 comments on commit 02aa2e2

Please sign in to comment.