UNPKG

poly-crypto

Version:

High-level cryptographic functions that are interoperable between NodeJS and PHP 7.1+.

8 lines (5 loc) 185 B
#!/usr/bin/env node const { PolyRand } = require('../dist/index.cjs'); const [, , type, length] = process.argv; const out = PolyRand[type](Number(length)); process.stdout.write(out);