ipfs-go-encrypt

command module
v0.0.0-...-3d07cca Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 27, 2022 License: MIT Imports: 10 Imported by: 0

README

ipfs-go-encrypt

A simple CLI written in Go to both encrypt + upload files to ipfs and decrypt + download them.

Install

  1. Run go install inside the working dir
  2. Make sure the go bin directory is added to your path. You can check this by restarting your terminal and running ipfs-go-encrypt. If it's added to your path then you will see a summary of the tool.

Using the Tool

If IPFS is not running run the following

ipfs daemon // or 'ipfs daemon &' to run in the background

Create a private key for encryption You can generate the key like this

openssl enc -aes-128-cbc -k secret -P -md sha1
// or
ipfs-go-encrypt keygen

Run the script with the test file or your file of choice

ipfs-go-encrypt upload --key=<private key> <file name> // uploads encrypted version & logs the cuid
ipfs-go-encrypt download --key=<private key> <cuid> // downloads & decrypts (optional --out flag for output file)

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL