Command-Line Tool

Upload files directly from your terminal. Content is encrypted in your shell before upload — the server never sees your plaintext.

Download

curl https://paste.cipherwizard.net/cwizpaste.py -O
chmod +x cwizpaste.py

One dependency is required for AES encryption (not in the Python standard library):

pip install cryptography

Current version: v1.0.0

Usage

python cwizpaste.py <file> [options]
python cwizpaste.py -      [options]   # read from stdin

The shareable URL is printed to stderr so it stays visible in the terminal even when piping output. Errors also go to stderr. The script exits with code 0 on success and 1 on error.

Options

Option Default Description
-t TITLE / --title filename, or Piped Data for stdin Set the paste title
-l LANG / --language auto-detected from extension, or shell for stdin Syntax highlighting language (e.g. python, json, plain)
-e DURATION / --expires once How long the paste lives (see table below)
-q / --quiet off When reading from stdin, suppress echoing the content to stdout
--version Print the script version and exit

Expiry durations

Value Meaning
onceDeleted immediately after the first view (burn after read)
1h1 hour
1d1 day
1m1 month
4m4 months
1y1 year
4y4 years

Examples

Upload a file

python cwizpaste.py server.log

Set language and expiry

python cwizpaste.py crash.py -l python -t "Traceback" -e 1d

Read from stdin

cat /var/log/syslog | python cwizpaste.py -

The log content is echoed to stdout so you can pipe it further while the URL appears on stderr:

cat /var/log/syslog | python cwizpaste.py - | grep "ERROR"

Suppress the stdout echo

cat /var/log/syslog | python cwizpaste.py - --quiet

Capture the URL into a variable

URL=$(python cwizpaste.py report.txt 2>&1 >/dev/null)
echo "Paste is at: $URL"

Language values

Pass any value from the table below to -l. The value column is what you type; the name column is just for reference.

Value Name Value Name
Special
plainPlain text (no highlighting) autoAuto-detect language
ansiANSI Terminal
Common
awkAwkbashBash / Shell
cCcppC++
cmakeCMakecssCSS
diffDiff / PatchdockerfileDockerfile
goGoiniINI / TOML
javaJavajavascriptJavaScript
jsonJSONluaLua
makefileMakefilemarkdownMarkdown
phpPHPpythonPython
rustRustshellShell (console output)
sqlSQLxmlXML / HTML
yamlYAML
Others
1c1C4d4D
sap-abapABAPabnfABNF
accesslogAccess logsactionscriptActionScript
adaAdaangelscriptAngelScript
apacheApache configapplescriptAppleScript
arcadeArcadearduinoArduino
armasmARM AssemblyasciidocAsciiDoc
aspectjAspectJautohotkeyAutoHotkey
autoitAutoItavrasmAVR Assembly
axaptaX++ (Axapta)basicBASIC
bnfBNFbrainfuckBrainfuck
calC/ALcapnprotoCap'n Proto
clojureClojurecobolCOBOL
coffeescriptCoffeeScriptcoqCoq
crystalCrystalcsharpC#
cypherCypher (Neo4j)dD
dartDartdjangoDjango / Jinja2
dnsDNS ZonedosDOS Batch
dtsDevice Tree (DTS)dustDust
ebnfEBNFelixirElixir
elmElmerlangErlang
excelExcelfixFIX
fortranFortranfsharpF#
gamsGAMSgaussGAUSS
gcodeG-CodegherkinGherkin
glslGLSL (OpenGL Shading)gmlGML (Game Maker)
gradleGradlegraphqlGraphQL
groovyGroovyhamlHaml
handlebarsHandlebarshaskellHaskell
haxeHaxehttpHTTP
hyHyinform7Inform7
irpf90IRPF90isblISBL
jboss-cliJBoss CLIjuliaJulia
julia-replJulia REPLkotlinKotlin
lassoLassoldifLDIF
leafLeaflessLess
lispLisplivecodeserverLiveCode Server
livescriptLiveScriptllvmLLVM IR
mathematicaMathematicamatlabMATLAB
maximaMaximamelMEL (Maya)
mercuryMercurymipsMIPS Assembly
mizarMizarmojoliciousMojolicious
monkeyMonkeymoonscriptMoonScript
n1qlN1QLnginxNginx
nimNimnixNix
nsisNSISobjectivecObjective-C
ocamlOCamloxygeneOxygene
parser3Parser3perlPerl
pfPF (OpenBSD firewall)ponyPony
powershellPowerShellprocessingProcessing
prologPrologpropertiesProperties
protoProtocol BufferspuppetPuppet
python-replPython REPLqQ / K (kdb+)
qmlQMLrR
reasonmlReasonMLribRenderMan RIB
roboconfRoboconfrouterosRouterOS
rslRenderMan RSLrubyRuby
ruleslanguageOracle Rules LanguagesasSAS
scalaScalaschemeScheme
scilabScilabscssSCSS
smaliSmalismalltalkSmalltalk
smlSMLstanStan
stataStatastylusStylus
subunitSubUnitswiftSwift
tapTAP (Test Anything Protocol)tclTcl
terraformTerraform / HCLtexLaTeX / TeX
thriftThrifttpTP
twigTwigtypescriptTypeScript
valaValavbnetVB.NET
vbscriptVBScriptverilogVerilog
vhdlVHDLvimVim Script
wasmWebAssemblyx86asmx86 Assembly
xlXLxqueryXQuery
zephirZephir

Language auto-detection

The language is inferred from the file extension. You can always override it with -l. Use -l plain to disable highlighting.

Extension / filename Language
.pypython
.jsjavascript
.tstypescript
.sh, .bashbash
.gogo
.rsrust
.c, .hc
.cpp, .cc, .cxx, .hppcpp
.javajava
.phpphp
.rbruby
.lualua
.jsonjson
.yaml, .ymlyaml
.mdmarkdown
.csscss
.scssscss
.html, .htm, .xmlxml
.sqlsql
.ktkotlin
.swiftswift
.toml, .ini, .cfgini
.diff, .patchdiff
.awkawk
.cmake, CMakeLists.txtcmake
.mk, Makefile, GNUmakefilemakefile
.tfterraform
.protoproto
.r, .Rr
Dockerfiledockerfile
anything elseplain