faq icon indicating copy to clipboard operation
faq copied to clipboard

File encryption built into IPFS?

Open matthewrobertbell opened this issue 10 years ago • 4 comments

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"

matthewrobertbell avatar May 09 '16 17:05 matthewrobertbell

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".

lidel avatar May 10 '16 07:05 lidel

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

bronger avatar Jun 10 '16 17:06 bronger

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.

Kubuxu avatar Jun 10 '16 18:06 Kubuxu

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

madavieb avatar May 23 '17 03:05 madavieb