Mercurial > p > roundup > code
comparison roundup/configuration.py @ 4486:693c75d56ebe
Add new config-option 'password_pbkdf2_default_rounds'...
...in 'main' section to configure the default parameter for new
password generation. Set this to a higher value on faster systems
which want more security. Thanks to Eli Collins for implementing this
(see issue2550688).
This now passes a config object (default None in which case we fall back
to hard-coded parameters) into the password generation routine. This way
we can add further parameters for password generation in the future.
Also added a small regression test for this new feature.
| author | Ralf Schlatterbeck <schlatterbeck@users.sourceforge.net> |
|---|---|
| date | Fri, 15 Apr 2011 08:09:59 +0000 |
| parents | 52e13bf0bb40 |
| children | d483a40e2f82 |
comparison
equal
deleted
inserted
replaced
| 4485:95aace124a8e | 4486:693c75d56ebe |
|---|---|
| 535 "format is a csv (comma separated values) variant. The csv\n" | 535 "format is a csv (comma separated values) variant. The csv\n" |
| 536 "reader has a limit on the size of individual fields\n" | 536 "reader has a limit on the size of individual fields\n" |
| 537 "starting with python 2.5. Set this to a higher value if you\n" | 537 "starting with python 2.5. Set this to a higher value if you\n" |
| 538 "get the error 'Error: field larger than field limit' during\n" | 538 "get the error 'Error: field larger than field limit' during\n" |
| 539 "import."), | 539 "import."), |
| 540 (IntegerNumberOption, 'password_pbkdf2_default_rounds', '10000', | |
| 541 "Sets the default number of rounds used when encoding passwords\n" | |
| 542 "using the PBKDF2 scheme. Set this to a higher value on faster\n" | |
| 543 "systems which want more security."), | |
| 540 )), | 544 )), |
| 541 ("tracker", ( | 545 ("tracker", ( |
| 542 (Option, "name", "Roundup issue tracker", | 546 (Option, "name", "Roundup issue tracker", |
| 543 "A descriptive name for your roundup instance."), | 547 "A descriptive name for your roundup instance."), |
| 544 (Option, "web", NODEFAULT, | 548 (Option, "web", NODEFAULT, |
