jamesob / brocrypt

An easyish procedure for storing secrets with others

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

    $$\                                                             $$\
    $$ |                                                            $$ |
    $$$$$$$\  $$$$$$\  $$$$$$\  $$$$$$$\ $$$$$$\ $$\   $$\ $$$$$$\$$$$$$\
    $$  __$$\$$  __$$\$$  __$$\$$  _____$$  __$$\$$ |  $$ $$  __$$\_$$  _|
    $$ |  $$ $$ |  \__$$ /  $$ $$ /     $$ |  \__$$ |  $$ $$ /  $$ |$$ |
    $$ |  $$ $$ |     $$ |  $$ $$ |     $$ |     $$ |  $$ $$ |  $$ |$$ |$$\
    $$$$$$$  $$ |     \$$$$$$  \$$$$$$$\$$ |     \$$$$$$$ $$$$$$$  |\$$$$  |
    \_______/\__|      \______/ \_______\__|      \____$$ $$  ____/  \____/
                                                 $$\   $$ $$ |
                                                 \$$$$$$  $$ |
                                                  \______/\__|


                    `` Encryption
                                      for brothazzz  ...  ''


Brocrypt is a procedure for pretty easily storing secrets with people
who are comfortable with basic commandline usage.

It uses Python and cryptography's <https://cryptography.io/en/latest/> Fernet
interface (AES-128).


# Install

$ curl https://raw.githubusercontent.com/jamesob/brocrypt/master/install | bash
$ brocrypt --help


# Sample usage

    $ echo "my message" | brocrypt enc


    Make this encrypted message accessible in some hosted service (email, Dropbox,
    1password, etc.) identified by the key id "040451abacfbdda10bd3f3df5abb303047bd7b59" (e.g. use this as an email
    subject line). If you're sharing this with someone else, email it or
    send it to them.

    -----------------------------------------------------------------------
    gAAAAABbhvVPB7Xx-_...
    -----------------------------------------------------------------------

    Then, share these decryption instructions in another hosted service:

    -----------------------------------------------------------------------
    You've been given an encrypted message.

    To unencrypt the message, place the message payload identified by
    "040451abacfbdda10bd3f3df5abb303047bd7b59" (check your email) into a file called "infile".

    Then run

    curl https://raw.githubusercontent.com/jamesob/brocrypt/master/install | bash
    ./brocrypt dec 4evTvIZPkRjUjIiuhpBUI4PP6wLs4rTzYwcFA3M4os8= infile

    !!! Remember to delete any files containing this information.
    -----------------------------------------------------------------------

About

An easyish procedure for storing secrets with others


Languages

Language:Python 85.0%Language:Shell 15.0%