Password incorrect after upgrade to .net core

232 Views Asked by At

I'm using asp.net 4.6.1 using native UserManager to handle Register/Login flow. After upgraded to .net core 1.1, it appears that the hash algorithm has changed so users could not login using the old password.
For example, the password "P@ssword123" was hashed as "ABiX7922FWETSxMXAlvD91GI1HwQSmb4ArreR+wa3R9bbz13/ITuwxshQjnIg30Zsw==" but the new hashed value that generated by .net core is "AQAAAAEAACcQAAAAECMDFIuBWc4dTtEuLL6RUfszQLjnWzluDNUFNuCPWBqlLzgVx0ASLWvBUTuShLnulQ=="

does anyone have any idea to change hash algorithm of .net core so that it could be backward compability with old asp.net 4.6 framework?

0

There are 0 best solutions below