Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

188
Views
Use CryptoJS to encrypt / sign payload

I have the following code that generates a signature using the node crypto lib:

const crypto = require('crypto');
...
const signature = crypto.sign('sha256', Buffer.from(message), privateKey);

Is there a way to generate the same signature using the node crypto-js lib? I am using a Postman pre-request script which provides a node env with access to the crypto-js lib but not the crypto lib.

cryptojs doc

crypto doc

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Is there a way to generate the same signature using the node crypto-js lib? No. Signing is a part of asymmetric cryptography, which is not supported by CryptoJS.

CryptoJS includes various symmetric algorithms, e.g. AES (no authenticated encryption like GCM, by the way), hashing, HMAC and PBKDF2.

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!