Hacker News new | ask | show | jobs
by HumanOstrich 478 days ago
Where do you initially get the magical sha384 hash that proves the integrity of the package the first time it's imported?
1 comments

Same way we do in JS-land: https://developer.mozilla.org/en-US/docs/Web/Security/Subres...

tl;dr use `openssl` on command-line to compute the hash.

Ideally, any package repositories ought to publish the hash for your convenience.

This of course does nothing to prove that the package is safe to use, just that it won't change out from under your nose.