I've been trying to override the default value from SHA1 to SHA256 of what System.Security.Cryptography.HashAlgorithm.Create() returns. Based off the docs, it is supposed to be override-able.
I came across this article, but it seems to only mention mapping a custom hash algorithm to override one of the existing ones. I want to just override the default of SHA1 to a default of SHA256.
Is that possible using the article above?
Something like this?
<configuration>
<mscorlib>
<cryptographySettings>
<cryptoNameMapping>
<nameEntry name="System.Security.Cryptography.HashAlgorithm"
class="System.Security.Cryptography.SHA256"/>
</cryptoNameMapping>
</cryptographySettings>
</mscorlib>
</configuration>