All Projects → pixelfactoryio → privatebin-cli

pixelfactoryio / privatebin-cli

Licence: other
Privatebin CLI in NodeJS.

Programming Languages

typescript
32286 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to privatebin-cli

Privatebin
A minimalist, open source online pastebin where the server has zero knowledge of pasted data. Data is encrypted/decrypted in the browser using 256 bits AES.
Stars: ✭ 3,622 (+11583.87%)
Mutual labels:  crypto, paste
Piknik
Copy/paste anything over the network.
Stars: ✭ 2,221 (+7064.52%)
Mutual labels:  crypto, paste
PBinCLI
PrivateBin CLI on python 3
Stars: ✭ 51 (+64.52%)
Mutual labels:  paste, privatebin
cryptouri.rs
Rust implementation of CryptoURI: URN-like namespace for cryptographic objects with Bech32-based encoding
Stars: ✭ 33 (+6.45%)
Mutual labels:  crypto
frontend-moon-wallet
Lightweight & user-friendly crypto wallet
Stars: ✭ 46 (+48.39%)
Mutual labels:  crypto
TensorTrade
This repository hosts all my code related to TensorTrade. It consists of the main program, its old versions, and some extras for more insights.
Stars: ✭ 16 (-48.39%)
Mutual labels:  crypto
rust-hmac-sha256
A small, self-contained SHA256 and HMAC-SHA256 implementation.
Stars: ✭ 24 (-22.58%)
Mutual labels:  crypto
VSHG
A standalone addon for GnuPG
Stars: ✭ 18 (-41.94%)
Mutual labels:  crypto
haskell-spake2
SPAKE2 key exchange protocol for Haskell
Stars: ✭ 14 (-54.84%)
Mutual labels:  crypto
NFT.net
An engine developed with .NET Core to generate NFT's through a graphical interface. Simple as that, in the best Grab & Go style.
Stars: ✭ 294 (+848.39%)
Mutual labels:  crypto
backend
Bitex Python crypto exchange backend
Stars: ✭ 23 (-25.81%)
Mutual labels:  crypto
Pkcs11Interop.X509Store
Easy to use PKCS#11 based X.509 certificate store
Stars: ✭ 24 (-22.58%)
Mutual labels:  crypto
framework
Aplus Full-Stack Framework
Stars: ✭ 172 (+454.84%)
Mutual labels:  crypto
ed25519-hd-key
🔐 Key Derivation for ed25519
Stars: ✭ 54 (+74.19%)
Mutual labels:  crypto
lbry.tech
Technical documentation website for the LBRY protocol
Stars: ✭ 46 (+48.39%)
Mutual labels:  crypto
CodeProject
Common code for unity project develop.
Stars: ✭ 28 (-9.68%)
Mutual labels:  crypto
zold-java-client
Java wrapper for Zold's RESTful API.
Stars: ✭ 13 (-58.06%)
Mutual labels:  crypto
chat-diffie-hellman
A secure chat between an Android client and Java server using AES for encryption and Diffie-Hellman for key exchange.
Stars: ✭ 26 (-16.13%)
Mutual labels:  crypto
rari-dApp
Rari Capital's Web3 Portal.
Stars: ✭ 145 (+367.74%)
Mutual labels:  crypto
anyl-wallet
🏦 Anyl Embedded Wallet for Internet of Things
Stars: ✭ 28 (-9.68%)
Mutual labels:  crypto

privatebin-cli

CI codecov

Privatebin-cli is Javascript Command Line tool and a Client Library to interact with privatebin (https://privatebin.net)

Install

npm install -g @pixelfactory/privatebin

Command Line

Send command

$ privatebin send --help
Usage: privatebin send [options] <text>

Send a text to privatebin

Options:
  -e, --expire <string>   paste expire time [5min, 10min, 1hour, 1day, 1week, 1month, 1year, never] (default: "1week")
  --burnafterreading      burn after reading (default: false)
  --opendiscussion        open discussion (default: false)
  --compression <string>  use compression [zlib, none] (default: "zlib")
  --textformat <string>   text format [plaintext, markdown] for the input
  -p, --password          prompt for password (default: false)
  -u, --url <string>      privateBin host (default: "https://privatebin.net")
  -o, --output <string>   output format [text, json, yaml] (default: "text")
  -h, --help              display help for command

Example

$ privatebin send -e 5min -o json "Hello World"
{
  "pasteId": "ccd05227e7bab99c",
  "pasteURL": "https://privatebin.net/?ccd05227e7bab99c#GWk29DqQx6NAfMYHgMeDeR76QSyL82fHHg5yGu3U8fft",
  "deleteURL": "https://privatebin.net/?pasteid=ccd05227e7bab99c&deletetoken=62a14a8483452485902b2e86e56f07269dd484f305d7d210d2375397deb79c1b"
}

Or use pipe

$ echo 'Hello World' | privatebin send -e 5min
pasteId: 649aa8c062d4ed4d
pasteURL: https://privatebin.net/?649aa8c062d4ed4d#Gt3NoxrGF8Tck5j9bBrsuFjbEaCyEBfBiGi1g8qCF2kv
deleteURL: https://privatebin.net/?pasteid=649aa8c062d4ed4d&deletetoken=b2dae42a762cf0b5e1dbf1fd5113356ba370218091668950c7f6a2d181a07ac6

Get command

$ privatebin get --help
Usage: privatebin get [options] <pasteUrl>

get a message from privatebin

Options:
  -h, --help  display help for command

Example

$ privatebin get "https://privatebin.net/?ccd05227e7bab99c#GWk29DqQx6NAfMYHgMeDeR76QSyL82fHHg5yGu3U8fft"
Hello World

Library

Install

npm install @pixelfactory/privatebin

Usage

import { PrivatebinClient } from '@pixelfactory/privatebin';
import { encode } from 'bs58';
const urlPrivatebin = 'https://privatebin.net'
const privatebin = new PrivatebinClient(urlPrivatebin);
const key = crypto.getRandomValues(new Uint8Array(32));
const msg = 'Hello World!';

const opts = {
  textformat: 'plaintext',
  expire: '5min',
  burnafterreading: 0,
  opendiscussion: 0,
  output: 'text',
  compression: 'zlib',
};

const paste = privatebin.sendText(msg, key, opts);
console.log(urlPrivatebin + paste.url + '#' + encode(key))
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].