diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2016-09-09 15:58:17 +0300 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2016-09-09 15:58:17 +0300 |
commit | e4778f2082666eb5afbd762ac47aec7b1d1b5663 (patch) | |
tree | 17bf763185676336d11107a2dce4582b4820de38 | |
parent | a0d3f0a46dae1e1bab676215c15c57923286773f (diff) | |
download | rex-e4778f2082666eb5afbd762ac47aec7b1d1b5663.tar.gz rex-e4778f2082666eb5afbd762ac47aec7b1d1b5663.tar.bz2 |
Remove apparently useless "obfuscate" command
-rwxr-xr-x | rex.exp | 27 |
1 files changed, 0 insertions, 27 deletions
@@ -2501,30 +2501,6 @@ proc rex_editdb {} { editdb $dbname } -proc rex_obfuscate {} { - global argc - global argv - global argv0 - - ::getopt::parse \ - -usage {rex encrypt|obfuscate [WORD...]} \ - -docstring {Obfuscates words.} \ - -description {Prints each WORD in encrypted form, suitable for -storing as a password in the rex database file. - -Without arguments, prompts for a word and reads it from the tty. -} \ - argc argv {} - - if {$argc > 0} { - foreach arg $argv { - puts [passenc $arg] - } - } else { - puts [passenc [getans -echo "Password:"]] - } -} - # ####################################################################### # The game begins... # ####################################################################### @@ -2536,8 +2512,6 @@ set footer {COMMANDS are: login log in to a host list list available hostgroups or servers in a hostgroup edit edit rex database file - encrypt, obfuscate convert text to a form suitable for keeping passwords - in the rex database file Use `rex COMMAND --help', to obtain help for a particular COMMAND. @@ -2596,7 +2570,6 @@ switch -- $config(mode) { list rex_list edit rex_editdb encrypt - - obfuscate rex_obfuscate default { terror "unknown mode: $config(mode)" exit 1 |