Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

crypto npm random bytes

// Asynchronous
const crypto = require('crypto');
crypto.randomBytes(256, (err, buf) => {
  if (err) throw err;
  console.log(`${buf.length} bytes of random data: ${buf.toString('hex')}`);
});
Source by nodejs.org #
 
PREVIOUS NEXT
Tagged: #crypto #npm #random #bytes
ADD COMMENT
Topic
Name
7+5 =