SHA-256 hash from URL, the easy way

from blog lmno.lol @alvaro, | ↗ original
From time to time, I need to generate a SHA-256 hash from a file hosted on some server. For me, this flow typically goes something along the lines of: Copy the file URL from browser. Drop to Emacs eshell. Change current directory. Type "curl -o file" Paste the file URL. Run curl command. Type "shasum -a 256 file". Run shasum command. Copy the...