Re:$ cat ~/myfile | curl -X PUT --upload-file “-” https://tr...
by markbnj on Sunday March 20, 2016 @02:44AM
(#11322057)
Neat idea, and props for the https. Are the files encrypted on the server?
[ Parent
| on HN ]
Re:$ cat ~/myfile | curl -X PUT --upload-file “-” https://tr...
by egor-n on Sunday March 20, 2016 @03:01AM
(#11322093)
There's an example on how to encrypt the files before sending them to the server:
# Encrypt files with password using gpg
$ cat /tmp/hello.txt|gpg -ac -o-|curl -X PUT --upload-file "-" https://transfer.sh/test.txt
# Download and decrypt
$ curl https://transfer.sh/1lDau/test.txt|gpg -o- > /tmp/hello.txt
Re:$ cat ~/myfile | curl -X PUT --upload-file “-” https://tr...
by nl5887 on Sunday March 20, 2016 @04:49AM
(#11322285)
Exactly, who trusts server side encryption anyway?
Re:$ cat ~/myfile | curl -X PUT --upload-file “-” https://tr...
by xorcist on Sunday March 20, 2016 @11:10AM
(#11323210)
The first cat does absolutely nothing in your example.
Re:$ cat ~/myfile | curl -X PUT --upload-file “-” https://tr...
by pmarreck on Sunday March 20, 2016 @12:31PM
(#11323510)
are you sure? how else would you pipe to GPG?
Re:$ cat ~/myfile | curl -X PUT --upload-file “-” https://tr...
by yuubi on Sunday March 20, 2016 @04:11PM
(#11324436)
Just redirect gpg's input from the file?
gpg ... < hello.txt | curl ...
Its stdin will be the file instead of a pipe, but few programs care about the difference and fewer still in such a way that you'd prefer to use the pipe.
Re:$ cat ~/myfile | curl -X PUT --upload-file “-” https://tr...
by dwetterau on Sunday March 20, 2016 @03:10AM
(#11322108)
It doesn't appear so, no. The raw bytes seem to be dumped to temp files, local storage, or S3 [1][2] without mention of any sort of encryption step (or reading of a secret somewhere). As mentioned below, you could encrypt before uploading of course. Someone please correct me if I misread though.
[1] https://github.com/dutchcoders/transfer.sh/blob/master/trans...
[2] https://github.com/dutchcoders/transfer.sh/blob/master/trans...