Skip to content

Instantly share code, notes, and snippets.

Created July 21, 2013 15:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save anonymous/6048848 to your computer and use it in GitHub Desktop.
Save anonymous/6048848 to your computer and use it in GitHub Desktop.
Hushfile API test
#!/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