Skip to content

Instantly share code, notes, and snippets.

Avatar

Jahed jahed

View GitHub Profile
@jahed
jahed / sri.md
Last active Sep 13, 2020
Validating SRI Hashes
View sri.md

Validating SRI Hashes

In case the browser starts complaining about invalid SRI hashes.

curl -s <URL> | openssl dgst -sha256 -binary | openssl enc -base64