Giter Site home page Giter Site logo

basemax / cpasswordgenerator Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 21 KB

A simple C program that generates random passwords with various options, designed to work on both Windows and Linux platforms.

License: GNU General Public License v3.0

Makefile 11.32% C 88.68%
c cli password random random-generator random-password

cpasswordgenerator's Introduction

Random C Password Generator

A simple C program that generates random passwords with various options, designed to work on both Windows and Linux platforms.

Features

  • Generates random passwords based on user-defined criteria:
    • Password length
    • Inclusion of symbols
    • Inclusion of uppercase letters
  • Secure random number generation using platform-specific methods:
    • Windows: CryptGenRandom function
    • Linux: /dev/urandom file
  • Cross-platform compatibility

Prerequisites

  • For Windows users, no additional prerequisites are required.
  • For Linux users, ensure you have /dev/urandom available for random number generation.

Usage

  1. Clone the repository to your local machine:

    git clone https://github.com/your-username/random-password-generator.git

  2. Run the following command:

    make

  3. Then you can run program with following command:

    ./password_generator

Examples

./password_generator
Enter the length of the password: 50
Should the password contain symbols? (0/1): 1
Should the password contain uppercase letters? (0/1): 1
Generated Password: <BJ{vdR+IY+C(;Y-SvS?:W]AEM!rR@yPxjHkF|b|ka=Etie-xi
./password_generator
Enter the length of the password: 50
Should the password contain symbols? (0/1): 0
Should the password contain uppercase letters? (0/1): 0
Generated Password: gdhkprjvvkcqyshhabduetrrzvotelyhzcydjlxcfywykywnzv
./password_generator
Enter the length of the password: 50
Should the password contain symbols? (0/1): 0
Should the password contain uppercase letters? (0/1): 1
Generated Password: ipbzIStpeWLPfSnRmGmyYZmAkJfzEJTOvpsVJuPJLSHKANiChd

Copyright 2023, Max Base

cpasswordgenerator's People

Contributors

maxianedison avatar

Stargazers

 avatar

Watchers

 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.