Skip to content
This repository was archived by the owner on Apr 29, 2020. It is now read-only.

File encryption built into IPFS? #116

Closed
matthewrobertbell opened this issue May 9, 2016 · 4 comments
Closed

File encryption built into IPFS? #116

matthewrobertbell opened this issue May 9, 2016 · 4 comments

Comments

@matthewrobertbell
Copy link

Hi,

I googled around for this, but didn't find anything: Are there plans to allow adding and getting of ipfs objects with transparent encryption of the data by IPFS?

For example: "ipfs add file.txt --password=abc" "ipfs get --password=abc"

@lidel
Copy link

lidel commented May 10, 2016

You can use external tools to achieve it: write a wrapper script that encrypts file before adding it to IPFS.

Basic symmetrical encryption from your example can be done via openssl, for example:

# encrypt
openssl aes-256-cbc -salt -in plain.txt  -out encrypted.txt

# decrypt
openssl aes-256-cbc -d -in encrypted.txt -out decrypted.txt 

For asymmetrical use gpg.

Follow Unix philosophy "Do One Thing and Do It Well".

@bronger
Copy link

bronger commented Jun 10, 2016

But the IPFS whitepaper mentiones “object-level cryptography”. Has this plan been dropped?

@Kubuxu
Copy link

Kubuxu commented Jun 10, 2016

No it hasn't, it is generally written down as keystore, see: https://github.com/ipfs/specs/tree/master/keystore

As it depends on IPLD and keychain (where the latter hasn't been touched yet as it also depends on IPLD) it will be some time until it is usable.

@madavieb
Copy link

This issue has been moved to https://discuss.ipfs.io/t/file-encryption-built-into-ipfs/323.

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

No branches or pull requests

5 participants