2020-10-22 12:48:54 +00:00
|
|
|
# passwdgen
|
|
|
|
### a rudimentary random string password generator
|
|
|
|
|
2024-02-15 21:54:52 +00:00
|
|
|
For demo purposes only
|
2024-02-23 20:31:03 +00:00
|
|
|
|
|
|
|
## Build
|
|
|
|
|
|
|
|
**Bare Bones**
|
|
|
|
```bash
|
|
|
|
mkdir build
|
|
|
|
g++ -o build/passwdgen ./passwdgen.cpp
|
|
|
|
```
|
|
|
|
|
|
|
|
**From CMAKE**
|
|
|
|
```bash
|
|
|
|
mkdir build
|
|
|
|
cd build
|
|
|
|
cmake ..
|
|
|
|
make
|
|
|
|
```
|
|
|
|
|
|
|
|
Then, just copy the compiled binary to somewhere on your $PATH
|
2025-09-05 11:43:46 +00:00
|
|
|
|
|
|
|
## Testing
|
|
|
|
|
|
|
|
To run the tests:
|
|
|
|
```bash
|
|
|
|
mkdir build
|
|
|
|
cd build
|
|
|
|
cmake ..
|
|
|
|
make
|
|
|
|
ctest
|
|
|
|
```
|
|
|
|
|
|
|
|
or directly:
|
|
|
|
```bash
|
|
|
|
./tests/passwdgen_test
|
|
|
|
```
|