.net comes with cryptography in the System.Security.Cryptography namespace. The examples on this page are helpful:
http://msdn.microsoft.com/en-us/library/system.security.cryptography.aesmanaged.aspx