How to mount a SAMBA shared folder from linux client machine using encrypted password?

view story

http://serverfault.com – I am trying to setup an auto-mounting network drive. The network drive requires a user/pass. In the man page for "mount.cifs" there are two ways to provide the user/pass. 1-[not recommended] put the user/pass in /etc/fstab 2-create a separate credentials file and put the user/pass in the credentials file cat /etc/fstab // /imp/sql cifs credentials=/root/credentials The file credentials contain the user name and password ( root user can read this file). and the password is stored as a plain text. My question is how to use password encryption in CIFS/SAMBA? (HowTos)