'SHA512Managed' is obsolete: 'Derived cryptographic types are obsolete. Use the Create method on the base type instead.'
After upgrading a project to .NET 6, the compiler started to complain with the following warning message:
'SHA512Managed' is obsolete: 'Derived cryptographic types are obsolete. Use the Create method on the base type instead.'
Here is the code that caused this warning:
The fix was easy:
I don't know why they made this obsolete but the code change got me rid of the warning message.
If you want to learn more, have a look here.