From 1dea63bc263ccb8f35728d41e51804d01c7cc06d Mon Sep 17 00:00:00 2001 From: foswret Date: Sun, 22 Jun 2025 15:05:58 -0500 Subject: Added README.md and changed Makefile --- Makefile | 5 +++++ README.md | 13 +++++++++++++ password.c | 4 +--- 3 files changed, 19 insertions(+), 3 deletions(-) create mode 100644 README.md diff --git a/Makefile b/Makefile index 013d033..e7b7489 100644 --- a/Makefile +++ b/Makefile @@ -1,2 +1,7 @@ password: password.c gcc -o output password.c -lsodium +install: all + cp output spwdg + sudo mv spwdg /usr/bin +uninstall: + sudo rm /usr/bin/spwdg diff --git a/README.md b/README.md new file mode 100644 index 0000000..8443079 --- /dev/null +++ b/README.md @@ -0,0 +1,13 @@ +This is a simple password generator that I created because I was tired of thinking up of passwords. All randomness is produced by the [libsodium](https://github.com/jedisct1/libsodium) library. +## Dependencies +- `make` +- `libsodium` + +## Install +- `make` +- `sudo make install` + +## Uninstall +- `sudo make uninstall` + + diff --git a/password.c b/password.c index e028b61..9912e5d 100644 --- a/password.c +++ b/password.c @@ -1,5 +1,3 @@ -// https://github.com/dwyl/english-words - #include #include #include @@ -82,7 +80,7 @@ int main (int argc, char **argv) { generate_characters(character_set); printf("\n"); - fseek(words, 0, SEEK_SET); // Reset pointer to beginning of file + fseek(words, 0, SEEK_SET); // Reset pointer to beginning of file // fclose(words); /** printf("LINE TOTAL: %li\n", line_total); **/ } -- cgit v1.2.3