A3logics interview question

How to encrypt/decrypt web.config application settings?