diff options
author | foswret <foswret@posteo.com> | 2025-06-22 15:05:58 -0500 |
---|---|---|
committer | foswret <foswret@posteo.com> | 2025-06-22 15:05:58 -0500 |
commit | 1dea63bc263ccb8f35728d41e51804d01c7cc06d (patch) | |
tree | 2566b2e6305f893a43d1600f5a9bbd9e81625605 | |
parent | 240d446a809a69e5ea53f379621246b37d5b8fae (diff) |
Added README.md and changed Makefile
-rw-r--r-- | Makefile | 5 | ||||
-rw-r--r-- | README.md | 13 | ||||
-rw-r--r-- | password.c | 4 |
3 files changed, 19 insertions, 3 deletions
@@ -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` + + @@ -1,5 +1,3 @@ -// https://github.com/dwyl/english-words - #include <sodium/randombytes.h> #include <stdio.h> #include <stdlib.h> @@ -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); **/ } |