Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

290
Visualizações
Operator '+' cannot be applied to types 'Buffer' in node js with typescript

I get error Operator '+' cannot be applied to types 'Buffer'

when i tried to add Buffer data using + operator in node js with ts !!

Code is something like:

let  encrypted = Buffer.concat([iv, ciphertext, cipher.final()]).toString('base64');

or

let plaintext = Buffer.concat([decipher.update(ciphertext), decipher.final()], 2);

About Buffer Method

(method) Buffer.concat(list: readonly Uint8Array[], totalLength?: number): Buffer

It Returns a buffer which is the result of concatenating all the buffers in the list together.

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda