项目作者: TroyWilson1

项目描述 :
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.
高级语言: Python
项目地址: git://github.com/TroyWilson1/ipfs-add-from-encrypted.git
创建时间: 2018-04-23T21:57:08Z
项目社区:https://github.com/TroyWilson1/ipfs-add-from-encrypted

开源协议:MIT License

下载


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.

I use this on a Macbook Pro with GPG.

USAGE:

Add Single File:

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

Add Directory:

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

Help:

  1. usage: ipfs-add-from-encrypted.py [-h] -i INPUT -n NAME
  2. Encrypt file/directory and add it to IPFS
  3. optional arguments:
  4. -h, --help show this help message and exit
  5. -i INPUT, --input INPUT
  6. File.txt or Directory
  7. -n NAME, --name NAME Set encrypted output filename