Giter VIP home page Giter VIP logo

genpass's Introduction

genpass v1.3

Generates a strong password in ASCII up to 256 characters. (BUILT FOR *NIX and MacOS SYSTEMS!)

Building

To build the base program, run:

gcc main.c -o genpass

I also included a quick program made by ChatGPT to calculate the average of my bit entropy dataset, if you want to verify the average you can compile the average_calculator.c program.

About

Pretty much, the program generates a long string from a matrix of numbers that represent ASCII characters. The average bit entropy of the 1000 passwords I generated at length 25 was 148.616 using the zxcvbn algorithm (https://dropbox.tech/security/zxcvbn-realistic-password-strength-estimation), however feel free to test larger data sets. I also included a generated list from KeePassXC's password generating algorithm, just for users to verify certain statistics.

The weakness compared to KPXC's algorithm is about 3-4% weaker in regards to bit entropy, but has a lower time complexity.

Usage

To use the password-generator, simply call genpass -l <LENGTH>. It supports STDOUT so you can pipe the outputted password to a file if you wish. genpass -l 20 will generate a password from ASCII values 32->126. However, you can also invoke command-line arguments that can change the characters used in the string.

: Command-Line Arguments :
-c : Removes spaces from generated strings.
-u : Uppercase characters only.
-x : Lowercase characters only.
-m : Mix of uppercase and lowercase characters.
-n : Numeric characters only.

For example, genpass -n -l 20 would generate a string of numbers with the length of 20.

Windows support

Feel free to fork the program with a precompiled Windows binary included. I might create one eventually, but it's not particularly high on my 'todo list.' Some notes for developers:

  1. The pseudorandom number generation in the Gordion Knot Algorithm uses the PID in it's seed generation. This is the only function that requires a system library.
  2. You may also want to include a GUI for Windows as I have 0 experience in UI/UX design, which is why I intended this software to be used as a CLI program.

genpass's People

Contributors

westwardfishdme avatar

Stargazers

 avatar

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.