开发者

how to encrypt vpnc Xauth password in /etc/vpn/example.cfg file?

when i set up vpnc, i created a /etc/vpnc/example.cfg file so that i don't have to enter everything every time.

one of the lines is "Xauth password " where i have to enter it in plai开发者_开发百科n text. is there a way to encrypt it?


You can use an obfuscated password. Use Xauth obfuscated password XXXXXX.

Remember that the obfuscated password can be deobfuscated with the cisco-decrypt utility.

You can create the obfuscated password with the cisco-encrypt tool, which you can build using the code provided here.

Do this like

gcc -o cisco-encrypt cisco-encrypt.c -lgcrypt

(requires libgcrypt)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜