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