Shashank3736/captcha-canvas

I want to generate a random UpperCase / LowerCase captcha how do I do that

PiinnKs opened this issue · 1 comments

    const captchacode = crypto.randomBytes(32).toString("hex").substr(0, 4);
    const captcha = new CaptchaGenerator() 
    .setCaptcha({text: captchacode, size: 60, color: '#e600ff'})
    .setTrace({color: '#e600ff', size: 6});
    const buffer = await captcha.generate();