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
"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"
👀 Reading hidden code
using Downloads
"sha256-KgFxxdVxyecCKKhwIf3dj864YYyk7ZW11rCkI70Si6s="
👀 Reading hidden code
expected = "sha256-KgFxxdVxyecCKKhwIf3dj864YYyk7ZW11rCkI70Si6s="
👀 Reading hidden code
using SHA
👀 Reading hidden code
using Base64
0x69
0x6d
0x70
0x6f
0x72
0x74
0x20
0x7b
0x20
0x68
0x74
0x6d
0x6c
0x2c
0x20
0x43
0x6f
0x6d
0x70
0x6f
0x7d
0x0a
0x20
0x20
0x20
0x20
0x7d
0x0a
0x7d
0x0a
👀 Reading hidden code
"sha256-KgFxxdVxyecCKKhwIf3dj864YYyk7ZW11rCkI70Si6s="
👀 Reading hidden code
true
👀 Reading hidden code
import PlutoSliderServer
👀 Reading hidden code
"KgFxxdVxyecCKKhwIf3dj864YYyk7ZW11rCkI70Si6s"
PlutoSliderServer.plutohash(content)
👀 Reading hidden code
👀 Reading hidden code