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

when I installed vpnc, I created the file /etc/vpnc/example.cfg, so I don’t have to enter everything every time.

one of the lines is “Xauth password”, where I have to enter it in plain text. is there a way to encrypt it?

+3
source share
1 answer

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

Remember that an obfuscation password can be defoxed using a utility cisco-decrypt.

You can create an obfuscation password using a tool cisco-encryptthat you can build using the code provided here .

Do it like

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

(libgcrypt required)

+7

All Articles