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 |
|---|---|
once | Deleted immediately after the first view (burn after read) |
1h | 1 hour |
1d | 1 day |
1m | 1 month |
4m | 4 months |
1y | 1 year |
4y | 4 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 | |||
plain | Plain text (no highlighting) | auto | Auto-detect language |
ansi | ANSI Terminal | ||
| Common | |||
awk | Awk | bash | Bash / Shell |
c | C | cpp | C++ |
cmake | CMake | css | CSS |
diff | Diff / Patch | dockerfile | Dockerfile |
go | Go | ini | INI / TOML |
java | Java | javascript | JavaScript |
json | JSON | lua | Lua |
makefile | Makefile | markdown | Markdown |
php | PHP | python | Python |
rust | Rust | shell | Shell (console output) |
sql | SQL | xml | XML / HTML |
yaml | YAML | ||
| Others | |||
1c | 1C | 4d | 4D |
sap-abap | ABAP | abnf | ABNF |
accesslog | Access logs | actionscript | ActionScript |
ada | Ada | angelscript | AngelScript |
apache | Apache config | applescript | AppleScript |
arcade | Arcade | arduino | Arduino |
armasm | ARM Assembly | asciidoc | AsciiDoc |
aspectj | AspectJ | autohotkey | AutoHotkey |
autoit | AutoIt | avrasm | AVR Assembly |
axapta | X++ (Axapta) | basic | BASIC |
bnf | BNF | brainfuck | Brainfuck |
cal | C/AL | capnproto | Cap'n Proto |
clojure | Clojure | cobol | COBOL |
coffeescript | CoffeeScript | coq | Coq |
crystal | Crystal | csharp | C# |
cypher | Cypher (Neo4j) | d | D |
dart | Dart | django | Django / Jinja2 |
dns | DNS Zone | dos | DOS Batch |
dts | Device Tree (DTS) | dust | Dust |
ebnf | EBNF | elixir | Elixir |
elm | Elm | erlang | Erlang |
excel | Excel | fix | FIX |
fortran | Fortran | fsharp | F# |
gams | GAMS | gauss | GAUSS |
gcode | G-Code | gherkin | Gherkin |
glsl | GLSL (OpenGL Shading) | gml | GML (Game Maker) |
gradle | Gradle | graphql | GraphQL |
groovy | Groovy | haml | Haml |
handlebars | Handlebars | haskell | Haskell |
haxe | Haxe | http | HTTP |
hy | Hy | inform7 | Inform7 |
irpf90 | IRPF90 | isbl | ISBL |
jboss-cli | JBoss CLI | julia | Julia |
julia-repl | Julia REPL | kotlin | Kotlin |
lasso | Lasso | ldif | LDIF |
leaf | Leaf | less | Less |
lisp | Lisp | livecodeserver | LiveCode Server |
livescript | LiveScript | llvm | LLVM IR |
mathematica | Mathematica | matlab | MATLAB |
maxima | Maxima | mel | MEL (Maya) |
mercury | Mercury | mips | MIPS Assembly |
mizar | Mizar | mojolicious | Mojolicious |
monkey | Monkey | moonscript | MoonScript |
n1ql | N1QL | nginx | Nginx |
nim | Nim | nix | Nix |
nsis | NSIS | objectivec | Objective-C |
ocaml | OCaml | oxygene | Oxygene |
parser3 | Parser3 | perl | Perl |
pf | PF (OpenBSD firewall) | pony | Pony |
powershell | PowerShell | processing | Processing |
prolog | Prolog | properties | Properties |
proto | Protocol Buffers | puppet | Puppet |
python-repl | Python REPL | q | Q / K (kdb+) |
qml | QML | r | R |
reasonml | ReasonML | rib | RenderMan RIB |
roboconf | Roboconf | routeros | RouterOS |
rsl | RenderMan RSL | ruby | Ruby |
ruleslanguage | Oracle Rules Language | sas | SAS |
scala | Scala | scheme | Scheme |
scilab | Scilab | scss | SCSS |
smali | Smali | smalltalk | Smalltalk |
sml | SML | stan | Stan |
stata | Stata | stylus | Stylus |
subunit | SubUnit | swift | Swift |
tap | TAP (Test Anything Protocol) | tcl | Tcl |
terraform | Terraform / HCL | tex | LaTeX / TeX |
thrift | Thrift | tp | TP |
twig | Twig | typescript | TypeScript |
vala | Vala | vbnet | VB.NET |
vbscript | VBScript | verilog | Verilog |
vhdl | VHDL | vim | Vim Script |
wasm | WebAssembly | x86asm | x86 Assembly |
xl | XL | xquery | XQuery |
zephir | Zephir | ||
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 |
|---|---|
.py | python |
.js | javascript |
.ts | typescript |
.sh, .bash | bash |
.go | go |
.rs | rust |
.c, .h | c |
.cpp, .cc, .cxx, .hpp | cpp |
.java | java |
.php | php |
.rb | ruby |
.lua | lua |
.json | json |
.yaml, .yml | yaml |
.md | markdown |
.css | css |
.scss | scss |
.html, .htm, .xml | xml |
.sql | sql |
.kt | kotlin |
.swift | swift |
.toml, .ini, .cfg | ini |
.diff, .patch | diff |
.awk | awk |
.cmake, CMakeLists.txt | cmake |
.mk, Makefile, GNUmakefile | makefile |
.tf | terraform |
.proto | proto |
.r, .R | r |
Dockerfile | dockerfile |
| anything else | plain |