Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

191
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda