You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
257 B
JavaScript
11 lines
257 B
JavaScript
3 years ago
|
// npm install --save yargs
|
||
|
|
||
|
const BOSkrypt = require('.');
|
||
|
|
||
|
|
||
|
var argv = require('yargs/yargs')(process.argv.slice(2))
|
||
|
.string(['key', 'message'])
|
||
|
.number(['count'])
|
||
|
.argv
|
||
|
;
|
||
|
console.log(BOSkrypt.encrypt(argv.message, argv.key, argv.count || 0))
|