aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2016-09-09 15:58:17 +0300
committerSergey Poznyakoff <gray@gnu.org.ua>2016-09-09 15:58:17 +0300
commite4778f2082666eb5afbd762ac47aec7b1d1b5663 (patch)
tree17bf763185676336d11107a2dce4582b4820de38
parenta0d3f0a46dae1e1bab676215c15c57923286773f (diff)
downloadrex-e4778f2082666eb5afbd762ac47aec7b1d1b5663.tar.gz
rex-e4778f2082666eb5afbd762ac47aec7b1d1b5663.tar.bz2
Remove apparently useless "obfuscate" command
-rwxr-xr-xrex.exp27
1 files changed, 0 insertions, 27 deletions
diff --git a/rex.exp b/rex.exp
index c323cd3..d1bc167 100755
--- a/rex.exp
+++ b/rex.exp
@@ -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

Return to:

Send suggestions and report system problems to the System administrator.