captcha icon indicating copy to clipboard operation
captcha copied to clipboard

Generate longer captchas

Open wirespecter opened this issue 8 years ago • 6 comments

Every captcha that is generated is 5 characters long.

If I want to generate an 8-length captcha using the code below: const { token, buffer } = captcha(8)

A 5-length captcha is generated instead.

wirespecter avatar Mar 05 '17 14:03 wirespecter

Ok, I like this feature.

fundon avatar Mar 07 '17 22:03 fundon

@vipersec See https://github.com/trekjs/captcha/tree/pure-js.

I had refactored it to pure JS. We can do more.

fundon avatar Mar 18 '17 18:03 fundon

SyntaxError: Unexpected token function at exports.runInThisContext (vm.js:53:16) at Module._compile (module.js:387:25) at babelWatchLoader (D:\DT\H5DS3.0\build\node_modules.2.0.7@babel-watch\run ner.js:50:13) at Object.require.extensions.(anonymous function) [as .js] (D:\DT\H5DS3.0\bu ild\node_modules.2.0.7@babel-watch\runner.js:61:7) at Module.load (module.js:357:32) at Function.Module._load (module.js:314:12) at Module.require (module.js:367:17) at require (internal/module.js:16:19) at Object. (D:\DT\H5DS3.0\build\router.js:13:19) at Module._compile (module.js:413:34)

mtsee avatar Sep 02 '17 01:09 mtsee

@mtsee Which Node.js version you are using?

fundon avatar Sep 09 '17 12:09 fundon

v6.2.0

mtsee avatar Sep 09 '17 14:09 mtsee

async/await requires v8+.

fundon avatar Sep 09 '17 16:09 fundon