aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile5
-rw-r--r--README.md13
-rw-r--r--password.c4
3 files changed, 19 insertions, 3 deletions
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 <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); **/
}