Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
jpdaigle
· 5y ago · 0 comments
The one time I've tried doing this sort of "publish hash first, plaintext later" scheme, verification was hard because the hashing is vulnerable to whether or not the reader adds a newline after the text, a CR vs a CRLF, etc.
Comments
[–]
renewiltord
5y ago
I think the best way is to post the command. So what I do is post
printf "Hello World" | sha256sum
[–]
ssimono
5y ago
There is a /raw endpoint to make it easy. On a released pok you can do curl <pok-url>/raw | sha256sum