Skip to content

Open source, composable payments platform | PCI compliant | SaaS and Self-host options | Enables connectivity to multiple payment, payout, fraud, vault and tokenization providers | Uplifts authorization with intelligent routing and revenue recovery | Reduce payment processing costs with cost observability | Reduces payment ops with reconciliation

277 B
Raw Blame
import { passwordHash } from '../server/auth.mjs';
let password = '';
for await (const chunk of process.stdin) password += chunk;
password = password.trimEnd();
if (password.length < 12) throw new Error('Use at least 12 characters');
console.log(await passwordHash(password));