Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ECIES encryption to putFile/getFile #262

Merged
merged 8 commits into from
Oct 9, 2017

Conversation

kantai
Copy link
Collaborator

@kantai kantai commented Oct 3, 2017

Adds support for using the AppPrivateKey to perform encryption and decryption of data stored using putFile/getFile.

This adds encrypt and decrypt boolean parameters to putFile and getFile, respectively. These parameters default to false.

This is an implementation of ECIES (see wiki), which uses the crypto and elliptic libraries -- elliptic was already an explicit dependency, and crypto was an implicit dependency (though one that was already getting used explicity for getRandomBytes), so this shouldn't change our library dependency tree.

@CLAassistant
Copy link

CLAassistant commented Oct 3, 2017

CLA assistant check
All committers have signed the CLA.

@larrysalibra
Copy link
Contributor

Awesome @kantai ! Can't wait to try this out!

@larrysalibra larrysalibra self-requested a review October 4, 2017 06:15
@larrysalibra larrysalibra self-assigned this Oct 4, 2017
@larrysalibra larrysalibra mentioned this pull request Oct 4, 2017
larrysalibra added a commit that referenced this pull request Oct 9, 2017
@larrysalibra larrysalibra merged commit 972a8e1 into hirosystems:develop Oct 9, 2017
@larrysalibra
Copy link
Contributor

beautiful @kantai

screen shot 2017-10-10 at 5 29 27 am

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants