diff options
author | René Korthaus <[email protected]> | 2015-06-17 21:59:40 +0200 |
---|---|---|
committer | René Korthaus <[email protected]> | 2015-06-17 21:59:40 +0200 |
commit | 865f3f536a919e275a141d5185be09ac1cee85d2 (patch) | |
tree | f9da9ad24267021f0bdf4406a6309c7d6184fcf6 /src/cmd/keygen.cpp | |
parent | b0fc63ec42a99b570771925c102df676e494ae7f (diff) |
Increase default keysize to 2048 bit in keygen tool
The keygen tool would generate a 1024 bit RSA
key by default. As 1024 bit RSA is not considered
secure from todays standards, default keysize is
increased to 2048 bit.
Diffstat (limited to 'src/cmd/keygen.cpp')
-rw-r--r-- | src/cmd/keygen.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/keygen.cpp b/src/cmd/keygen.cpp index 99769a62f..846836ae7 100644 --- a/src/cmd/keygen.cpp +++ b/src/cmd/keygen.cpp @@ -80,7 +80,7 @@ int keygen(int argc, char* argv[]) opts.parse(argv); const std::string algo = opts.value_or_else("algo", "rsa"); - const size_t bits = opts.int_value_or_else("bits", 1024); + const size_t bits = opts.int_value_or_else("bits", 2048); const std::string pass = opts.value_or_else("passphrase", ""); const std::string pbe = opts.value_or_else("pbe", ""); |