Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/TroyWilson1/ipfs-add-from-encrypted
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.
https://github.com/TroyWilson1/ipfs-add-from-encrypted
cli encryption ipfs ipfs-add ipfs-hash
Last synced: 3 months ago
JSON representation
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.
- Host: GitHub
- URL: https://github.com/TroyWilson1/ipfs-add-from-encrypted
- Owner: TroyWilson1
- License: mit
- Created: 2018-04-23T21:57:08.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-02-09T22:17:56.000Z (almost 6 years ago)
- Last Synced: 2024-08-29T10:33:02.792Z (4 months ago)
- Topics: cli, encryption, ipfs, ipfs-add, ipfs-hash
- Language: Python
- Homepage:
- Size: 18.6 KB
- Stars: 53
- Watchers: 4
- Forks: 11
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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 NAMEEncrypt 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
```