2 Commits

Author SHA1 Message Date
Adel I. Mirzazhanov
99c6b68aa3 APG v2.2.3 2023-07-12 15:50:37 +06:00
Adel I. Mirzazhanov
1fa1647408 APG v2.2.2 2023-07-12 15:47:01 +06:00
5 changed files with 86 additions and 74 deletions

View File

@@ -1,3 +1,12 @@
apg-2.2.3
Fixed version info (-v).
apg-2.2.2
Fixed permissions for source distribution.
apg-2.2.1
Changed manpages of apg and apgd.
apg-2.2.0 apg-2.2.0
Added polish translation for APG PHP frontend. Added polish translation for APG PHP frontend.
Added option -p (see apg(1) apgd(8)). Added option -p (see apg(1) apgd(8)).

4
apg.c
View File

@@ -39,9 +39,9 @@
#include <time.h> #include <time.h>
#ifndef APG_USE_SHA #ifndef APG_USE_SHA
#define APG_VERSION "2.2.0 (PRNG: X9.17/CAST)" #define APG_VERSION "2.2.3 (PRNG: X9.17/CAST)"
#else /* APG_USE_SHA */ #else /* APG_USE_SHA */
#define APG_VERSION "2.2.0 (PRNG: X9.17/SHA-1)" #define APG_VERSION "2.2.3 (PRNG: X9.17/SHA-1)"
#endif /* APG_USE_SHA */ #endif /* APG_USE_SHA */
#ifdef __NetBSD__ #ifdef __NetBSD__

View File

@@ -35,7 +35,7 @@
#include "getopt.h" #include "getopt.h"
#define VERSION "2.2.0" #define VERSION "2.2.3"
#define FOUND "FOUND" #define FOUND "FOUND"

View File

@@ -2,7 +2,7 @@
.\" Licensed under BSD-like License. .\" Licensed under BSD-like License.
.\" Created by Adel I. Mirzazhanov .\" Created by Adel I. Mirzazhanov
.\" .\"
.TH APG 1 "2003 Jun 19" "Automated Password Generator" "User Manual" .TH APG 1 "2003 Aug 04" "Automated Password Generator" "User Manual"
.SH NAME .SH NAME
apg apg
\- generates several random passwords \- generates several random passwords
@@ -12,7 +12,8 @@ apg
[\fB-a algorithm\fP] [\fB-M mode\fP] [\fB-E char_string\fP] [\fB-a algorithm\fP] [\fB-M mode\fP] [\fB-E char_string\fP]
[\fB-n num_of_pass\fP] [\fB-m min_pass_len\fP] [\fB-x max_pass_len\fP] [\fB-n num_of_pass\fP] [\fB-m min_pass_len\fP] [\fB-x max_pass_len\fP]
[\fB-r\fP \fIdictfile\fP] [\fB-b\fP \fIfilter_file\fP] [\fB-p min_substr_len\fP] [\fB-r\fP \fIdictfile\fP] [\fB-b\fP \fIfilter_file\fP] [\fB-p min_substr_len\fP]
[\fB-s\fP] [\fB-c cl_seed\fP] [\fB-d\fP] [\fB-y\fP] [\fB-l\fP] [\fB-t\fP] [\fB-q\fP] [\fB-h\fP] [\fB-v\fP] [\fB-s\fP] [\fB-c cl_seed\fP] [\fB-d\fP] [\fB-y\fP] [\fB-l\fP] [\fB-t\fP]
[\fB-q\fP] [\fB-h\fP] [\fB-v\fP]
.PP .PP
.SH DESCRIPTION .SH DESCRIPTION
.B apg .B apg
@@ -73,13 +74,40 @@ name of Bloom filter file. In that dictionary you may place words
common words, etc. You even can use one of the dictionaries that come with common words, etc. You even can use one of the dictionaries that come with
.I dictionary password crackers. .I dictionary password crackers.
Bloom filter file should be created with \fBapgbfm\fP(1) utility included Bloom filter file should be created with \fBapgbfm\fP(1) utility included
in apg distribution. These checks are case sensitive. For example, if you want in apg distribution. In future releases I plan to implement some other
to reject word 'root', you should insert in \fIdictfile\fP words: root, Root,
RoOt, ... , ROOT. It is not the easiest way to check password quality, but
it is the most powerful way. In future releases I plan to implement some other
techniques to check passwords (like pattern check) just to make life easier. techniques to check passwords (like pattern check) just to make life easier.
.sp .sp
.SH "OPTIONS" .SH "OPTIONS"
.SS "Password generation modes options"
.TP
.B -a algorithm
use
.B algorithm
for password generation.
.RS
.B 0
- (default) pronounceable password generation
.br
.B 1
- random character password generation
.RE
.TP
.B -n num_of_pass
generate
.B num_of_pass
number of passwords. Default is 6.
.TP
.B -m min_pass_len
generate password with minimum length
.B min_pass_len.
If \fBmin_pass_len > max_pass_len\fP then \fBmax_pass_len = min_pass_len\fP.
Default minimum password length is 8.
.TP
.B -x max_pass_len
generate password with maximum length
.B max_pass_len.
If \fBmin_pass_len > max_pass_len\fP then \fBmax_pass_len = min_pass_len\fP.
Default maximum password length is 10.
.TP .TP
.B -M mode .B -M mode
Use symbolsets specified with \fBmode\fP for password generation. Use symbolsets specified with \fBmode\fP for password generation.
@@ -130,18 +158,6 @@ Usage of L, M, N, C will slow down password generation process.
\fB-M sncl\fP or \fB-M SNCL\fP or \fB-M Cn\fP \fB-M sncl\fP or \fB-M SNCL\fP or \fB-M Cn\fP
.RE .RE
.TP .TP
.B -a algorithm
use
.B algorithm
for password generation.
.RS
.B 0
- (default) pronounceable password generation
.br
.B 1
- random character password generation
.RE
.TP
.B -E char_string .B -E char_string
exclude characters in \fBchar_string\fP from password generation process (in pronounceable exclude characters in \fBchar_string\fP from password generation process (in pronounceable
password generation mode you can not exclude small letters). To include special symbols that password generation mode you can not exclude small letters). To include special symbols that
@@ -151,7 +167,7 @@ the backslashed versions.
.PP .PP
.B Examples: .B Examples:
.PP .PP
Command \fBapg -a 1 -M n -n 3 -m 8 -e 23456789\fP will generate a set of passwords that Command \fBapg -a 1 -M n -n 3 -m 8 -E 23456789\fP will generate a set of passwords that
will look like this will look like this
.br .br
\fB10100110\fP \fB10100110\fP
@@ -161,7 +177,7 @@ will look like this
\fB11011101\fP \fB11011101\fP
.br .br
.PP .PP
Command \fBapg -a 1 -M nc -n 3 -m 26 -e GHIJKLMNOPQRSTUVWXYZ\fP will generate a set of passwords Command \fBapg -a 1 -M nc -n 3 -m 26 -E GHIJKLMNOPQRSTUVWXYZ\fP will generate a set of passwords
that will look like this that will look like this
.br .br
\fB16A1653CD4DE5E7BD9584A3476\fP \fB16A1653CD4DE5E7BD9584A3476\fP
@@ -171,6 +187,7 @@ that will look like this
\fB8C8DF37CD792D36D056BBD5002\fP \fB8C8DF37CD792D36D056BBD5002\fP
.br .br
.RE .RE
.SS "Password quality control options"
.TP .TP
.B -r \fIdictfile\fP .B -r \fIdictfile\fP
check generated passwords for their appearance in check generated passwords for their appearance in
@@ -188,6 +205,7 @@ be found in the \fIfilter_file\fP then generated password would be rejected
and apg(1) will generate another one. and apg(1) will generate another one.
\fBmin_substr_len\fP specifies minimum substring length to check. \fBmin_substr_len\fP specifies minimum substring length to check.
This option is active only if \fB-b\fP option is defined. This option is active only if \fB-b\fP option is defined.
.SS "Pseudo random number generator options"
.TP .TP
.B -s .B -s
ask user for random sequence for password generation ask user for random sequence for password generation
@@ -197,28 +215,13 @@ use
.B cl_seed .B cl_seed
as a random seed for password generation. I use it when i have to generate as a random seed for password generation. I use it when i have to generate
passwords in a shell script. passwords in a shell script.
.SS "Password output options"
.br
.TP .TP
.B -d .B -d
do NOT use any delimiters between generated passwords. I use it when i have to generate do NOT use any delimiters between generated passwords. I use it when i have to generate
passwords in a shell script. passwords in a shell script.
.TP .TP
.B -n num_of_pass
generate
.B num_of_pass
number of passwords. Default is 6.
.TP
.B -m min_pass_len
generate password with minimum length
.B min_pass_len.
If \fBmin_pass_len > max_pass_len\fP then \fBmax_pass_len = min_pass_len\fP.
Default minimum password length is 8.
.TP
.B -x max_pass_len
generate password with maximum length
.B max_pass_len.
If \fBmin_pass_len > max_pass_len\fP then \fBmax_pass_len = min_pass_len\fP.
Default maximum password length is 10.
.TP
.B -y .B -y
print generated passwords and crypted passwords (see man \fBcrypt\fP(3)) print generated passwords and crypted passwords (see man \fBcrypt\fP(3))
.TP .TP

View File

@@ -2,7 +2,7 @@
.\" Licensed under BSD-like License. .\" Licensed under BSD-like License.
.\" Created by Adel I. Mirzazhanov .\" Created by Adel I. Mirzazhanov
.\" .\"
.TH APGD 8 "2003 Jun 19" "Automated Password Generator" "User Manual" .TH APGD 8 "2003 Aug 4" "Automated Password Generator" "User Manual"
.SH NAME .SH NAME
apgd apgd
\- server that generates several random passwords \- server that generates several random passwords
@@ -88,10 +88,7 @@ name of Bloom filter file. In that dictionary you may place words
common words, etc. You even can use one of the dictionaries that come with common words, etc. You even can use one of the dictionaries that come with
.I dictionary password crackers. .I dictionary password crackers.
Bloom filter file should be created with \fBapgbfm\fP(1) utility included Bloom filter file should be created with \fBapgbfm\fP(1) utility included
in apg distribution. These checks are case sensitive. For example, if you in apg distribution. In future releases I plan to implement some
want to reject word 'root', you should insert in \fIdictfile\fP words: root,
Root, RoOt, ... , ROOT. It is not the easiest way to check password quality,
but it is the most powerful way. In future releases I plan to implement some
other techniques to check passwords just to make life easier. other techniques to check passwords just to make life easier.
.PP .PP
.B apgd .B apgd
@@ -117,6 +114,36 @@ for internal debug information
See the \fBsyslogd\fP(8) and \fBsyslog.conf\fP(5) man pages for information on how to configure your syslog daemon. See the \fBsyslogd\fP(8) and \fBsyslog.conf\fP(5) man pages for information on how to configure your syslog daemon.
.sp .sp
.SH "OPTIONS" .SH "OPTIONS"
.SS "Password generation modes options"
.TP
.B -a algorithm
use
.B algorithm
for password generation.
.RS
.B 0
- (default) pronounceable password generation
.br
.B 1
- random character password generation
.RE
.TP
.B -n num_of_pass
generate
.B num_of_pass
number of passwords. Default is 6.
.TP
.B -m min_pass_len
generate password with minimum length
.B min_pass_len.
If \fBmin_pass_len > max_pass_len\fP then \fBmax_pass_len = min_pass_len\fP.
Default minimum password length is 8.
.TP
.B -x max_pass_len
generate password with maximum length
.B max_pass_len
If \fBmin_pass_len > max_pass_len\fP then \fBmax_pass_len = min_pass_len\fP.
Default maximum password length is 10.
.TP .TP
.B -M mode .B -M mode
Use symbolsets specified with \fBmode\fP for password generation. Use symbolsets specified with \fBmode\fP for password generation.
@@ -167,18 +194,6 @@ Usage of L, M, N, C will slow down password generation process.
\fB-M sncl\fP or \fB-M SNCL\fP or \fB-M Cn\fP \fB-M sncl\fP or \fB-M SNCL\fP or \fB-M Cn\fP
.RE .RE
.TP .TP
.B -a algorithm
use
.B algorithm
for password generation.
.RS
.B 0
- (default) pronounceable password generation
.br
.B 1
- random character password generation
.RE
.TP
.B -E char_string .B -E char_string
exclude characters in \fBchar_string\fP from password generation process (in pronounceable exclude characters in \fBchar_string\fP from password generation process (in pronounceable
password generation mode you can not exclude small letters). To include special symbols password generation mode you can not exclude small letters). To include special symbols
@@ -208,6 +223,7 @@ that will look like this
\fB8C8DF37CD792D36D056BBD5002\fP \fB8C8DF37CD792D36D056BBD5002\fP
.br .br
.RE .RE
.SS "Password quality control options"
.TP .TP
.B -r \fIdictfile\fP .B -r \fIdictfile\fP
check generated passwords for their appearance in check generated passwords for their appearance in
@@ -225,23 +241,7 @@ be found in the \fIfilter_file\fP then generated password would be rejected
and apg(1) will generate another one. and apg(1) will generate another one.
\fBmin_substr_len\fP is specifies minimum substring length to check. \fBmin_substr_len\fP is specifies minimum substring length to check.
This option is active only if \fB-b\fP option is defined. This option is active only if \fB-b\fP option is defined.
.TP .SS "Password output options"
.B -n num_of_pass
generate
.B num_of_pass
number of passwords. Default is 6.
.TP
.B -m min_pass_len
generate password with minimum length
.B min_pass_len.
If \fBmin_pass_len > max_pass_len\fP then \fBmax_pass_len = min_pass_len\fP.
Default minimum password length is 8.
.TP
.B -x max_pass_len
generate password with maximum length
.B max_pass_len
If \fBmin_pass_len > max_pass_len\fP then \fBmax_pass_len = min_pass_len\fP.
Default maximum password length is 10.
.TP .TP
.B -l .B -l
spell genetated passwords. Useful when you want to read generated password by telephone. spell genetated passwords. Useful when you want to read generated password by telephone.