Encrypt and Decrypt Data in ASP.NET

The ASP.NET CryptDecrypt sample demonstrates AES encrypting data using the provided key, then decrypting the encrypted data using the SymmetricCryptoStream included with PowerTCP SSL Sockets for .NET. This sample demonstrates encryption/decryption solely in memory (using a System.IO.MemoryStream) however, the SymmetricCryptoStream can be initialized with ANY type of .NET Framework Stream. For example intialize the SymmetricCryptoStream with a System.IO.FileStream to encrypt data and write it to a file, then read the data from the file to decrypt.

Launch the .NET Native Encryption/Decryption Sample Now!.

If you are interested in this sample be sure to see these links: