Skip to content

Commit

Permalink
Tweak the tutorial HTML a bit
Browse files Browse the repository at this point in the history
©! I, Hugo Landau <hlandau@devever.net>, hereby licence these changes under the
©! licence with SHA256 hash
©! fd80a26fbb3f644af1fa994134446702932968519797227e07a1368dea80f0bc.
  • Loading branch information
hlandau committed May 14, 2017
1 parent e0d05d1 commit ec45ade
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
5 changes: 2 additions & 3 deletions sleeve256/sleeve256.py
@@ -1,11 +1,10 @@
#!/usr/bin/python3
#!/usr/bin/env python3

# Calculates floor(2**256/pi), and encodes the result as base64.
# Intended to be used as a SHA256 hash where I don't have a preimage up my sleeve.
# Originally by Ryan Castellucci. Python3 port, pi sourcing, and base64 output added by Jeremy Rand.

import codecs
import gmpy2
import codecs, gmpy2

# precision in bits
gmpy2.get_context().precision=1024
Expand Down
3 changes: 2 additions & 1 deletion tutorial.html
Expand Up @@ -7,6 +7,7 @@
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<style type="text/css">
body { background-color: pink; }
.note { font-size: small; padding-top: 2em; }
</style>
</head>
<body>
Expand All @@ -30,7 +31,7 @@
<p><a href="#" id="confirm_link">I confirm that I have performed these steps</a></p>
<p><a href="#" id="reject_link">I did not perform these steps; I do not want to configure Chromium/Chrome</a></p>

<p>If you're curious, the above fingerprint is floor(2**256/pi), encoded as base64. This is an example of a "nothing up my sleeve" value. Python code for generating this fingerprint is included in this installer's source code, in the <code>sleeve256</code> folder.</p>
<p class="note">(Note: The above fingerprint is floor(2<sup>256</sup>), base64 encoded. This is an example of a nothing up my sleeve value. Python code for generating this fingerprint is included in this installer's source code, in the <code>sleeve256</code> directory. The fingerprint is a random value satisfied by no known certificate, and ensures that conventional certification authorities cannot issue certificates for .bit websites. Failure to configure this pin creates a corresponding vulnerability.)</p>

<script type="application/javascript">
var confirm_link = document.getElementById('confirm_link');
Expand Down

0 comments on commit ec45ade

Please sign in to comment.