.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

Encrypt It: Keep Your Data Secure with the New Advanced Encryption Standard

Posted By:      Posted Date: August 21, 2010    Points: 0   Category :ASP.Net

The Advanced Encryption Standard (AES) is a National Institute of Standards and Technology specification for the encryption of electronic data. It is expected to become the accepted means of encrypting digital information, including financial, telecommunications, and government data. This article presents an overview of AES and explains the algorithms it uses. Included is a complete C# implementation and examples of encrypting .NET data. After reading this article you will be able to encrypt data using AES, test AES-based software, and use AES encryption in your systems.

James McCaffrey

MSDN Magazine November 2003

View Complete Post

More Related Resource Links

Errors in the encryption library: Failed to encrypt sensitive data. Possibly the encryption key is i

Hi Experts,

While I was processing my CUBE, it prompts me this error:

Errors in the encryption library: Failed to encrypt sensitive data. Possibly the encryption key is inaccessible because of improper service account change.


it is deployed on SQL Server 2005 developer edition with SP2 which support Window Vista Ultimate.

Can anyone fix this?


Data Points: Standard Query Operators with LINQ


LINQ to Objects and LINQ to Entities have an arsenal of Standard Query Operators that operate on sequences to perform a wide variety of operations.

John Papa

MSDN Magazine March 2008

OPC: A New Standard For Packaging Your Data


Open Packaging Conventions (OPC) defines a structured means for storing application data together with related resources. Learn about the benefits here.

Jack Davis and Andrey Shur

MSDN Magazine August 2007

Trustworthy Code: Exchange Data More Securely with XML Signatures and Encryption


You can sign any kind of data using XML Signature, including part of an XML document, other XML documents, or other data of any format. However, in practice, XML signatures are most frequently used to sign other data represented in XML. In this article, the authors discuss the new standard and how you can benefit from it in your apps.

Mike Downen and Shawn Farkas

MSDN Magazine November 2004

XML in Yukon: New Version Showcases Native XML Type and Advanced Data Handling


The next version of Microsoft SQL Server, code-named "Yukon," represents quite a few steps forward in the evolution of XML integration. Yukon supports native storage of XML data using the XML data type, which makes it possible to run native queries on XML data using the emerging industry standard XQuery language. Data integrity of the XML data type can be enforced through schema validation and XML-based check constraints, and special indexes can be defined that help speed up queries. In addition, Yukon has the built-in ability to expose its data through Web services. This article discusses these and other XML features of Yukon.

Bob Beauchemin

MSDN Magazine February 2004

Advanced Basics: Data Binding in Visual Basic .NET


Ken Spencer introduces data binding in Visual Basic .NET.

Ken Spencer

MSDN Magazine August 2003

.NET Remoting: Secure Your .NET Remoting Traffic by Writing an Asymmetric Encryption Channel Sink


As .NET Remoting gains popularity in the enterprise space, it must meet business demands for trustworthy computing. Remoting traffic can be secured when objects are hosted in IIS, but when they aren't hosted in IIS, custom security solutions can be developed to secure them. This article provides an in-depth look at writing channel sinks for .NET. It also details the flow of data through custom channel sinks and explains the kinds of manipulations that can be performed on that data.

Stephen Toub

MSDN Magazine June 2003

Security in IIS 6.0: Innovations in Internet Information Services Let You Tightly Guard Secure Data


Security improvements have been a top priority in the evolution of IIS. IIS 6.0, which will be part of Windows .NET Server, has improved security features and a new approach to server configuration. New security-related tools for IIS, including IIS LockDown, make securing your server against attack easier than ever. The author explains how and why you can shut down services with IIS LockDown. He discusses limiting port access with TCP/IP filtering, controlling how files are served with extension mapping, what's new for Secure Sockets Layer, the use of URLScan, and more.

Wayne Berry

MSDN Magazine September 2002

RSA Data encryption

I was trying to encrypt  my data using RSA, but I got an CryptographicException "Key not valid for use in specified state". I search around the web and found this: http://social.msdn.microsoft.com/forums/en-US/clr/thread/4e3ada0a-bcaf-4c67-bdef-a6b15f5bfdce/ which suggested that RSA can only encrypt 245 bytes or less of data Does anyone one if there is a way round this? thanks

MS SQL Server 2005 Standard or Enterprise with default encryption

Hi, I wish to know whether or not by default MS SQL Server 2005 Std or Ent edition will encrypt the communication over the network by default? As, when we test out the database activity monitoring solution to capture the SQL traffics from the network, we are unable to see the DB user name and Source Program but SQL statements is able to seen. According to the vendor, it is due to the nature of MS SQL Server 2005 that encrypt the communication by default. But, why is it only encrypted the DB user name and Source Program but not the SQL statement? Can someone provide me the answer? Is that true what the vendor claims?   regards, Teh

PCI compliance - Transparent Data Encryption

I have been researching PCI compliance and SQL Server 2008.   I need to store credit card details in the database for a short period until the batch is closed.  One feature of SQL 2008 that keeps coming up over and over is Transparent Data Encryption.  One down side I see to Transparent Data Encryption is that we would need to bring in 3rd party software to manage the EKM and store the Asymmetric key(s).  I wanted to see what software people are using to manage their keys and get some general feedback on Transparent Data Encryption.  Thank you in advance for your time.   Cheers Ryan  

Encrypt in PHP, decrypt in ASP.NET - Encryption doesn't match


Hello all,

I have a problem decrypting a string in ASP.NET wich was encrypted at PHP. As a testcase, i tried to encrypt 'test' in ASP.NET and in PHP, using 3DES in cbc mode. But the encrypted values don't match :(. I want the values to match, so i know for sure i use the same encryption method. Please help me on this, I just don't understand how there are different values...

Here's the code i use in php: 

$cc = "test";

$key = pack("c*", 0x13, 0x56, 0x23, 0x15, 0x81, 0x28, 0x56, 0x51, 0x13, 0x56, 0x23, 0x15, 0x81, 0x28, 0x56, 0x52, 0x13, 0x56, 0x23, 0x15, 0x81, 0x28, 0x56, 0x51);
$iv = pack("c*", 0x42, 0x32, 0x84, 0x25, 0x79, 0x43, 0x11, 0x37);

      $block = mcrypt_get_block_size('tripledes', 'cbc');
      $len = strlen($cc);
      $padding = $block - ($len % $block);
      $cc .= str_repeat(chr($padding),$padding);

$cipher = mcrypt_module_open(MCRYPT_3DES,'','cbc','');
mcrypt_generic_init($cipher, $key, $iv);
$encrypted = mcrypt_generic($cipher,$cc);
echo base64_en

I have a newbe question about sql standard 2008, How do I merge 1 row of data from another DB to the


Hi everyone,

 I am new to data base type work. I have very little exsperience in database code. I set up an application that retrieves data from the UI that has four forms. The application calculates and modifies this data for storage in different fields in a database. The application itself is not very simple as to the operation of the print and rs232 operations. But I have all of that code written and have written code for updateing the local db with this information. I was able thru searches to find enough information to update the local db.

 I have not been able to find any code example for merging 1 row of data from one DB to another DB. That has the same data table and fields in both data bases.  Now these DB's are set up exactly same except for DB name and Table name. They have exactly the same field and column names. The only difference is the data in the primary key field, the database that is local builds two rows that the key field has the same data except for one letter and is build at different times. The remote data base has the same data in the key field except it does not have the letter at the end of the data.

 Local data base    Key                     Re

RSA Data encryption


I have an application the encrypt a username and password using RSA, and redirects to a second application on the same server. Does anyone know have to get the private key that was generate in the first application to the second application in order to decrypt it in the second application

a code snippet will be appreciated.  


ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend