Encryption of the auth string in cmd tool

Is it possible to store authentication string in encrypted form as it is possible with the connection string for command line tools?