In this article, I am going to provide code in C# to encrypt password and decrypt it using AES in Console application example & also shows MD5 password hashing example.
In this article, I have explained, how you can create XML document in C# using Console application, it should work in ASP.NET Web-Forms or MVC, as C# code remains same.