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

169
Vistas
RSA key conversion from Uint8Array to BigInteger with node-rsa

I have a generated RSA key in the format of Uint8Array but I need the key in the format of BigInteger. See images below. How can I achieve such a conversion?

enter image description here

enter image description here

I use the node RSA lib: https://www.npmjs.com/package/node-rsa

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

I am guessing that the ‘generated’ key was obtained by invoking the exportKey method, using the ‘components’ format. With this setting, this method returns a fixed-structure object whose values are Buffers holding individual key components; it also appears that you have installed some kind of shim that simulates the node.js Buffer API with the Uint8Array object that browsers provide.

If that is so, then it all it should take to get the key object back is to invoke the importKey method:

const key = new NodeRSA();
key.importKey(keyData, 'components');
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