summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBertrand Jacquin (Beber) <beber.mailing@gmail.com>2006-08-23 20:13:15 +0200
committerbeber <beber@meathook.melee>2006-08-23 20:13:15 +0200
commit893b855545693218caa9662e0deea9defabb4b43 (patch)
treead664e39742fffa98a37d87ee9de4c1ef9c7b100
parentgit hooks: misc update (diff)
downloadperso-893b855545693218caa9662e0deea9defabb4b43.tar.gz
passgen: change mail and some output ..
Add a gitignore
-rw-r--r--passgen/.gitignore1
-rw-r--r--passgen/passgen.c7
2 files changed, 5 insertions, 3 deletions
diff --git a/passgen/.gitignore b/passgen/.gitignore
new file mode 100644
index 0000000..6fe038b
--- /dev/null
+++ b/passgen/.gitignore
@@ -0,0 +1 @@
+passgen
diff --git a/passgen/passgen.c b/passgen/passgen.c
index 7aa30f1..93a29b4 100644
--- a/passgen/passgen.c
+++ b/passgen/passgen.c
@@ -1,14 +1,15 @@
/*
* Developpe par Beber le 14 Avril 2003
* Source utilisable a toute fin souhaitee.
- * beber.cosmos@wanadoo.fr
+ * beber@meleeweb.net
*/
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
+#include <string.h>
-#define TAILLE_MAX 16
+#define TAILLE_MAX 9
#define TAILLE_MIN 6
#define CARTOUSE "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"
@@ -40,7 +41,7 @@ void gene_from_cartouse(int nb_char, char pass[])
void ecr(char pass[], int i)
{
- printf(">%d\t: %s\n",i+1,pass);
+ printf(">%*d (%ld)\t: \'%s\'\n", 2, i+1, strlen(pass), pass);
}
int main (int argc, char** argv)