Password encyption in spark-sql

Hi,

Can any one explain how to pass the password in the encrypted format while connecting to database through spark.

Thanks
Krishnarddy