|
All checks were successful
CMake / build (push) Successful in 42s
- Enhance CLI handling in main.cpp with better error messages, default length as size_t, and proper option validation - Simplify special characters in passwdgen.cpp to a safer, common subset |
||
|---|---|---|
| .gitea/workflows | ||
| include | ||
| src | ||
| tests | ||
| .gitignore | ||
| CMakeLists.txt | ||
| README.md | ||
passwdgen
a rudimentary random string password generator
For demo purposes only
Build
Bare Bones
mkdir build
g++ -o build/passwdgen ./passwdgen.cpp
From CMAKE
mkdir build
cd build
cmake ..
make
Then, just copy the compiled binary to somewhere on your $PATH
Testing
To run the tests:
mkdir build
cd build
cmake ..
make
ctest
or directly:
./tests/passwdgen_test