Created
July 21, 2013 15:15
-
-
Save anonymous/6048848 to your computer and use it in GitHub Desktop.
Hushfile API test
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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