Skip to content

Instantly share code, notes, and snippets.

@ysangkok
Forked from anonymous/gist:6048848
Created July 21, 2013 15:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ysangkok/6048851 to your computer and use it in GitHub Desktop.
Save ysangkok/6048851 to your computer and use it in GitHub Desktop.
#!/bin/bash
FILEID=$(dd status=none if=/dev/urandom bs=1k count=1 | curl -s --data-urlencode cryptofile@- -d metadata=metadata -d deletepassword=passwd "https://hushfile.it/api/upload" | python3 -c "import sys; import json; print(json.loads(sys.stdin.read())['fileid'])")
curl -s "https://hushfile.it/api/file?fileid=$FILEID" | wc -c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment