Questions tagged [node-crypto]

The crypto module in Node.js offers a range of cryptographic capabilities, such as wrappers for OpenSSL's hash, HMAC, cipher, decipher, sign, and verify functions. Any inquiries about Node.js applications or scripts utilizing the crypto module can be tagged with require('crypto').

Having trouble getting Node JS decipher to work on my Ubuntu server

I've created a Cipher that can encrypt and decrypt strings using a key. An error has been occurring: Error: Unsupported state or unable to authenticate data 0|ts-node | at Decipheriv.final (crypto.js:183:26) Here is my implementation: import ...

Error in decoding with RSA padding check PKCS1 OAEP MGF1 routines in JSencrypt for Node.js Crypto

I've been utilizing the NodeJS Crypto module for encryption and decryption with RSA on the backend, while using JSencrypt for frontend RSA operations. The problem arises when I attempt to encrypt data on the frontend using a public key, resulting in an er ...

Can the hash object generated by the NodeJS crypto module be safely reused?

If I need to hash a payload using nodejs, the crypto module can be utilized. It is possible to achieve this by: const crypto = require('crypto'); const payload = "abc123"; const hashObj = crypto.createHash('sha256'); const res ...