String Encryption With Visual Basic .NET
(Page 1 of 7 )
In this article Brian Patterson will cover some of the encryption classes provided in the .NET Framework. Once you have got a grasp on how to use these algorithms, he will wrap things up with a sample order application that will encrypt credit card information before saving it to either a SQL Server or Oracle database server.More often than not, you have the need to encrypt data in memory and then later save that data out to a database or just hang onto it for the duration of your application. If you have searched the various .NET help files, you may have encountered encryption examples that always deal with encrypting the contents of a file. This isn't very useful when you need to encrypt something that isn't already contained within a file - saving information to a file just to encrypt it and load it back it is rather ludicrous!
In this article I will cover some of the encryption class provided in the .NET Framework. Once you have got a grasp on how to use these algorithms, I will wrap things up with a sample order application that will encrypt credit card information before saving it to either a SQL Server or Oracle database server.
Requirements Before we get too involved there are a few things you should be familiar with to fully understand this article and get the most out of the sample application:
- Creating a default Windows Form Application
- Byte arrays
- SQLClient and/or the OleDB classes
- String conversion routines
You will also need access to a SQL Server 2000 or an Oracle 8i/9i Database Server with the appropriate access to create new databases.
Next: Encryption and the .NET Framework >>
More VB.Net Articles
More By Wrox Team