Pinning Encrypted Files to IPFS
Learn how to pin encrypted files to IPFS.
Ipfs-add-from-encryptedis an open-source tool that can be used to encrypt files and upload them to IPFS. Once uploaded to IPFS, the file must be pinned to persist on IPFS long-term.
Read below to learn how to pin encrypted files to IPFS with Filebase.
- Download and install the Python package
ipfsapiwith the command
pip3 install ipfsapi.
git clone https://github.com/TroyWilson1/ipfs-add-from-encrypted.git
./ipfs-add-from-encrypted.py -i file.txt -n output.out
You will get output resembling the following:
File encrypted and added to IPFS with this hash QmUaWLEYyMPYQpxkknuMkrnSYQfdih2z1qZepy9TcnzUJU