Skip to content

Instantly share code, notes, and snippets.

View atoponce's full-sized avatar
Crypto coffee

Aaron Toponce atoponce

Crypto coffee
View GitHub Profile
@atoponce
atoponce / bitcoin-seeds.bash
Created January 7, 2022 23:34
Generate 1,000 valid BIP39 mnemonic phrases in Bash
#!/bin/bash
bip39=(abandon ability able about above absent absorb abstract absurd abuse access accident account accuse achieve acid acoustic acquire across act action actor actress actual adapt add addict address adjust admit adult advance advice aerobic affair afford afraid again age agent agree ahead aim air airport aisle alarm album alcohol alert alien all alley allow almost alone alpha already also alter always amateur amazing among amount amused analyst anchor ancient anger angle angry animal ankle announce annual another answer antenna antique anxiety any apart apology appear apple approve april arch arctic area arena argue arm armed armor army around arrange arrest arrive arrow art artefact artist artwork ask aspect assault asset assist assume asthma athlete atom attack attend attitude attract auction audit august aunt author auto autumn average avocado avoid awake aware away awesome awful awkward axis baby bachelor bacon badge bag balance balcony ball bamboo banana banner bar barely bargain barrel ba
@atoponce
atoponce / logins.json
Created December 14, 2021 00:30
Testing password storage on disk with a new Firefox profile in GNOME
{
"nextId": 2,
"logins": [
{
"id": 1,
"hostname": "https://keepass.info",
"httpRealm": null,
"formSubmitURL": "javascript:",
"usernameField": "user",
"passwordField": "pwd",
@atoponce
atoponce / maze.txt
Created December 6, 2021 20:23
Beginner Vi movement practice.
_________________________________________________________________
| ___________ | __________________________ | Use only
| Mouse | _____ | | | | | | ____________________ | | 'hjkl' to
|________| | |_____| | |_____| | _________________ | | help the
|___________| |___________| | _____| | ___________ | | | mouse get
| ___________| ___________| | ______| | ________| |_____| the cheese.
| | ___________| ___________|___________| |___________| | Do not use
| | | __ | _________________ |_____ | | | | the arrow
| | | | | | | | | ______________|_____ | | | | | | keys.
| | | | | | |_____| | _____ | __ | | | | | | |
@atoponce
atoponce / check-words.md
Created December 4, 2021 01:25
BIP39 Checksum Word Variability

128 bits

  • Mnemonic root (11): window clutch puzzle easily ignore soup rubber despair view exclude laugh
  • Valid check words (128): able acoustic agree alone animal apart asset attitude awesome barrel betray blade bone brain bubble cabin cake cargo cause change claim clever column comfort course crater crunch custom debris deposit detail distance dove draw eager egg endless energy erase exist face fault field figure float food friend garbage gesture glimpse good guitar hamster hill horn hunt ill indicate inner jaguar jungle knock language lecture length live lottery major matter message mistake moral mushroom near never north odor once outdoor palace peace pelican pipe point power price pumpkin quit rapid recall rely resist reunion riot saddle sand school senior share shy siren ski snap solar spike square still stool subway suspect talent term tiger token topic trash truth twelve universe urban vast venue virus warm wealth where wisdom wrestle

160 bits

  • Mnemonic root (14): vicious brand
$ LC_ALL=C grep -cE '^[a-z]{$chars}$' /usr/share/dict/$dictionary
Dictionary 4 chars 5 chars 6 chars 7 chars 8 chars 9 chars 10 chars 11 chars 12 chars
american-english-small 1,630 2,606 4,363 5,599 5,509 4,627 3,347 2,077 1,155
american-english 2,051 3,466 5,886 8,006 8,407 7,464 5,827 3,958 2,523
american-english-large 3,036 5,464 9,531 13,531 15,284 14,829 12,371 9,229 6,284
american-english-huge 4,730 9,942 18,138 27,232 33,871 33,011 28,702 22,542 16,426
american-english-insane 7,124 15,900 30,694 43,913 54,443 56,341 51,772 43,281 33,865
@atoponce
atoponce / 0x22EEE0488086060F.asc
Last active November 16, 2021 20:14
GPG secret key belonging to Aaron Toponce <[email protected]> to prove it's encrypted with AES. I'm sure you can now decrypt secret-words.txt.asc and verify the SHA-256 digest, because you have access to it. I won't hold my breath.
-----BEGIN PGP PRIVATE KEY BLOCK-----
lQHpBEFLyzoRBACXCUta5CK+DCgnXn9wkqUumkcbenibGPBe3Y8IEY4BjkdbGdTN
tiGB+Tvo0hzn2qzy4mNPlOx/LWZWF2MdwF3WS77wwIskMb8W314zhE2RS0G318YY
X7zMGSF+7QiNXNsW/d0t1RonYOKIS96zKOtFQZrTr//V8+1rxEa4rvO5dwCgul0s
pt2BUDqwoy2Q/5UKgnmrzmsD/37/3g5zXykvTH2P6BlgTdfnVvpOLDT3CyWlAynz
u5hdmgYNT50I2w5TstY+uViYhAbMiyIT1HwBRcaQh8hUWkzDGyzJF7pS4pZeD0M9
u0P7Cejm2+ENdOX66ablWjP7GLJRcToGxnAZ6hgPpWLen8lHYaUK//g4JJx8UJ/n
wifeA/9xYWDi3ur/fFCKQZIPV9Ziw1oL58su948yWRn2WN7m74+bSldkXzkc4jRe
Q51FpGBHMswRIJKB6yG1FbfLum8ppGbvtz9NrMMZuirguTWetX8aJrjr0ddGjTsY

Originally posted at https://www.nccgroup.trust/us/about-us/newsroom-and-events/blog/2011/august/javascript-cryptography-considered-harmful/

Javascript Cryptography Considered Harmful

WHAT DO YOU MEAN, "JAVASCRIPT CRYPTOGRAPHY"?

We mean attempts to implement security features in browsers using cryptographic algoritms implemented in whole or in part in Javascript.

You may now be asking yourself, "What about Node.js? What about non-browser Javascript?". Non-browser Javascript cryptography is perilous, but not doomed. For the rest of this document, we're referring to browser Javascript when we discuss Javascript cryptography.

@atoponce
atoponce / output.txt
Last active September 24, 2021 14:59
> generateZalgo()
b̖k͔X̍h̪l͂eͦz̋Uͪs̐o͓L̐
> generateZalgo()
p̘H͑q̈z̊B͕T̾D͂g̢o͖q͚5ͦ
> generateZalgo()
șA̷9̣n̩5̞y̘J̸N̬hͩf̴Jͮ
@atoponce
atoponce / key.hex
Created August 19, 2021 03:03
OpenSSH plaintext ed25519 key
6f70 656e 7373 682d 6b65 792d 7631 0000 openssh-key-v1..
0000 046e 6f6e 6500 0000 046e 6f6e 6500 ...none....none.
0000 0000 0000 0100 0000 3300 0000 0b73 ..........3....s
7368 2d65 6432 3535 3139 0000 0020 0035 sh-ed25519... .5
2c2c c250 7221 51b0 de32 118c 15cf 5354 ,,.Pr!Q..2....ST
f29c 332f 312b 5e7e a1f4 21c8 d26c 0000 ..3/1+^~..!..l..
0098 19b9 4591 19b9 4591 0000 000b 7373 ....E...E.....ss
682d 6564 3235 3531 3900 0000 2000 352c h-ed25519... .5,
2cc2 5072 2151 b0de 3211 8c15 cf53 54f2 ,.Pr!Q..2....ST.
9c33 2f31 2b5e 7ea1 f421 c8d2 6c00 0000 .3/1+^~..!..l...
@atoponce
atoponce / key.hex
Created August 19, 2021 03:01
OpenSSH encrypted ed25519 private key
6f70 656e 7373 682d 6b65 792d 7631 0000 openssh-key-v1..
0000 0a61 6573 3235 362d 6374 7200 0000 ...aes256-ctr...
0662 6372 7970 7400 0000 1800 0000 10b6 .bcrypt.........
1ca7 6e70 469a a0f9 38cf 4aa4 df64 f400 ..npF...8.J..d..
0000 4000 0000 0100 0000 3300 0000 0b73 [email protected]
7368 2d65 6432 3535 3139 0000 0020 1afd sh-ed25519... ..
9054 1276 b80c a93c af15 6823 05bd fa3a .T.v...<..h#...:
ecde a6e5 7184 c3fe c171 dfc7 e127 0000 ....q....q...'..
00a0 4471 73a8 b2b6 a8e1 cca8 115f f546 ..Dqs........_.F
82e3 bc96 b408 6b9c 9385 d351 deea f481 ......k....Q....