This script takes a file or directory as input, uses GPG AES256 symmetric encryption with the password you provide and adds it to IPFS and returns the IPFS hash.
Switch branches/tags
Nothing to show
Clone or download
Latest commit fc4ba8b Jun 3, 2018
Permalink
Failed to load latest commit information.
LICENSE Create LICENSE May 9, 2018
README.md Updated README.md Jun 3, 2018
ipfs-add-from-encrypted.py Master Retool Jun 3, 2018

README.md

ipfs-add-from-encrypted

This script takes a file or directroy as input, uses tar if a directory and GPG AES256 symmetric encryption with the password you provide and adds it to IPFS and returns the IPFS hash.

USAGE:

Add Single File:

./ipfs-add-from-encrypted.py -i test.txt -n Secrets.Out
File encrypted and added to IPFS with this hash QmYjK5jHgYSyeyKZqDZyLCzrziphB18wuM93mXtySEryD1

Add Directory:

./ipfs-add-from-encrypted.py -i /home/testing/stuff -n Stuff.Out
File encrypted and added to IPFS with this hash QmYjK5jHgYSyeyKZqDZyLCzrziphB18wuM93mXtySEryD1

Help:

usage: ipfs-add-from-encrypted.py [-h] -i INPUT -n NAME

Encrypt file/directory and add it to IPFS

optional arguments:
  -h, --help            show this help message and exit
  -i INPUT, --input INPUT
                        File.txt or Directory
  -n NAME, --name NAME  Set encrypted output filename