Giter VIP home page Giter VIP logo

pswd's Introduction

Screenshot-from-2023-01-25-15-13-11.png

[Make sure to download the .zip file from github or git clone it and extract it to your home directory]

  • Installation
    • cd pswd-master
    • sudo sh install.sh

Pswd is a simple command that will ask a couple of questions to generate a completely random password to ensure your safety while using software and the internet.

simply type "pswd" in a terminal of your choice to get started!

pswd's People

Contributors

mandrew0822 avatar cottonaf avatar

Stargazers

 avatar  avatar adnan avatar Lunkhopao Haokip avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

potatoalienof13

pswd's Issues

Insecure, non-uniform password generation

pswd/pswd.c

Line 41 in 0cedc33

password[i] = randomChar % (122 - 33 + 1) + 33;

Never use the modulo operator on randomly generated bytes where the distribution on the resulting equivalence class is not uniform (here it's not). Some characters will be more likely to be "cropped" from the 8-bit space than others this way, which results in the whole password generation process biased.

A solution would be to use rejection sampling instead of naive modulo operators.

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.