From 0c266f57925a71fdcecd4161abdb4f98b2fed902 Mon Sep 17 00:00:00 2001 From: Mitja HORVAT Date: Mon, 15 Nov 2021 01:16:28 +0100 Subject: [PATCH] c,python: Add '+' to the list of special characters --- c/passgeny/src/passgeny.c | 2 +- python/passgeny/passgeny.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/c/passgeny/src/passgeny.c b/c/passgeny/src/passgeny.c index 8558120..0ed238a 100644 --- a/c/passgeny/src/passgeny.c +++ b/c/passgeny/src/passgeny.c @@ -26,7 +26,7 @@ /* * List of special characters (order is important) */ -#define PASSGENY_SPECIAL "-./=_ " +#define PASSGENY_SPECIAL " +-./=_" /* * Argon2 parameters diff --git a/python/passgeny/passgeny.py b/python/passgeny/passgeny.py index 436c6d8..f23da94 100644 --- a/python/passgeny/passgeny.py +++ b/python/passgeny/passgeny.py @@ -13,7 +13,7 @@ from . import bhash, phogen PASSGENY_DEFAULT_PATTERN = "^6p^6p^6ps2p100d" # List of special characters -PASSGENY_SPECIAL = "-./=_ " +PASSGENY_SPECIAL = " +-./=_" # Default SALT to use; this cannot be random since passgeny must # generate predictable passwords