nodejs-gost-crypto icon indicating copy to clipboard operation
nodejs-gost-crypto copied to clipboard

Export doesn't work if password is fully numeric

Open Hiller opened this issue 5 years ago • 2 comments

That's easy. Create a container with a numeric password like 123456. Export won't work as password will be converted to int. Need to do smth like this

this.parsedOptions.password.toString()

Hiller avatar May 19 '19 06:05 Hiller

Because of https://github.com/node-js-libs/cli/issues/55

garex avatar May 20 '19 17:05 garex

toString() will not help when value will be "007" for example as parseInt('007', 10).toString() === '7'.

So Bond, James Bond will not be happy.

Can you suggest some fresh mature cli pkg, that could replace https://github.com/node-js-libs/cli ?

garex avatar May 20 '19 17:05 garex