diff options
author | Nicholas Tay <nick@windblume.net> | 2022-01-14 00:14:00 +1100 |
---|---|---|
committer | Nicholas Tay <nick@windblume.net> | 2022-01-14 00:14:03 +1100 |
commit | 0f1bc3f8788bdbad88840cbbffc6d4787629c24e (patch) | |
tree | 0d7c75b5e86402fea5e36caa217a5a245ad11689 | |
parent | 85cceba21b3a92942fcae7578bd02c67fc97a1d0 (diff) | |
download | passgen-0f1bc3f8788bdbad88840cbbffc6d4787629c24e.tar.gz passgen-0f1bc3f8788bdbad88840cbbffc6d4787629c24e.tar.bz2 passgen-0f1bc3f8788bdbad88840cbbffc6d4787629c24e.zip |
Add some more default grammar combos
-rw-r--r-- | config.h | 19 |
1 files changed, 17 insertions, 2 deletions
@@ -7,9 +7,24 @@ * For vowels: * i, o excluded due to potentially confusing 1/l/i + 0/o * y included as a vowel because it kinda is one + * The real vowels are a separate class, 'x' just in case */ +#define ALPHABET "abcdefghijklmnopqrstuvwxyz" +#define NUMBERS "1234567890" +#define SYMBOLS "@#$%^&*_-+=()[]{}" #define CLASSES \ CLASS('v', "aeuy") \ CLASS('c', "bcdfghkmnprstvwxz") \ - CLASS('#', "1234567890") \ - CLASS('!', "@#$%^&*_-+=()[]{}") + CLASS('#', NUMBERS) \ + CLASS('!', SYMBOLS) \ + CLASS('l', ALPHABET) \ + CLASS('a', ALPHABET NUMBERS) \ + CLASS('b', ALPHABET NUMBERS SYMBOLS) \ + CLASS('x', "aeiou") + +/* + * Rationale for the combinations: + * l => 'letters' + * a => 'alphanumeric' + * b => 'all', but 'a' already taken so 'b' + */ |