Giter VIP home page Giter VIP logo

npg's Introduction

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

npg's People

Contributors

rustomax avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

npg's Issues

Urand compile fails on Windows

$ nimble install npg
Downloading https://github.com/rustomax/npg using git
Verifying dependencies for [email protected]
Installing passgen@>= 0.1.0
Downloading https://github.com/rustomax/nim-passgen using git
Verifying dependencies for [email protected]
Installing urand@>= 0.1.0
Downloading https://github.com/Matceporial/nim-urand using git
Verifying dependencies for [email protected]
Installing [email protected]
Success: urand installed successfully.
Installing [email protected]
Success: passgen installed successfully.
Installing [email protected]
Building npg/npg.exe using c backend
.nimble\pkgs\urand-0.1.0\urand.nim(61, 29) Error: initialization not allowed here
Prompt: Build failed for '[email protected]', would you like to try installing 'npg@#head' (latest unstable)? [y/N]
Answer: y
Downloading https://github.com/rustomax/npg using git
Verifying dependencies for npg@#head
Info: Dependency on passgen@>= 0.1.0 already satisfied
Verifying dependencies for [email protected]
Info: Dependency on urand@>= 0.1.0 already satisfied
Verifying dependencies for [email protected]
Installing npg@#head
Building npg/npg.exe using c backend
.nimble\pkgs\urand-0.1.0\urand.nim(61, 29) Error: initialization not allowed here
Tip: 26 messages have been suppressed, use --verbose to show them.
Error: Build failed for package: npg
... Execution failed with exit code 1
... Command: .nimble\bin\nim.exe c --colors:on --noNimblePath -d:release -d:NimblePkgVersion=0.1.0 --path:.nimble\pkgs\passgen-0.1.0 --path:.nimble\pkgs\urand-0.1.0 --hints:off -o:AppData\Local\Temp\nimble_17884\githubcom_rustomaxnpg_#head\npg.exe AppData\Local\Temp\nimble_17884\githubcom_rustomaxnpg_#head\src\npg.nim

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.