Is it possible to choose another SHA algorithm - say SHA256 - in Solidity? Anyone having issues with NIST compliance?

SHA256 is built in to Solidity, you use it the same way you call keccak, just

sha256(my_data)

It is slightly more expensive than keccak, but if you need NIST compliant hashes, SHA256 is the way to go.

Your Answer

 
discard

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.