To be able to edit code and run cells, you need to run the notebook yourself. Where would you like to run the notebook?

This notebook takes about 1 minute to run.

In the cloud (experimental)

Binder is a free, open source service that runs scientific notebooks in the cloud! It will take a while, usually 2-7 minutes to get a session.

On your computer

(Recommended if you want to store your changes.)

  1. Copy the notebook URL:
  2. Run Pluto

    (Also see: How to install Julia and Pluto)

  3. Paste URL in the Open box

Frontmatter

If you are publishing this notebook on the web, you can set the parameters below to provide HTML metadata. This is useful for search engines and social media.

Author 1

Trying to find out how SRI or integrity works.

Go to https://www.jsdelivr.com/package/gh/fonsp/Pluto.jl?path=frontend%2Fcomponents and click some buttons to find SRI. E.g.

<script src="https://cdn.jsdelivr.net/gh/fonsp/Pluto.jl@0.19.2/frontend/components/Editor.js" integrity="sha256-KgFxxdVxyecCKKhwIf3dj864YYyk7ZW11rCkI70Si6s=" crossorigin="anonymous"></script>
👀 Reading hidden code
300 μs
"https://cdn.jsdelivr.net/gh/fonsp/Pluto.jl@0.19.2/frontend/components/Editor.js"
👀 Reading hidden code
url = "https://cdn.jsdelivr.net/gh/fonsp/Pluto.jl@0.19.2/frontend/components/Editor.js"
9.8 μs
👀 Reading hidden code
using Downloads
211 μs
"sha256-KgFxxdVxyecCKKhwIf3dj864YYyk7ZW11rCkI70Si6s="
👀 Reading hidden code
expected = "sha256-KgFxxdVxyecCKKhwIf3dj864YYyk7ZW11rCkI70Si6s="
11.4 μs
👀 Reading hidden code
using SHA
172 μs
👀 Reading hidden code
using Base64
128 μs
👀 Reading hidden code
content = read(Downloads.download(url))
510 ms
"sha256-KgFxxdVxyecCKKhwIf3dj864YYyk7ZW11rCkI70Si6s="
👀 Reading hidden code
myanswer = "sha256-$(base64encode(SHA.sha256(content)))"
101 ms
true
👀 Reading hidden code
13.8 μs
import PlutoSliderServer
👀 Reading hidden code
15.5 s
"KgFxxdVxyecCKKhwIf3dj864YYyk7ZW11rCkI70Si6s"
PlutoSliderServer.plutohash(content)
👀 Reading hidden code
32.0 ms

👀 Reading hidden code
67.5 μs