From 6b38396b680e51c47ae0c73d40f0faa4a949b37a Mon Sep 17 00:00:00 2001 From: john Date: Fri, 10 May 2019 01:37:45 -0400 Subject: [PATCH 1/2] fixed padding error --- Palindromic-Mnemonic-Tool.html | 251 ++++++++++++++++++++++++++++++++- bignumber.js | 2 + 2 files changed, 248 insertions(+), 5 deletions(-) create mode 100644 bignumber.js diff --git a/Palindromic-Mnemonic-Tool.html b/Palindromic-Mnemonic-Tool.html index 0a2e1a6..18d9f3b 100644 --- a/Palindromic-Mnemonic-Tool.html +++ b/Palindromic-Mnemonic-Tool.html @@ -64,6 +64,7 @@ b){var c={},d;for(d=0;d + @@ -2419,5 +2654,11 @@

REVERSIBLE: BIP39 Palindromic Mnemonic Tool



+

Decode Base64 Entropy

+ + +
+

+
diff --git a/bignumber.js b/bignumber.js new file mode 100644 index 0000000..79d2f66 --- /dev/null +++ b/bignumber.js @@ -0,0 +1,2 @@ +/* bignumber.js v8.1.1 https://github.com/MikeMcl/bignumber.js/LICENCE */ +!function(e){"use strict";var r,x=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,L="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator,U=Math.ceil,I=Math.floor,T="[BigNumber Error] ",C=T+"Number primitive has more than 15 significant digits: ",M=1e14,G=14,k=9007199254740991,F=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],j=1e7,q=1e9;function $(e){var r=0|e;return 0o[s]^n?1:-1;return u==l?0:l(t=e.length)){for(i=n,r-=t;--r;i+=n);e+=i}else rb?c.c=c.e=null:e.eb)c.c=c.e=null;else if(ob?e.c=e.e=null:e.c=n=a.length){if(!t)break e;for(;a.length<=l;a.push(0));u=c=0,s=(o%=G)-G+(i=1)}else{for(u=f=a[l],i=1;10<=f;f/=10,i++);c=(s=(o%=G)-G+i)<0?0:u/h[i-s-1]%10|0}if(t=t||r<0||null!=a[l+1]||(s<0?u:u%h[i-s-1]),t=n<4?(c||t)&&(0==n||n==(e.s<0?3:2)):5b?e.c=e.e=null:e.e>>11))?(n=crypto.getRandomValues(new Uint32Array(2)),r[s]=n[0],r[s+1]=n[1]):(f.push(o%1e14),s+=2);s=i/2}else{if(!crypto.randomBytes)throw O=!1,Error(T+"crypto unavailable");for(r=crypto.randomBytes(i*=7);sn-1&&(null==s[i+1]&&(s[i+1]=0),s[i+1]+=s[i]/n|0,s[i]%=n)}return s.reverse()}return function(e,r,n,t,i){var o,s,f,u,l,c,a,h,g=e.indexOf("."),p=y,w=N;for(0<=g&&(u=E,E=0,e=e.replace(".",""),c=(h=new _(r)).pow(e.length-g),E=u,h.c=d(Y(z(c.c),c.e,"0"),10,n,m),h.e=h.c.length),f=u=(a=d(e,r,n,i?(o=S,m):(o=m,S))).length;0==a[--u];a.pop());if(!a[0])return o.charAt(0);if(g<0?--f:(c.c=a,c.e=f,c.s=t,a=(c=v(c,h,p,w,n)).c,l=c.r,f=c.e),g=a[s=f+p+1],u=n/2,l=l||s<0||null!=a[s+1],l=w<4?(null!=g||l)&&(0==w||w==(c.s<0?3:2)):un;)a[s]=0,s||(++f,a=[1].concat(a));for(u=a.length;!a[--u];);for(g=0,e="";g<=u;e+=o.charAt(a[g++]));e=Y(e,f,o.charAt(0))}return e}}(),v=function(){function S(e,r,n){var t,i,o,s,f=0,u=e.length,l=r%j,c=r/j|0;for(e=e.slice();u--;)f=((i=l*(o=e[u]%j)+(t=c*o+(s=e[u]/j|0)*l)%j*j+f)/n|0)+(t/j|0)+c*s,e[u]=i%n;return f&&(e=[f].concat(e)),e}function B(e,r,n,t){var i,o;if(n!=t)o=tr[i]?1:-1;break}return o}function R(e,r,n,t){for(var i=0;n--;)e[n]-=i,i=e[n](E[f]||0)&&s--,O<0)g.push(1),u=!0;else{for(v=E.length,N=A.length,O+=2,1<(l=I(i/(A[f=0]+1)))&&(A=S(A,l,i),E=S(E,l,i),N=A.length,v=E.length),d=N,w=(p=E.slice(0,N)).length;w=i/2&&y++;do{if(l=0,(o=B(A,p,N,w))<0){if(m=p[0],N!=w&&(m=m*i+(p[1]||0)),1<(l=I(m/y)))for(i<=l&&(l=i-1),a=(c=S(A,l,i)).length,w=p.length;1==B(c,p,a,w);)l--,R(c,No&&(l.c.length=o):t&&(l=l.mod(r))}if(i){if(0===(i=I(i/2)))break;u=i%2}else if(D(e=e.times(n),e.e+1,1),14o&&(c.c.length=o):t&&(c=c.mod(r))}return t?l:(f&&(l=w.div(l)),r?l.mod(r):o?D(l,E,N,void 0):l)},t.integerValue=function(e){var r=new _(this);return null==e?e=N:V(e,0,8),D(r,r.e+1,e)},t.isEqualTo=t.eq=function(e,r){return 0===H(this,new _(e,r))},t.isFinite=function(){return!!this.c},t.isGreaterThan=t.gt=function(e,r){return 0this.c.length-2},t.isLessThan=t.lt=function(e,r){return H(this,new _(e,r))<0},t.isLessThanOrEqualTo=t.lte=function(e,r){return-1===(r=H(this,new _(e,r)))||0===r},t.isNaN=function(){return!this.s},t.isNegative=function(){return this.s<0},t.isPositive=function(){return 0t&&(t=this.e+1),t},t.shiftedBy=function(e){return V(e,-k,k),this.times("1e"+e)},t.squareRoot=t.sqrt=function(){var e,r,n,t,i,o=this,s=o.c,f=o.s,u=o.e,l=y+4,c=new _("0.5");if(1!==f||!s||!s[0])return new _(!f||f<0&&(!s||s[0])?NaN:s?o:1/0);if((n=0==(f=Math.sqrt(+P(o)))||f==1/0?(((r=z(s)).length+u)%2==0&&(r+="0"),f=Math.sqrt(+r),u=$((u+1)/2)-(u<0||u%2),new _(r=f==1/0?"1e"+u:(r=f.toExponential()).slice(0,r.indexOf("e")+1)+u)):new _(f+"")).c[0])for((f=(u=n.e)+l)<3&&(f=0);;)if(i=n,n=c.times(i.plus(v(o,i,l,1))),z(i.c).slice(0,f)===(r=z(n.c)).slice(0,f)){if(n.e Date: Tue, 7 Jul 2020 21:59:33 -0400 Subject: [PATCH 2/2] Created using Colaboratory --- Markdown_Guide.ipynb | 220 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 220 insertions(+) create mode 100644 Markdown_Guide.ipynb diff --git a/Markdown_Guide.ipynb b/Markdown_Guide.ipynb new file mode 100644 index 0000000..a473c28 --- /dev/null +++ b/Markdown_Guide.ipynb @@ -0,0 +1,220 @@ +{ + "nbformat": 4, + "nbformat_minor": 0, + "metadata": { + "colab": { + "name": "Markdown Guide", + "provenance": [], + "collapsed_sections": [], + "toc_visible": true, + "include_colab_link": true + }, + "kernelspec": { + "display_name": "Python 3", + "name": "python3" + } + }, + "cells": [ + { + "cell_type": "markdown", + "metadata": { + "id": "view-in-github", + "colab_type": "text" + }, + "source": [ + "\"Open" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "colab_type": "text", + "id": "uTnBkRyvGvhW" + }, + "source": [ + "Formatting text in Colaboratory: A guide to Colaboratory markdown\n", + "===" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "colab_type": "text", + "id": "70pYkR9LiOV0" + }, + "source": [ + "## What is markdown?\n", + "\n", + "Colaboratory has two types of cells: text and code. The text cells are formatted using a simple markup language called markdown, based on [the original](https://daringfireball.net/projects/markdown/syntax).\n", + "\n", + "## Quick reference\n", + "\n", + "To see the markdown source, double-click a text cell, showing both the markdown source (above) and the rendered version (below). Above the markdown source there is a toolbar to assist editing.\n", + "\n", + "Headers are created using \\#. Use multiple \\#\\#\\# for less emphasis. For example:\n", + ">\\# This is equivalent to an <h1> tag\n", + "\n", + ">\\##### This is equivalent to an <h5> tag\n", + "\n", + "To make text **bold** surround it with \\*\\*two asterisks\\*\\*. To make text *italic* use a \\*single asterisk\\* or \\_underscore\\_. \\\n", + "_**Bold** inside italics_ and **vice-_versa_** also work. ~~Strikethrough~~ uses \\~\\~two tildes\\~\\~ while `monospace` (such as code) uses \\`backtick\\`.\n", + "\n", + "Blocks are indented with \\>, and multiple levels of indentation are indicated by repetition: \\>\\>\\> indents three levels.\n", + "\n", + "Ordered lists are created by typing any number followed by a period at the beginning of a line. Unordered lists are \\* or - at the beginning of a line. Lists can be nested by indenting using two spaces for each level of nesting.\n", + "\n", + "[Links](https://research.google.com/colaboratory) are created with \\[brackets around the linked text\\](and-parentheses-around-the-url.html). Naked URLs, like https://google.com, will automatically be linkified.\n", + "Another way to create links is using references, which look like [brackets around the linked text][an-arbitrary-reference-id] and then, later anywhere in the cell on its own line, \\[an-arbitrary-reference-id]: followed-by-a-URL.html\n", + "\n", + "A '!' character in front of a link turns it into an inline image link: !\\[Alt text]\\(link-to-an-image.png).\n", + "\n", + "$\\LaTeX$ equations are surrounded by `$`. For example, `$y = 0.1 x$` renders as the following inline equation: $y = 0.1 x$. Double the `$` to set the contents off on its own centered line.\n", + "\n", + "Horizontal rules are created with three or more hyphens, underscores, or asterisks (\\-\\-\\-, \\_\\_\\_, or \\*\\*\\*) on their own line.\n", + "\n", + "Tables are created using \\-\\-\\- for the boundary between the column header and columns and \\| between the columns.\n", + "\n", + "Please see also [GitHub's documentation](https://help.github.com/articles/basic-writing-and-formatting-syntax/) for a similar (but not identical) version of markdown." + ] + }, + { + "cell_type": "markdown", + "metadata": { + "colab_type": "text", + "id": "eYaIiIaJOPqi" + }, + "source": [ + "## Examples" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "colab_type": "text", + "id": "tPqPXAKKkzaM" + }, + "source": [ + "Examples of markdown text with tags repeated, escaped the second time, to clarify their function:\n", + "\n", + "##### \\#\\#\\#\\#\\#This text is treated as an
because it has five hashes at the beginning\n", + "\n", + "\\**italics*\\* and \\__italics_\\_\n", + "\n", + "**\\*\\*bold\\*\\***\n", + "\n", + "\\~\\~~~strikethrough~~\\~\\~\n", + "\n", + "\\``monospace`\\`\n", + "\n", + "No indent\n", + ">\\>One level of indentation\n", + ">>\\>\\>Two levels of indentation\n", + "\n", + "An ordered list:\n", + "1. 1\\. One\n", + "1. 1\\. Two\n", + "1. 1\\. Three\n", + "\n", + "An unordered list:\n", + "* \\* One\n", + "* \\* Two\n", + "* \\* Three\n", + "\n", + "A naked URL: https://google.com\n", + "\n", + "Linked URL: \\[[Colaboratory](https://research.google.com/colaboratory)]\\(https://research.google.com/colaboratory)\n", + "\n", + "A linked URL using references:\n", + "\n", + ">\\[[Colaboratory][colaboratory-label]]\\[colaboratory-label]\n", + "\n", + ">\\[colaboratory-label]: https://research.google.com/colaboratory\n", + "[colaboratory-label]: https://research.google.com/colaboratory\n", + "\n", + "An inline image: !\\[Google's logo](https://www.google.com/images/logos/google_logo_41.png)\n", + ">![Google's logo](https://www.google.com/images/logos/google_logo_41.png)\n", + "\n", + "Equations:\n", + "\n", + ">$y=x^2$\n", + "\n", + ">$e^{i\\pi} + 1 = 0$\n", + "\n", + ">$e^x=\\sum_{i=0}^\\infty \\frac{1}{i!}x^i$\n", + "\n", + ">$\\frac{n!}{k!(n-k)!} = {n \\choose k}$\n", + "\n", + ">$A_{m,n} =\n", + " \\begin{pmatrix}\n", + " a_{1,1} & a_{1,2} & \\cdots & a_{1,n} \\\\\n", + " a_{2,1} & a_{2,2} & \\cdots & a_{2,n} \\\\\n", + " \\vdots & \\vdots & \\ddots & \\vdots \\\\\n", + " a_{m,1} & a_{m,2} & \\cdots & a_{m,n}\n", + " \\end{pmatrix}$\n", + "\n", + "Tables:\n", + ">```\n", + "First column name | Second column name\n", + "--- | ---\n", + "Row 1, Col 1 | Row 1, Col 2\n", + "Row 2, Col 1 | Row 2, Col 2\n", + "```\n", + "\n", + "becomes:\n", + "\n", + ">First column name | Second column name\n", + ">--- | ---\n", + ">Row 1, Col 1 | Row 1, Col 2\n", + ">Row 2, Col 1 | Row 2, Col 2\n", + "\n", + "Horizontal rule done with three dashes (\\-\\-\\-):\n", + "\n", + "---\n", + "\n" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "colab_type": "text", + "id": "w86a4I4fmkvD" + }, + "source": [ + "## Differences between Colaboratory markdown and other markdown dialects\n", + "\n", + "Colaboratory uses [marked.js](https://github.com/chjj/marked) and so is similar but not quite identical to the markdown used by Jupyter and Github.\n", + "\n", + "The biggest differences are that Colaboratory supports (MathJax) $\\LaTeX$ equations like Jupyter, but does not allow HTML tags in the markdown unlike most other markdowns.\n", + "\n", + "Smaller differences are that Colaboratory does not support syntax highlighting in code blocks, nor does it support some GitHub additions like emojis and to-do checkboxes.\n", + "\n", + "If HTML must be included in a Colaboratory notebook, see the [%%html magic](/notebooks/basic_features_overview.ipynb#scrollTo=qM4myQGfQboQ)." + ] + }, + { + "cell_type": "markdown", + "metadata": { + "colab_type": "text", + "id": "uSx6SUb1Komv" + }, + "source": [ + "## Useful references" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "colab_type": "text", + "id": "5Y3CStVkLxqt" + }, + "source": [ + "* [Github markdown basics](https://help.github.com/articles/markdown-basics/)\n", + "* [Github flavored markdown](https://help.github.com/articles/github-flavored-markdown/)\n", + "* [Original markdown spec: Syntax](http://daringfireball.net/projects/markdown/syntax)\n", + "* [Original markdown spec: Basics](http://daringfireball.net/projects/markdown/basics)\n", + "* [marked.js library used by Colaboratory](https://github.com/chjj/marked)\n", + "* [LaTex mathematics for equations](https://en.wikibooks.org/wiki/LaTeX/Mathematics)" + ] + } + ] +} \ No newline at end of file