kjvalencik / ghshare Goto Github PK
View Code? Open in Web Editor NEWEncrypt data at rest using a user's public key on github.
Encrypt data at rest using a user's public key on github.
Many of the errors are the raw stack trace or OpenSSL error.
Config file can store parameters and make commands simpler:
For small data (e.g., 117 bytes with PKCS#1) it can be convenient to encrypt the data without an envelope so that it can be decrypted with OpenSSL. This can provide an easy flow for fetching public keys without forcing the recipient to download the client.
Refactor prompting for passphrases to be at the top level of the application. This will make testing easier and allow for alternate ways to provide values (e.g., config file).
Starting with Mojave, private keys are stored in OpenSSH format instead of RSA by default.
This should likely include a refactor to move prompting for accounts to the top level of the program. It is cleaner to handle this at the application level and leave the functionality to simple Option
arguments.
Grabbing keys from public github no longer requires an API token. Attempt to grab without credentials before prompting the user.
Currently, an encrypted file will never end with a message that is exactly the chunk size. If it matches exactly, it will create a new empty message that only contains the tag.
This simplifies reading because it does not require any buffering to detect that we are on the last block. However, it may not match other stream implementations. One way to solve this is to keep a buffer that is double in size and modulus between the two halves. However, this significantly increases code complexity.
This code assumes any OpenSSL error reading the private key means that it has a passphrase. It should only check the specific code. This probably requires matching a string or unpacking the OpenSSL code.
ghshare/src/encryption/asymm.rs
Lines 47 to 51 in 7cda857
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.