Is there an option to calculate SHA3-256 hashes in .NET Core? The goal is to recreate the isChecksumAddress
util function in web3.js

- 2,080
- 2
- 19
- 44

- 790
- 6
- 24
3 Answers
No, there is no way of doing that now with pure dotnet core.
It's been on the watch list since it was announced. Since we don't implement cryptographic algorithms within .NET we're waiting on support from the underlying platforms (Windows CNG, Apple Security.framework, and OpenSSL).
See this issue.
But you might have a better luck with BouncyCastle. It has an implementation here but I don't know if it is out yet (in nuget).

- 8,644
- 2
- 27
- 42
FIPS-202 SHA3-256 (and all other SHA3 variants, e.g. SHA3-512, SHA3-SHAKE256) are implemented here, in pure .NET, with no dependencies on external APIs like BouncyCastle.
GitHub
https://github.com/series0ne/CORE/tree/master/Core/Security/Cryptography
Nuget

- 39,871
- 52
- 185
- 313
You can use SHA3.Net that is a SHA3 wrapper of the BouncyCastle implementation, implementing System.Security.Cryptography.HashAlgorithm

- 4,148
- 3
- 17
- 34

- 5,300
- 4
- 31
- 46