阅读背景:

在bash脚本中解密密码

来源:互联网 

I'd like to prepare a simple script for connecting to some VPN network. The password to the network consists of two elements: pretty complicated pass + randomized token. I don't want to remember this password but store it encrypted in some secure directory. Now, the script I need should ask me for a passphrase and some token, read decrypt a pass from a file and run some commands. All those are pretty easy except one thing: is it possible to decrypt a file to a variable instead of file? I mean I'd like to get something likeI'd like to prepare a simple script for connect




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: