开发者

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

开发者 https://www.devze.com 2023-02-15 09:51 出处:网络
when i set up vpnc, i created a /etc/vpnc/example.cfg file so that i don\'t have to enter everything every time.

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

精彩评论

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

关注公众号