Thanks for posting your question in the Microsoft Q&A forum.
Here are some recommendations to help you handle passwords more securely:
- HTTPS (TLS): Ensure that your communication between the Xamarin application and the ASP.NET Core web API is secured using HTTPS (TLS).
- OAuth 2.0 with Authorization Code Flow: If possible, use OAuth 2.0 with the Authorization Code Flow. This involves obtaining an authorization code through a secure redirection, exchanging it for an access token, and then using the access token for subsequent API requests.
- Identity Framework and Token Authentication: If you are using ASP.NET Core Identity, consider utilizing token-based authentication. This involves generating and validating tokens on the server side. Identity Framework can handle password hashing and validation for you. Client-Side Hashing: If you choose to hash passwords on the client side, ensure that the hashed password is transmitted securely to the server over HTTPS. The server then validates the hashed password against the stored hashed password.
- Multi-Factor Authentication (MFA): Consider implementing multi-factor authentication to enhance security.
Please don't forget to close up the thread here by upvoting and accept it as an answer if it is helpful