1 helpnode "Srpcrypt help\nUsage : srpcrypt [options]"
4 option (u,username) STR "username" { $username = $1 } "specify username."
7 option (p, passwd) STR "FILE" { $passwd = $1 } "specify a password file."
10 option (i, index) INT "INDEX" { $index = $1 } "specify the index of the parameters in tpasswd.conf to use."
13 option (c, crypt) STR "CRYPT" { $crypt = $1 } "specify crypt algorithm (bcrypt/srpsha)."
16 option (s, salt) INT "SALT" { $salt = $1 } "specify salt/cost size for crypt algorithm."
19 option (verify) { $verify = 1 } "just verify password."
22 option ( passwd_conf) STR "FILE" { $passwd_conf = $1 } "specify a password conf file."
25 option ( create_conf) STR "FILE" { $create_conf = $1 } "Generate a tpasswd.conf file."
28 option (bits) INT "BITS" { $bits = $1 } "specify the number of bits for prime numbers (used only when create_conf option is specified)."
30 option (h, help) { gaa_help(); exit(0); } "shows this help text"
32 init { $username=NULL; $passwd=NULL; $crypt=NULL; $salt=0;
33 $create_conf=NULL; $passwd_conf=NULL; $verify = 0; $bits=1040;