Salted sha-512 hashes on macOS
This has been a recurring issue for me. I often need (for some weird reason) to send a sha-512 hashed password to someone. This seems like such a trivial task, but since you’ve landed here I guess you’ve also figured out that this is non-trivial without pulling out Python or something similar. And that takes a lot of time.
In comes Docker and Alpine Linux. You can always pass the password and copy the output directly, but then you also have that password in your shell history. Probably not what you want.
docker run --rm -ti alpine:latest mkpasswd -m sha512 [password] [| pbcopy]