https://github.com/basemax/cpasswordgenerator
A simple C program that generates random passwords with various options, designed to work on both Windows and Linux platforms.
https://github.com/basemax/cpasswordgenerator
c cli password random random-generator random-password
Last synced: 9 months ago
JSON representation
A simple C program that generates random passwords with various options, designed to work on both Windows and Linux platforms.
- Host: GitHub
- URL: https://github.com/basemax/cpasswordgenerator
- Owner: BaseMax
- License: gpl-3.0
- Created: 2023-09-28T07:54:35.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-10-02T04:58:09.000Z (over 2 years ago)
- Last Synced: 2025-03-28T17:08:07.551Z (about 1 year ago)
- Topics: c, cli, password, random, random-generator, random-password
- Language: C
- Homepage:
- Size: 20.5 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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
```shell
./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: