0

I know I can verify plain message with following code:

const verify = crypto.createVerify('sha256')
verify.write(Buffer.from(message, 'base64'))
verify.end()

const verified = verify.verify(publicKey, signatureToVerify, 'base64')

But I need to verify against the already hashed message, instead of node hashing it for me. Is it possible to do it with node's crypto module?

Progman
  • 16,827
  • 6
  • 33
  • 48
David Novák
  • 1,455
  • 2
  • 18
  • 30
  • Please see: [Why is “Is it possible to…” a poorly worded question?](https://softwareengineering.meta.stackexchange.com/q/7273). Please show your attempts you have tried and the problems/error messages you get from your attempts. – Progman Dec 11 '22 at 18:18

0 Answers0