Okay, I am posting a link to this awesome example of DPAPI (Data
Protection API) for C# and VB.net, mainly for my own reference. If you
want to encrypt data in web.config files on shared servers, this is the
way to do it.
Thanks to Julie Lerman for making me aware of DPAPI.