Robert Godfrey 19 January 2025 | 2 mins to read

Enhancing Security and Functionality: ASP.NET Identity with Argon2 Integration

19 January 2025
Security
0 Comments

In the latest update to my web application, I focused on two significant improvements: integrating ASP.NET Identity for user authentication and replacing its default password-hashing algorithm with Argon2, a highly secure and modern hashing mechanism. These updates are part of my ongoing efforts to enhance both security and user management within the application.

ASP.NET Identity Integration: I’ve fully customized the identity pages to align with the Metronic 8.2.7 UI. This update enhances the user experience and lays the groundwork for future features, including custom user fields, social logins, and advanced role-based authorization.

Argon2 for Password Hashing: To strengthen security, I replaced the default password-hashing mechanism with Argon2. Known for its resistance to brute-force and parallel attacks, Argon2 provides the best-in-class protection for user credentials.

During deployment, I configured Argon2 with the following initial parameters:

  • Degree of Parallelism: 8 threads
  • Memory Size: 65,536 KB
  • Iterations: 4
  • These parameters are intentionally conservative for the initial deployment and will be fine-tuned after conducting benchmark tests on the Azure Web App Service to balance security and performance.

    Future Plans: I plan to build on these improvements with several exciting updates:

  • Custom User Fields
  • Email Functionality (SMTP and SendGrid)
  • Breadcrumb Navigation
  • Two-Factor Authentication (2FA)
  • Admin Tools for managing blogs, profiles, and resumes
  • Dynamic Resume Creator
  • Screenshots have been provided to highlight the changes and updates to the application.

    Robert Godfrey IT Leader
    First, a disclaimer – the entire process of writing a blog post often takes more than a couple of hours, even if you can type eighty words per minute and your writing skills are sharp. I sometimes use AI to assist with refining my content, but not so much as to lose my own thoughts, words, and values. I often refer to this quote when considering how I wish to relay or share my thoughts:
    "Your beliefs become your thoughts. Your thoughts become your words. Your words become your actions. Your actions become your habits. Your habits become your values. Your values become your destiny." - Mahatma Gandhi
    Author’s Profile
    Need Technical Consulting, Reach Out Today!
    Learn more about how I can help with your technical requirements
    Coming Soon

    Need assistance or have questions?

    Contact support for help! support@rgodfrey.com
    © RGodfrey 2024
    We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Updated on December 23, 2022). For more information, see the privacy policy.