PDA

View Full Version : Coding Suggestions for good cryptographically secure hashing in the browser



Smoutwortel
2022-01-22, 03:58 PM
Do you guys have any good suggestions about how hash cryptographic secure values at the client side?
For those concerned about the concept:

- No, I don't intend to use this for security critical applications
- I know the problems people have with cryptographic hashing at the client side and have used them in my own decision process.

To be more precise:
I'm writing a website to showcase some server side code I'm very proud of, but to give zero-knowledge proof of the fact that I'm actually doing what I claim I'm doing I need to cryptographic secure hash a combination of two values at the client side.

wgeek
2022-01-24, 10:27 AM
This exists using Javascript's SubtleCrypto.digest() function. You could find an example on Mozilla's developer website. Can't post a link at the moment.

Smoutwortel
2022-01-25, 10:10 AM
This exists using Javascript's SubtleCrypto.digest() function. You could find an example on Mozilla's developer website. Can't post a link at the moment.

Thanks.
Just what I needed.