npg

Password generator in Nim

Pure Nim score 15/100 · tests present · no docs generated

Summary

Latest Version Unknown
License MIT
CI Status Passing
Downloads 0
Last Indexed 2026-07-21 05:24

Installation

nimble install npg
choosenim install npg
git clone https://github.com/rustomax/npg

OS Compatibility

Platform Linux macOS Windows FreeBSD OpenBSD NetBSD Android iOS WASM Embedded
npg - - - - - - -

Source

Repository https://github.com/rustomax/npg
Homepage https://github.com/rustomax/npg
Registry Source nimble_official

README

npg

Cross-platform password generation utility in Nim, based on passgen library

Installation

nimble install npg

Usage

Usage: npg [options]
  -h, --help    : print this message
  -v, --version : print version

Password options:
  -N=<x> : generate <x> passwords (default = 1)
  -L=<y> : generate <y> character-long passwords
           (default password length = 16, min = 4, max = 1024)

Character sets (default = include all):
  -l     : include lower case letters
  -u     : include upper case letters
  -d     : include digits
  -s     : include special characters

Example  : npg
           generate 1 password, 16 characters-long,
           using all character sets (lower and uppercase letters,
           digits and special characters)

Example  : npg -L=20 -N=10 -lud
           generate 10 passwords, 20 characters-long,
           using alpha-numerical characters only (no special characters)

Example  : npg -N=5 -L=4 -d
           generate 10 4-digit numerical PINs