Code Monkey home page Code Monkey logo

nxn's Introduction

nxn

password manager components

  • password generator cli (./gen)
  • password authenticated local storage (./store)
  • store (encrypted) credentials
  • store (encrypted) files

modules

password generation cli (./gen)

% ./nxn-gen -h        
nxn-gen 0.1.0

USAGE:
    nxn-gen [FLAGS] [OPTIONS]

FLAGS:
    -h, --help       Prints help information
    -s, --simple     
    -V, --version    Prints version information

OPTIONS:
    -l, --len <len>    Set length [default: 20]
    -q, --qty <qty>    Set quantity [default: 1]

You can set the length, quantity, and complexity of the generated password. The default is for the tool to generate one password of length 20 that may include letters, numbers, and symbols.

% ./nxn-gen   
Password Generated: j2GVfk.XmHPTpx=gP1U<
 Password Strength: 50
% ./nxn-gen
Password Generated: YDJ)FXTR*ZKRsV3PDTL2
 Password Strength: 50
% ./nxn-gen
Password Generated: (CxU)P)uOM#Sp!gn,3;e
 Password Strength: 50

You can pass the -s flag if the password can only be comprised of letters and numbers (no symbols). This is a dumb requirement, but I've seen it enough to add the flag.

% ./nxn-gen -s
Password Generated: i6Vw1b37Zbj58u9qzqdf
 Password Strength: 30
% ./nxn-gen -s
Password Generated: N3CqQQYJ72mQ9cKIQmqG
 Password Strength: 30
% ./nxn-gen -s
Password Generated: 129mgrmrltpLyfdsikim
 Password Strength: 30

Naturally, password strength suffers when we place restrictions on the alphabet. Setting small length restrictions has the same effect.

% ./nxn-gen -s -l=5
Password Generated: 6d16G
 Password Strength: 10
% ./nxn-gen -s -l=5
Password Generated: 976Br
 Password Strength: 10
% ./nxn-gen -s -l=5
Password Generated: 38X1o
 Password Strength: 10

Here's how to generate 10 passwords of length 30, which can contain any letter, number, or symbol.

./nxn-gen -l=30 -q=10 
Password Generated: nl7sh*vbnlwjgchhrlelrhjdr{Qnrc
 Password Strength: 50
Password Generated: M3w4-|UpsNZ81?5N_B79pG'4QfXS2R
 Password Strength: 50
Password Generated: fMrvpCJ=YF3[ioG7uk5vm4ncoffpgQ
 Password Strength: 50
Password Generated: 6clqhwu1zzeliccjgQUyc,vpx\eekh
 Password Strength: 50
Password Generated: Y6eSuddZIPrz}dQerite{gen?1qMpf
 Password Strength: 50
Password Generated: pxjGuxh\vkq6mVphi)elVNky1vcdol
 Password Strength: 50
Password Generated: <<`s*|_q/or@}jk&qd{v`@@6e@8|iS
 Password Strength: 50
Password Generated: (fm&"lMVVNq2,um(6N/8dVcSwZ@MKZ
 Password Strength: 50
Password Generated: @{CKM63`,I9>_iGZ4GmFYOL!h|6JK?
 Password Strength: 50
Password Generated: wF.R|8G8m36,bcp5Q:ff^c1)D7r%<H
 Password Strength: 50

nxn-store is a password authenticated local store that requires a user-set password of strength >=10 (strength as defined in nxn-gen::score)

nxn's People

Contributors

4meta5 avatar

Stargazers

 avatar

Watchers

 avatar  avatar

nxn's Issues

Password Strength Controls

  • Minimum length of the passwords should be enforced by the application. Many security researchers suggest at least 12โ€“16 characters.
  • Maximum password length should not be set too low, as it will prevent users from creating passphrases. A common maximum length is 64 characters due to limitations in certain hashing algorithms.
  • Allow usage of all characters including unicode and whitespace. There should be no password composition rules limiting the type of characters permitted.
  • Ensure credential rotation when a password leak or data breach is identified.
  • Include a password strength meter to help users create a more complex password and block common and previously breached passwords.

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.