Mayank Agarwal has Published 380 Articles

crypto.createECDH() Method in Node.js

Mayank Agarwal

Mayank Agarwal

Updated on 20-May-2021 12:20:47

303 Views

The crypto.createECDH() is used to create an elliptic curve also known as Elliptic Curve Diffie-Hellman i.e ECDH that uses a curve predefined by the input parameter curveName. You can use crypto.getCurves to get the list of all the available curve names. This method is part of the 'crypto' module.Syntaxcrypto.createECDH(curveName)ParametersThe above ... Read More

crypto.createDiffieHellmanGroup() Method in Node.js

Mayank Agarwal

Mayank Agarwal

Updated on 20-May-2021 12:20:24

79 Views

The crypto.createDiffieHellmanGroup() is used for creating the DiffieHellmanGroup. This method can also be referred as an alias for crypto.getDiffieHellman.Syntaxcrypto.createDiffieHelmmanGroup(name)ParametersThe above parameters are described as below −name – It takes the input for the group name. The input is of type 'string'.ExampleCreate a file with name – diffieHellmanGroup.js and copy the below ... Read More

crypto.createDecipheriv() Method in Node.js

Mayank Agarwal

Mayank Agarwal

Updated on 20-May-2021 12:20:01

2K+ Views

The crypto.createCipheriv() is a programming interface from the 'crypto' module. It will create and return the Decipher object as per the given algorithm, key, iv and options passed in the function.Syntaxcrypto.createDecipheriv(algorithm, key, iv, [options])ParametersThe above parameters are described as below −algorithm – It takes the input for the algorithm that would ... Read More

crypto.createCipheriv() Method in Node.js

Mayank Agarwal

Mayank Agarwal

Updated on 20-May-2021 12:19:36

4K+ Views

The crypto.createCipheriv() method will first create and then return the cipher object as per the algorithm passed for the given key and authorization factor (iv).Syntaxcrypto.createCipheriv(algorithm, key, iv, options)ParametersThe above parameters are described as below −algorithm – It takes the input for the algorithm that would be used to create the cipher. ... Read More

cipher.update() Method in Node.js

Mayank Agarwal

Mayank Agarwal

Updated on 20-May-2021 12:09:13

486 Views

The cipher.update() is used to update the cipher with the receivd data according to the given encoding format. It is one of the inbuilt method that is provided by the class Cipher within the crypto module. If an input encoding is specified, the data argument is a string, else the ... Read More

cipher.final() Method in Node.js

Mayank Agarwal

Mayank Agarwal

Updated on 20-May-2021 12:08:48

526 Views

The cipher.final() is used to return a buffer or string containing the value of cipher object. It is one of the inbuilt method that is provided by the class Cipher within the crypto module. If an output encoding is specified, a String is returned. If an output encoding is not ... Read More

async.queue() Method in Node.js

Mayank Agarwal

Mayank Agarwal

Updated on 20-May-2021 12:04:02

3K+ Views

The async module provides different functionalities to work with asynchronous JavaScript in a nodejs application. The async.queue() method returns a queue that is further used for concurrent processing of processes i.e. multiple processing of items at a time/instant.Installing and Using async.queue()Step 1 − Run the following command to initialize the ... Read More

agent.maxSockets Property in Node.js

Mayank Agarwal

Mayank Agarwal

Updated on 20-May-2021 12:00:29

383 Views

The agent.maxSockets property defines the number of sockets that can be concurrently opened by the agent for each origin. By default, this value is set to Infinity. This is also a part of the 'http' module.Syntaxagent.maxSockets: numberParametersThe above function can accept the following Parameters −number – This defines the number of ... Read More

agent.maxFreeSockets Property in Node.js

Mayank Agarwal

Mayank Agarwal

Updated on 20-May-2021 11:59:46

355 Views

The agent.maxFreeSockets property defines the number of sockets that are left open while in the free state. This is a part of the 'http' module interface.Syntaxagent.maxFreeSockets : numberParametersThe above function can accept the following parameters −number – This defines the number of sockets that can be kept open in the free ... Read More

crypto.randomBytes() Method in Node.js

Mayank Agarwal

Mayank Agarwal

Updated on 20-May-2021 11:59:03

3K+ Views

The crypto.randomBytes() generates cyprtographically strong pseudo-random data. This method will not be completed until there is sufficient entropy in the bytes created. But even after this it does not takes more than a few milliseconds. This method basically creates a few random bytes which are further used.Syntaxcrypto.randomBytes(size, [callback])ParametersThe above parameters ... Read More

Advertisements