A recent update to Shortcuts has added support for SSH keys when using the Run Script over SSH action.

This does not allow you to import a key, only to generate them in a few formats (ed25519 and rsa). You can then copy the public key, and see the MD5 Hash as well as the SHA256 Hash.