#!/usr/bin/env fish
# https://microsounds.github.io/notes/termux-ssh-fingerprint.htm
# Unlock keystore with fingerprint
termux-fingerprint > /dev/null
# Sign nonce value
# Now it seems more elegant to sign the result of termux-fingerprint in a one-liner
# But this can cause weird bugs so let's just play it safe instead of elegant
# No ed25519 support sad
echo nonce | termux-keystore sign default SHA256withRSA | base64 -w 0