May 28, 2020 10:37 AM|Abbas Naderi|LINK
What do you mean by exact provider? The encryption method is AES, and the DecryptionKey is coming from machineKeys section in web.config.
That is what ASP.NET web Forms uses for form based authentication, for encrypting sensitive data (Tokens, ViewState). There are 2 utility methods in System.Web.Security.MemebershipProvider called EncryptPassword and DecryptPassword which we have used to
encrypt some important data and store them in our DB. Some encrypted 10 years ago, with .NET 3.5. I can still decrypt them with DecryptPassword with the same DecryptionKey although we have now upgraded to .NET 4.8.
Password compatibility is not an issue here. The methods are called EncryptPassword and DecryptPassword but they just use AES to encrypt and decrypt just any text.
My problem is that the same algorithm with the same key is not returning the same result in .NET core.
BTW, thanks for the source code suggestion but as i said, i already have it. Very complicated to understand. So i thought maybe someone with similar experience could help.