Skip to content

Commit

Permalink
Update download.md
Browse files Browse the repository at this point in the history
  • Loading branch information
XhmikosR committed Sep 14, 2023
1 parent a3705de commit 2a5d906
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions site/content/docs/5.3/getting-started/download.md
Expand Up @@ -57,12 +57,12 @@ We recommend [jsDelivr](https://www.jsdelivr.com/) and use it ourselves in our d
You'll find the same files on these CDN providers, albeit with different URLs. With cdnjs, you can [use this direct Bootstrap package link](https://cdnjs.com/libraries/bootstrap) to copy and paste ready-to-use HTML snippets for each dist file from any version of Bootstrap.

{{< callout warning>}}
**If the SRI hashes differ, you shouldn't use the files from that CDN, because it means that the file was modified by someone else.**
**If the SRI hashes differ for a given file, you shouldn't use the files from that CDN, because it means that the file was modified by someone else.**
{{< /callout >}}

Note that you should compare same length hashes, e.g. `sha384` with `sha384`, otherwise it's expected for them to be different.
As such, you can use an online tool like [SRI Hash Generator](https://www.srihash.org/) to make sure the hashes are the same for a given file.
Alternatively, you can achieve the same from the CLI assuming you have OpenSSL installed, for example:
As such, you can use an online tool like [SRI Hash Generator](https://www.srihash.org/) to make sure that the hashes are the same for a given file.
Alternatively, assuming you have OpenSSL installed, you can achieve the same from the CLI, for example:

```sh
openssl dgst -sha384 -binary bootstrap.min.js | openssl base64 -A
Expand Down

0 comments on commit 2a5d906

Please sign in to comment.