~ev/dexbox

ref: 58f63ad7f312bd322b3358afb4647482df8b17a3 dexbox/README.md -rw-r--r-- 1.5 KiB
58f63ad7Ev Bogue add a nonce generator 2 years ago

#dexbox

This is a dead stupid simple way to encrypt a message using tweetnacl.box to a recp.

The idea for this dexbox wasn't mine, but was first put into words by former roomie of mine in Oakland named "Johnny" who at last known contact was hoboing around the San Francisco bay area.

The idea for the app is to collect a bunch of messages and see if you can decrypt them, if you can't decrypt the messages then you're out of the loop!

You'll know who sent the messages, but not who can decrypt them.

How you distribute those messages is up to you; use your imagination.

#usage

To use this you'll need Node.js and you'll need to type npm install.

To encrypt a message you'll need to write a message and save it as a file. Then type

node dexbox <publickey> filename 

If you don't already have a keypair, dexbox will generate you an ed25519curve keypair and save it to disk as keypair.

example:

node dexbox 'aW83Fju6D89MZJdZrOb39++9br5S+TYKPXjg2SSEhXE=' file.txt

If you've done everything right, dexbox will encrypt the message to the recp you've specified and then save the file as 'outmsg'. It'll also console.log the boxed message.

#protocol

The dexbox protocol is three base64 objects:

<publickey>~<nonce>~<boxedmessage>

To decrypt a message use the command

dexunbox file

or

dexunbox folder

Then dexunbox will attempt to unbox the message or all of the files in a folder using your keypair and it will console the log the messages.