Merge pull request #1 from calllivecn/master

添加密码输入隐藏
This commit is contained in:
ddv12138 2017-11-14 21:12:57 +08:00 committed by GitHub
commit b561ddfe2d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,8 +1,16 @@
#!/bin/bash
getpass(){
stty -echo
read -p "输入密码:" passwd
stty echo
}
set -e
echo "输入端口号" && read port
echo "输入密码" && read passwd
getpass
echo "输入容器名" && read name
method=('aes-128-ctr' 'aes-192-ctr' 'aes-256-ctr' 'aes-128-cfb' 'aes-192-cfb' 'aes-256-cfb' 'bf-cfb' 'camellia-128-cfb' 'camellia-192-cfb' 'camellia-256-cfb' 'chacha20' 'chacha20-ietf' 'rc4-md5' 'salsa20')