stormpath / stormpath-widget

Add beautiful login, registration, and multi-factor authentication screens to your app in only a few lines of code
https://docs.stormpath.com
Apache License 2.0
6 stars 2 forks source link

Subresource integrity #153

Closed omgitstom closed 6 years ago

omgitstom commented 7 years ago

Since we are hosting this on Stormpath CDN, we should disclose subresource integrity for individual versions of the widget

nbarbettini commented 7 years ago

From my understanding, this should be pretty easy to accomplish. The SRI hash can be generated with:

cat stormpath.min.js | openssl dgst -sha384 -binary | openssl enc -base64 -A

Here's what we need to do:

nbarbettini commented 7 years ago

I think SHA-384 would make sense for the hash length, because it's as secure as SHA-512 and requires less computational work for the browser.