Encrypting a File Using .NET Mississippi

Our "Tacit Records" columnist shows you how .NET's cryptographic support works using the Cryptostream class, which you can implement within either C# or Visual Basic. Here's how to get started.

Local Companies

i.t.works
(601) 264-0969
6641 hwy 98 west
hattiesburg, MS
H Pn Consulting Group
(601) 957-3470
875 Northpark Dr
Jackson, MS
Premise Inc
(601) 579-9475
7 Woodstone Plz Ste 6
Hattiesburg, MS
Integrated Concepts and Research Corp
(601) 636-6616
3516 Manor Dr
Vicksburg, MS
Grayco Systems
(601) 583-0430
201 Campbell Loop
Hattiesburg, MS
Driver Technology Consulting, LLC
601 316-1692
445 Greenmont Drive
Jackson, MS
Micro-Sped
(662) 455-1967
400 E Washington St
Greenwood, MS
Scruggs & Associates
(601) 426-3419
542 Central Ave
Laurel, MS
Cisco Systems
(601) 957-5132
Jackson, MS
World Class Computers & Associates
(601) 376-0910
Jackson, MS

provided by: 
Originally published at Internet.com


Part of .NET's security framework is cryptographic support, and the System.Security.Cryptography namespace is the library that supports cryptographic operations. This namespace supports encryption, digital signatures, random number generations, hashing, and secure encoding and decoding. It implements these operations using common cryptographic algorithms, namely RSA, DSA, Rijandel, Triple DES, RC2, MD5, and the SHA family (SHA1, 256, 384, and 512).

Tom Gutschmidt

One class within System.Security.Cryptography, CryptoStream, is provided to encrypt or decrypt content as it is streamed out into a file. Cryptostream defines a stream that links data to cryptographic transformations. Microsoft provides full code versions for implementing CryptoStream within C# or Visual Basic. Following their examples, encrypting a file using CryptoStream is straightforward.

First the System.Security.Cryptography needs to be included, and then a key for encryption or decryption needs to be created or declared. The key must be a constant, and contained within a class or module. There are also other restrictions based on which algorithm is being used...

Read article at Internet.com site

Featured Local Company

Driver Technology Consulting, LLC

601 316-1692
445 Greenmont Drive
Jackson, MS
http://www.dtc-ms.com

Regional Articles
- Encrypting a File Using .NET Bay Saint Louis MS
- Encrypting a File Using .NET Biloxi MS
- Encrypting a File Using .NET Booneville MS
- Encrypting a File Using .NET Brandon MS
- Encrypting a File Using .NET Byhalia MS
- Encrypting a File Using .NET Clarksdale MS
- Encrypting a File Using .NET Clinton MS
- Encrypting a File Using .NET Columbus MS
- Encrypting a File Using .NET Corinth MS
- Encrypting a File Using .NET Gautier MS
- Encrypting a File Using .NET Greenville MS
- Encrypting a File Using .NET Greenwood MS
- Encrypting a File Using .NET Grenada MS
- Encrypting a File Using .NET Gulfport MS
- Encrypting a File Using .NET Hattiesburg MS
- Encrypting a File Using .NET Hernando MS
- Encrypting a File Using .NET Holly Springs MS
- Encrypting a File Using .NET Horn Lake MS
- Encrypting a File Using .NET Jackson MS
- Encrypting a File Using .NET Laurel MS
- Encrypting a File Using .NET Lucedale MS
- Encrypting a File Using .NET Mccomb MS
- Encrypting a File Using .NET Meridian MS
- Encrypting a File Using .NET Moss Point MS
- Encrypting a File Using .NET Natchez MS
- Encrypting a File Using .NET Ocean Springs MS
- Encrypting a File Using .NET Olive Branch MS
- Encrypting a File Using .NET Oxford MS
- Encrypting a File Using .NET Pascagoula MS
- Encrypting a File Using .NET Pass Christian MS
- Encrypting a File Using .NET Pearl MS
- Encrypting a File Using .NET Petal MS
- Encrypting a File Using .NET Picayune MS
- Encrypting a File Using .NET Pontotoc MS
- Encrypting a File Using .NET Ridgeland MS
- Encrypting a File Using .NET Southaven MS
- Encrypting a File Using .NET Starkville MS
- Encrypting a File Using .NET Tupelo MS
- Encrypting a File Using .NET Vicksburg MS
- Encrypting a File Using .NET West Point MS
- Encrypting a File Using .NET Yazoo City MS
Related Articles
- Custom MSBuild Task Development with Visual C++ Mississippi
Visual C++ 2010 sees the integration of MSBuild with Visual C++. MSBuild is Microsoft's common build engine and one of its key design goals is the ability to support a high-degree of flexibility in customizing the build process. See how a custom MSBuild task can be built in Visual C++, and how the task can be used to customize the build process of other Visual C++ 2010 projects.
- Microsoft Scripting Runtime in Visual Basic 6 Mississippi
- Creating Word Documents by Using C# and XML Mississippi
- Creating statically linked, non-MFC DLLs Mississippi
- Configuring a ClickOnce Deployment Mississippi
- Get VersionInfo from resource file Mississippi
- Using the Visual Studio 6.0 Driver Build Environment Mississippi
- MSBuild Features for Visual C++ Mississippi
- An Active Server Pages Tutorial, Part 1 Mississippi
- Interacting with .NET WinForms, Part 1 Mississippi
Related Local Event
OCEANS 2009
Dates: 10/27/2009 - 10/29/2009
Location: Mississippi Coast Coliseum and Convention Center
Biloxi, MS
View Details

Topics: 
Architecture & Design Languages & Tools Project Management Web Services
Database Microsoft & .NET Security Wireless
Java Open Source Techniques XML