2021-08-22 13:34:10 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, openssl, autoreconfHook }:
|
2013-02-17 13:44:54 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2021-07-27 14:21:24 +00:00
|
|
|
pname = "apg";
|
2021-08-22 13:34:10 +00:00
|
|
|
version = "unstable-2015-01-29";
|
2021-07-27 14:21:24 +00:00
|
|
|
|
2021-08-22 13:34:10 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "wilx";
|
|
|
|
repo = "apg";
|
|
|
|
rev = "7ecdbac79156c8864fa3ff8d61e9f1eb264e56c2";
|
|
|
|
sha256 = "sha256-+7TrJACdm/i/pc0dsp8edEIOjx8cip+x0Qc2gONajSE=";
|
2013-02-17 13:44:54 +00:00
|
|
|
};
|
2013-07-24 10:27:06 +00:00
|
|
|
|
2021-08-22 13:34:10 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook ];
|
2018-01-04 05:47:29 +00:00
|
|
|
|
2021-08-22 13:34:10 +00:00
|
|
|
buildInputs = [ openssl ];
|
2013-02-17 13:44:54 +00:00
|
|
|
|
|
|
|
meta = {
|
2013-10-05 14:22:46 +00:00
|
|
|
description = "Tools for random password generation";
|
2013-02-17 13:44:54 +00:00
|
|
|
longDescription = ''
|
|
|
|
APG (Automated Password Generator) is the tool set for random
|
|
|
|
password generation.
|
|
|
|
|
|
|
|
Standalone version
|
|
|
|
|
|
|
|
Generates some random words of required type and prints them
|
|
|
|
to standard output.
|
|
|
|
|
|
|
|
Network version
|
|
|
|
|
|
|
|
APG server: When client's request is arrived generates some
|
|
|
|
random words of predefined type and send them to client over
|
|
|
|
the network (according to RFC0972).
|
|
|
|
|
|
|
|
APG client: Sends the password generation request to the APG
|
|
|
|
server, wait for generated Passwords arrival and then prints
|
|
|
|
them to the standard output.
|
|
|
|
|
|
|
|
Advantages
|
|
|
|
|
|
|
|
* Built-in ANSI X9.17 RNG (Random Number Generator) (CAST/SHA1)
|
|
|
|
* Built-in password quality checking system (it has support for
|
|
|
|
Bloom filter for faster access)
|
|
|
|
* Two Password Generation Algorithms:
|
|
|
|
1. Pronounceable Password Generation Algorithm (according to
|
|
|
|
NIST FIPS 181)
|
|
|
|
2. Random Character Password Generation Algorithm with 35
|
|
|
|
configurable modes of operation
|
|
|
|
* Configurable password length parameters
|
|
|
|
* Configurable amount of generated passwords
|
|
|
|
* Ability to initialize RNG with user string
|
|
|
|
* Support for /dev/random
|
|
|
|
* Ability to crypt() generated passwords and print them as
|
|
|
|
additional output
|
|
|
|
* Special parameters to use APG in script
|
|
|
|
* Ability to log password generation requests for network version
|
|
|
|
* Ability to control APG service access using tcpd
|
|
|
|
* Ability to use password generation service from any type of box
|
|
|
|
(Mac, WinXX, etc.) that connected to network
|
|
|
|
* Ability to enforce remote users to use only allowed type of
|
|
|
|
password generation
|
|
|
|
'';
|
2021-08-22 13:34:10 +00:00
|
|
|
homepage = "https://github.com/wilx/apg";
|
2021-01-15 09:19:50 +00:00
|
|
|
license = lib.licenses.bsd3;
|
|
|
|
maintainers = with lib.maintainers; [ astsmtl ];
|
|
|
|
platforms = lib.platforms.unix;
|
2013-02-17 13:44:54 +00:00
|
|
|
};
|
|
|
|
}
|