Code Monkey home page Code Monkey logo

ghshare's Introduction

ghshare

Encrypt data at rest using a user's public key on github.

Usage

ghshare -h

GitHub Enterprise

If your instance of GitHub Enterprise does not have a dedicated API host, you will need to suffix the host with /api/v3.

ghshare encrypt -h https://example.com/api/v3 ...

How

Sometimes you want to share something encrypted and the recipient hasn't created a PGP key, but, they've uploaded a public key to GitHub. ghshare can fetch those keys and use them to encrypt a file.

Encryption

  1. ghshare fetches all of a recipient's public keys, prompting for credentials if necessary
  2. A random symmetric key is generated
  3. The symmetric key is encrypted with each of the user's public keys
  4. The file is encrypted with AES-256-SIV.

Decryption

  1. ghshare reads a header from the file contained encrypted keys
  2. ghshare uses the private key to attempt to decrypt keys until it finds a match.
  3. Decrypts the data

TODO

  • Documentation
  • Handle different public key types
    • RSA
    • DSA
    • Ed25519
    • Ecdsa
  • Error messaging
  • Better key matching

ghshare's People

Contributors

kjvalencik avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.