File encryption built into IPFS?
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
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".
But the IPFS whitepaper mentiones “object-level cryptography”. Has this plan been dropped?
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.
This issue has been moved to https://discuss.ipfs.io/t/file-encryption-built-into-ipfs/323.