Hashpipe – Pipe iff the hash matches
11–20 of 90 posts
Re: Hashpipe – Pipe iff the hash matches
#12A polarizing name, if perhaps less so amongst programmers
Re: Hashpipe – Pipe iff the hash matches
#13Be warned that this reads everything until EOF into memory, doing something like: hashpipe QmUJPTFZnR2CPGAzmfdYPghgrFtYFB6pf1BqMvqfiPDam8 will produce unexpected behaviour.
Re: Hashpipe – Pipe iff the hash matches
#14Be warned that this reads everything until EOF into memory, doing something like: hashpipe QmUJPTFZnR2CPGAzmfdYPghgrFtYFB6pf1BqMvqfiPDam8 will produce unexpected behaviour.
yeah, hashes are decided by every single bit including the last one, and not a single bit should be output until the hash matches. It currently buffers everything in memory, but might do this: https://github.com/jbenet/hashpipe/issues/1 (some settings dont have disk though). hashpipe is intended for most executable use cases (usually under <50MB)
Of course, if you're really paranoid, the file could get changed out from under you. But honestly you're probably screwed either way with an attacker who can do that.
Re: Hashpipe – Pipe iff the hash matches
#15Re: Hashpipe – Pipe iff the hash matches
#16A polarizing name, if perhaps less so amongst programmers
Re: Hashpipe – Pipe iff the hash matches
#17If a website wants you to:
curl "http://sketchyurl.com/script.sh" | hashpipe PRECOMPUTEDHASH | sh
it might be even worse, giving you only the facade of additional security.
Re: Hashpipe – Pipe iff the hash matches
#18Re: Hashpipe – Pipe iff the hash matches
#19Keep in mind whatever script you run through this could download additional unverified code.
Please please dont use hashpipe thinking you'll be super safe about everything. It only raises the bar a bit! It solves my biggest gripe with most `curl | sh` things, which is that any MITM can own my machines without compromising the origin http servers.
(of course, if the HTTP server + page you got the checksum from is owned too-- good luck!).
Re: Hashpipe – Pipe iff the hash matches
#20> hashcurl http://load.this/script?hash= QmUJPTFZnR2CPGAzmfdYPghgrFtYFB6pf1BqMvqfiPDam8 | sh