Learn to securely share files on the blockchain with IPFS!

If the blockchain can barely sustain small strings of text that simply record a balance transfer between two parties, how on earth are we ever going to store large files or images on the blockchain? Are we just going to have to be OK with limiting the utility of the blockchain to things that can only be captured in tiny text strings?

As long as anyone has the hash of the PDF file, they can retrieve it from IPFS. So sensitive files are not well suited for IPFS in their native states.

Unless we do something to these files, sharing sensitive files like health records or images is a poor fit for IPFS.Enter Asymmetric EncryptionLuckily, we have tools at our disposable that pair very nicely with IPFS to secure files before uploading them to IPFS. Asymmetric encryption allows us to encrypt a file with the public key of the intended recipient so that only they can decrypt it when they retrieve it with IPFS. A malicious party who retrieves the file from IPFS can’t do anything with it since they can’t decrypt it.

The second computer simulates a person with whom you want to securely share your files.

Secured sensitive files using GPG and stored them on IPFS.Understood hashing in IPFS and how we can store the hashes on the blockchain to combine the strengths of the blockchain with distributed file storage.

The drawback to IPFS is that if your files aren’t very popular, when you stop your node, your file is gone from the IPFS network.

Once you’ve gone through those, try integrating IPFS and blockchain with your own large, encrypted files.

This article was summarized automatically.

Original link