api: handle passphrase entering correctly