Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

secure random nodejs

// Synchronous
const buf = crypto.randomBytes(256);
console.log(
  `${buf.length} bytes of random data: ${buf.toString('hex')}`);
Source by nodejs.org #
 
PREVIOUS NEXT
Tagged: #secure #random #nodejs
ADD COMMENT
Topic
Name
5+1 =