Skip to content

Commit 9aa7c43

Browse files
committed
Added some functions and test
1 parent bd51c4d commit 9aa7c43

25 files changed

Lines changed: 814 additions & 57 deletions

File tree

.flake8

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[flake8]
2+
per-file-ignores =
3+
js2pysecrets/settings.py:E731

docs/404.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@
183183

184184

185185
<span class="md-ellipsis">
186-
JS2PySecrets
186+
About
187187
</span>
188188

189189

docs/blog/2024-03-09/why-start-with-a-javascript-package/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@
190190

191191

192192
<span class="md-ellipsis">
193-
JS2PySecrets
193+
About
194194
</span>
195195

196196

docs/blog/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@
192192

193193

194194
<span class="md-ellipsis">
195-
JS2PySecrets
195+
About
196196
</span>
197197

198198

docs/contributing/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@
192192

193193

194194
<span class="md-ellipsis">
195-
JS2PySecrets
195+
About
196196
</span>
197197

198198

docs/contributing/tests/index.html

Lines changed: 46 additions & 11 deletions
Large diffs are not rendered by default.

docs/gems/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@
192192

193193

194194
<span class="md-ellipsis">
195-
JS2PySecrets
195+
About
196196
</span>
197197

198198

docs/index.html

Lines changed: 33 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@
106106
<div class="md-header__topic" data-md-component="header-topic">
107107
<span class="md-ellipsis">
108108

109-
JS2PySecrets
109+
About
110110

111111
</span>
112112
</div>
@@ -199,7 +199,7 @@
199199

200200

201201
<span class="md-ellipsis">
202-
JS2PySecrets
202+
About
203203
</span>
204204

205205

@@ -423,6 +423,37 @@ <h1 id="js2pysecrets">JS2PySecrets</h1>
423423
<p>The primary goal of this project is to create a Python implementation of Shamir's
424424
Secret Sharing that interoperates with an existing JavaScript implementation.</p>
425425
</div>
426+
<!--
427+
/// html | inline
428+
429+
430+
431+
<div class="row">
432+
<div class="col-sm-6">
433+
<h2>Split</h2>
434+
<div>
435+
Require
436+
<input class="required form-control" type="number" value="3" min="2" max="255">
437+
parts from
438+
<input class="total form-control" type="number" value="5" min="2" max="255">
439+
to reconstruct the following secret
440+
</div>
441+
<textarea class="secret form-control" rows=10 placeholder="Enter your secret here"></textarea>
442+
<h2>Usage</h2>
443+
<p>Double click each part below to select the content for that part. Copy and paste the content for each part into <span class="distributesize">5</span> individual files on your computer.</p>
444+
<p>Distribute one file to each person in your group.</p>
445+
<p>If <span class="recreatesize">3</span> of those people can combine the contents of their file using this page, they can view the secret.</p>
446+
<p>Remember to delete the parts from your computer once you're finished. If you use a rubbish bin for deleted files, also remove them from the rubbish bin.</p>
447+
<p class="error text-danger"></p>
448+
<h2>Parts</h2>
449+
<ol class="generated">
450+
<li>Enter your secret above.</li>
451+
</ol>
452+
</div></div>
453+
454+
///
455+
-->
456+
426457
<div class="admonition example">
427458
<p class="admonition-title">Quick Comparison</p>
428459
<p>Here's a quick overview of how Python will look, compared with the JavaScript implimentation.</p>

docs/license/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@
190190

191191

192192
<span class="md-ellipsis">
193-
JS2PySecrets
193+
About
194194
</span>
195195

196196

docs/mkdocs/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@
192192

193193

194194
<span class="md-ellipsis">
195-
JS2PySecrets
195+
About
196196
</span>
197197

198198

0 commit comments

Comments
 (0)