diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2012-04-11 21:30:12 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2012-04-11 21:30:12 -0300 |
commit | 860e1b32f99702b099ef6ae6213174d8709fe4b3 (patch) | |
tree | a46f14843908c33d433c1aa91ee8c6efd4c64c8b | |
parent | e279e7e4951087c3e5d29d19602057000f455a41 (diff) | |
download | firma-860e1b32f99702b099ef6ae6213174d8709fe4b3.tar.gz firma-860e1b32f99702b099ef6ae6213174d8709fe4b3.tar.bz2 |
Setting 4096 as default key size
-rwxr-xr-x | firma | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -1182,8 +1182,8 @@ function NewList { while true; do echo " Please choose a key size:" echo " 1 - 1024" - echo " 2 - 2048 (default)" - echo " 3 - 4096" + echo " 2 - 2048" + echo " 3 - 4096 (default)" read -rep " Please choose a key size or 'quit' to exit: " answer answer="$(echo $answer | tr '[:lower:]' '[:upper:]')" if [[ "$answer" == "QUIT" ]]; then @@ -1195,10 +1195,10 @@ function NewList { elif [[ "$answer" == "1" || "$answer" == "1024" ]]; then KEY_SIZE="1024" break - elif [[ -z "$answer" || "$answer" == "2" || "$answer" == "2048" ]]; then + elif [[ "$answer" == "2" || "$answer" == "2048" ]]; then KEY_SIZE="2048" break - elif [[ "$answer" == "3" || "$answer" == "4096" ]]; then + elif [[ -z "$answer" || "$answer" == "3" || "$answer" == "4096" ]]; then KEY_SIZE="4096" break else @@ -1253,7 +1253,7 @@ function NewList { $GPG --gen-key <<EOF Key-Type: DSA - Key-Length: 1024 + Key-Length: $KEY_SIZE Subkey-Type: ELG-E Subkey-Length: $KEY_SIZE |