Skip to main content

A no-brainer pastebin on IPFS - think distributed http://sprunge.us

Project description

https://img.shields.io/travis/drozdziak1/merkleshare.svg https://img.shields.io/pypi/v/merkleshare.svg

A no-brainer pastebin on IPFS - think distributed http://sprunge.us

Why this if there’s ipfs add?

Good question! ipfs add currently doesn’t support showing a full link, let alone xclip-compatible output - the user has to select the hash, paste it in a browser and manually add the rest of their preferred IPFS link format.

Usage

A typical stdin pipe situation:

$ echo "Hello, world" | mersh -t gateway
https://ipfs.io/ipfs/QmaMLRsvmDRCezZe2iebcKWtEzKNjBaQfwcu7mcpdm8eY2

How about some file input?

$ echo "Hello, friends." > file.txt
$ mersh file.txt
/ipfs/QmZRyLRgWiXN2Zks6rjH5jPYQzbWj3BYTWERa9m7QQc3kW

Or maybe you only need the hash? No problem:

$ echo "Rollin' with the hash\!" | mersh -t hash
QmWjZ4dF4brEPqjtWx2EqZbeAmcpHiCVkhAxJyi51TPJzh

Got security needs? Merkleshare’s got you covered:

$ echo "Lizard people live at the edge of flat earth" | mersh -e
/ipfs/QmcXM8gCqeJA2qjnVmFYkFFc2sMjDvT21p8UwGBwzWxva8/#fT7jn4eDJLgHcM3wva4KS4eUMyJ19zuxRJhy5Lp5xwZsVzA4Q6AzoEEEZxUt
                                                      `----------------------------------------------------------'
                                                              Your data is guarded by a disposable secret

It’s not possible to reach your data without the secret, which is only present in the link, but if you do have it…

$ ipfs cat /ipfs/QmcXM8gCqeJA2qjnVmFYkFFc2sMjDvT21p8UwGBwzWxva8
gAAAAABaAMt-gZCub5HYjOXvGbNZP7GaBDJL1ViYFSX9LiWAZAVLK6_o5I2lO3Bq86yHEvmuq-iI179Ficnzwvxug--9_xKFwfXzmv6NUm9tIFf64ukMETuwhWKJJJh9ytmsPJZaRPyA

…then retrieving your stuff with MerkleShare becomes about as easy as it gets:

$ mersh -d /ipfs/QmcXM8gCqeJA2qjnVmFYkFFc2sMjDvT21p8UwGBwzWxva8/#fT7jn4eDJLgHcM3wva4KS4eUMyJ19zuxRJhy5Lp5xwZsVzA4Q6AzoEEEZxUt
Lizard people live at the edge of flat earth

Features

  • Read from stdin or a specified file

  • Only the link gets printed to stdout, everything else is stderr - effortlessly pipe it to your favourite clipboard manager!

  • Seamless data encryption

  • Output the link in the format you need:

    • Regular: /ipfs/<hash>

    • Gateway: https://ipfs.io/ipfs/<hash> - great for sharing links with non-IPFS friends

    • Local: http://localhost:8080/ipfs/<hash>

    • Bare: <hash>

Planned Features

  • (optional) static WebUI

  • built-in clipboard support

History

Pre-release

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

merkleshare-0.2.1.tar.gz (31.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

merkleshare-0.2.1-py2.py3-none-any.whl (8.2 kB view details)

Uploaded Python 2Python 3

File details

Details for the file merkleshare-0.2.1.tar.gz.

File metadata

  • Download URL: merkleshare-0.2.1.tar.gz
  • Upload date:
  • Size: 31.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for merkleshare-0.2.1.tar.gz
Algorithm Hash digest
SHA256 5ab65a146d1a3906a83059529038b856f125f8d75cc96fa5eb9924c29d8eed78
MD5 1c2530c544fbe7036c6b48f57113d476
BLAKE2b-256 6dfbf877ffc37f75bdae82e4953abd33b21f639cc75a09239462dbb582da3ed1

See more details on using hashes here.

File details

Details for the file merkleshare-0.2.1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for merkleshare-0.2.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 c924cabe341cc7ddddf3dcc044bfa5b85683df56d9d28187aecd9eeb987a28e1
MD5 2c909c712b1c8bc79054f08690336859
BLAKE2b-256 cddac0475cfbd51ba65ebde60eb8be8abef9db596dccdb90fbb7e6654f48cfb8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page