Generate a secure random character string.
Length of the generated secure random string
import * as crypto from 'crypto';import * as buffer from 'buffer';let rand = crypto.randomBytes(32);console.log(rand.toString(buffer.Encoding.Base64)); Copy
import * as crypto from 'crypto';import * as buffer from 'buffer';let rand = crypto.randomBytes(32);console.log(rand.toString(buffer.Encoding.Base64));
Generate a secure random character string.