Socket
Book a DemoInstallSign in
Socket

github.com/TroyWilson1/ipfs-add-from-encrypted

Package Overview
Dependencies
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/TroyWilson1/ipfs-add-from-encrypted

Source
Go
Version
v0.0.0-20190209221751-0c8a7ac2ace5
Version published
Created
Source

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:

./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

FAQs

Package last updated on 09 Feb 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts