Opt out of unsolicited calls, postal mail, and credit offers.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { createSigner, createValidator, createVerifier } from 'twj/v0'; | |
import { generateKeyPairSync } from 'node:crypto'; | |
/** | |
* Generate a key-pair, if you don't already have one, as a JWK object. | |
* Here's how you can do that using native APIs provided by Node.js | |
* In production scenarios, you'll already have this somewhere under | |
* configuration management alongside your other secrets. | |
*/ | |
const { privateKey, publicKey } = generateKeyPairSync('ec', { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"username": "", | |
"password": "", | |
"ip": "login.uorenaissance.com", | |
"port": 2593, | |
"ultimaonlinedirectory": "C:/Program Files (x86)/Electronic Arts/Ultima Online Renaissance", | |
"clientversion": "5.0.8.3", | |
"lastcharactername": "", | |
"cliloc": "Cliloc.enu", | |
"lastservernum": 1, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const link = (options = {}) => { | |
const { | |
baseUrl = 'https://api.block.mason.link', | |
clientId, | |
clientSecret | |
} = options; | |
if (!clientId || !clientSecret) { | |
throw new Error('Missing options.clientId or options.clientSecret'); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Restock-3 hotbag="0"> | |
<item id="7981" amount="1" /> | |
<item id="7982" amount="1" /> | |
<item id="7983" amount="1" /> | |
<item id="7984" amount="1" /> | |
<item id="7985" amount="1" /> | |
<item id="7986" amount="1" /> | |
<item id="7987" amount="1" /> | |
<item id="7988" amount="1" /> | |
<item id="7989" amount="1" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Organizer-10 hotbag="1099616085"> | |
<item id="7981" /> | |
<item id="7982" /> | |
<item id="7983" /> | |
<item id="7984" /> | |
<item id="7985" /> | |
<item id="7986" /> | |
<item id="7987" /> | |
<item id="7988" /> | |
</Organizer-10> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { Buffer } = require('buffer'); | |
const arcadePoster = Buffer.from('2BFC8E2B3561C04FBBC73FA43D5D96540D0AA008B30924CE47DA0EC67530D3', 'hex'); | |
const arcadeGraffiti = Buffer.from('9E1CE2C2F6FBFE198637E6F10B957DDD50A7874177A51E', 'hex'); | |
const humanoidNote = Buffer.from('FEEDB0B0DEADBEEF', 'hex'); | |
const noteThenGraffiti = Buffer.from('FEEDB0B0DEADBEEF9E1CE2C2F6FBFE198637E6F10B957DDD50A7874177A51E', 'hex'); | |
const graffitiThenNote = Buffer.from('9E1CE2C2F6FBFE198637E6F10B957DDD50A7874177A51EFEEDB0B0DEADBEEF', 'hex'); | |
const merge = (A, B, f) => Buffer.from(Array.from(A).map((n, index) => f(n, B[index % B.length]))); |
I hereby claim:
- I am canterberry on github.
- I am canterberry (https://keybase.io/canterberry) on keybase.
- I have a public key whose fingerprint is 8BE0 8D64 2839 89A6 F2A3 8D02 7B35 80B9 FAA1 2E7E
To claim this, I am signing this object:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// (Buffer is available in Node.js as a global, but we require it this way for compatibility) | |
// See: https://nodejs.org/api/buffer.html#buffer_buffer | |
const { Buffer } = require('buffer'); | |
const crypto = require('crypto'); | |
const keyPair = crypto.createECDH('secp256k1'); | |
keyPair.generateKeys(); | |
// Print the PEM-encoded private key |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# ============================================================================ # | |
# This CLI tool is a working reference implementation for generating TLS | |
# private keys, certificate signing requests (CSRs), and self-signed | |
# certificates. The benefits of using this tool vs OpenSSL directly are as | |
# follows: | |
# | |
# * Significantly easier to use than OpenSSL. | |
# | |
# * Strong keys by default (ECC with secp384r1 curve). |
NewerOlder