Refer this
http://www.c-sharpcorner.com/Forums/Thread/180590/how-to-encrypt-the-data-to-insert-into-sql-database-and.aspx