Encrypting a File Using .NET Illinois

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

InterraIT
(630) 873-3525
Two Mid America Plaza
Oakbrook Terrace, IL
Quantum Design (Quantum Software Solutions)
815-885-1300
8400 E. Riverside Blvd
Rockford, IL
DMi Technology Group
(309) 828-4439
406 Kays Drive
Normal, IL
Stellar Systems, Inc
(309) 677-7350
222 NE Monroe St. #902
Peoria, IL
IFS
888-437-4968
300 Park Boulevard, Suite 555
Itasca, IL
Softweb Solutions
866-345-7638
5707 Breezeland Road
Chicago, IL
StrategicSytems International
+1.847.424.2497
820 Davis Street,
Evanston, IL
STL Technology Partners
(309) 699-6389
630 High Point Lane
East Peoria, IL
IT360, Inc.
(309) 283-2915
311 SW Water Street
Peoria, IL
Stellar Systems, Inc.
(309) 677-7350
222 NE Monroe St. #902
Peoria, IL

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

Softweb Solutions

866-345-7638
5707 Breezeland Road
Chicago, IL
http://www.softwebsolutions.com

Softweb Solutions is a prominent name in providing exclusive software development services for SMEs, specializing in custom application development, website development, system integration and software testing and quality assurance, with industry-specific software expertise in High-Technology, Software, Automotive, Financial Services and Entertainment sectors.

Related Articles
- MSBuild Features for Visual C++ Illinois
MSBuild is the build platform that Microsoft is using across all developer and related tools moving forward. Visual C++ is the last major compiler offering from Microsoft to move onto the MSBuild platform, with the Visual C++ 2010 release using MSBuild as its native project format. Explore the MSBuild basics from a C++ perspective, and see how it can improve your build process.
- Configuring a ClickOnce Deployment Illinois
- Get VersionInfo from resource file Illinois
- Using the Visual Studio 6.0 Driver Build Environment Illinois
- Interacting with .NET WinForms, Part 1 Illinois
- Creating statically linked, non-MFC DLLs Illinois
- An Active Server Pages Tutorial, Part 1 Illinois
- Microsoft Scripting Runtime in Visual Basic 6 Illinois
- Custom MSBuild Task Development with Visual C++ Illinois
- Creating Word Documents by Using C# and XML Illinois
Regional Articles
- Encrypting a File Using .NET Addison IL
- Encrypting a File Using .NET Algonquin IL
- Encrypting a File Using .NET Alsip IL
- Encrypting a File Using .NET Alton IL
- Encrypting a File Using .NET Arlington Heights IL
- Encrypting a File Using .NET Aurora IL
- Encrypting a File Using .NET Barrington IL
- Encrypting a File Using .NET Bartlett IL
- Encrypting a File Using .NET Batavia IL
- Encrypting a File Using .NET Belleville IL
- Encrypting a File Using .NET Bellwood IL
- Encrypting a File Using .NET Belvidere IL
- Encrypting a File Using .NET Bensenville IL
- Encrypting a File Using .NET Berwyn IL
- Encrypting a File Using .NET Bloomingdale IL
- Encrypting a File Using .NET Bloomington IL
- Encrypting a File Using .NET Blue Island IL
- Encrypting a File Using .NET Bolingbrook IL
- Encrypting a File Using .NET Bourbonnais IL
- Encrypting a File Using .NET Bridgeview IL
- Encrypting a File Using .NET Buffalo Grove IL
- Encrypting a File Using .NET Calumet City IL
- Encrypting a File Using .NET Carbondale IL
- Encrypting a File Using .NET Carol Stream IL
- Encrypting a File Using .NET Carpentersville IL
- Encrypting a File Using .NET Champaign IL
- Encrypting a File Using .NET Chicago Heights IL
- Encrypting a File Using .NET Chicago IL
- Encrypting a File Using .NET Cicero IL
- Encrypting a File Using .NET Clarendon Hills IL
- Encrypting a File Using .NET Collinsville IL
- Encrypting a File Using .NET Country Club Hills IL
- Encrypting a File Using .NET Crete IL
- Encrypting a File Using .NET Crystal Lake IL
- Encrypting a File Using .NET Danville IL
- Encrypting a File Using .NET Decatur IL
- Encrypting a File Using .NET Deerfield IL
- Encrypting a File Using .NET Dekalb IL
- Encrypting a File Using .NET Des Plaines IL
- Encrypting a File Using .NET Dolton IL
- Encrypting a File Using .NET Downers Grove IL
- Encrypting a File Using .NET East Moline IL
- Encrypting a File Using .NET East Peoria IL
- Encrypting a File Using .NET East Saint Louis IL
- Encrypting a File Using .NET Edwardsville IL
- Encrypting a File Using .NET Effingham IL
- Encrypting a File Using .NET Elgin IL
- Encrypting a File Using .NET Elk Grove Village IL
- Encrypting a File Using .NET Elmhurst IL
- Encrypting a File Using .NET Elmwood Park IL
- Encrypting a File Using .NET Evanston IL
- Encrypting a File Using .NET Evergreen Park IL
- Encrypting a File Using .NET Fairview Heights IL
- Encrypting a File Using .NET Franklin Park IL
- Encrypting a File Using .NET Freeport IL
- Encrypting a File Using .NET Galesburg IL
- Encrypting a File Using .NET Glen Ellyn IL
- Encrypting a File Using .NET Glendale Heights IL
- Encrypting a File Using .NET Glenview IL
- Encrypting a File Using .NET Godfrey IL
- Encrypting a File Using .NET Granite City IL
- Encrypting a File Using .NET Grayslake IL
- Encrypting a File Using .NET Gurnee IL
- Encrypting a File Using .NET Harvey IL
- Encrypting a File Using .NET Harwood Heights IL
- Encrypting a File Using .NET Hazel Crest IL
- Encrypting a File Using .NET Highland Park IL
- Encrypting a File Using .NET Hinsdale IL
- Encrypting a File Using .NET Homewood IL
- Encrypting a File Using .NET Jacksonville IL
- Encrypting a File Using .NET Joliet IL
- Encrypting a File Using .NET Kankakee IL
- Encrypting a File Using .NET Kewanee IL
- Encrypting a File Using .NET La Grange IL
- Encrypting a File Using .NET Lake Bluff IL
- Encrypting a File Using .NET Lake Villa IL
- Encrypting a File Using .NET Lake Zurich IL
- Encrypting a File Using .NET Lansing IL
- Encrypting a File Using .NET Lemont IL
- Encrypting a File Using .NET Libertyville IL
- Encrypting a File Using .NET Lisle IL
- Encrypting a File Using .NET Lockport IL
- Encrypting a File Using .NET Lombard IL
- Encrypting a File Using .NET Loves Park IL
- Encrypting a File Using .NET Machesney Park IL
- Encrypting a File Using .NET Matteson IL
- Encrypting a File Using .NET Mattoon IL
- Encrypting a File Using .NET Maywood IL
- Encrypting a File Using .NET Mchenry IL
- Encrypting a File Using .NET Melrose Park IL
- Encrypting a File Using .NET Midlothian IL
- Encrypting a File Using .NET Mokena IL
- Encrypting a File Using .NET Moline IL
- Encrypting a File Using .NET Morris IL
- Encrypting a File Using .NET Morton Grove IL
- Encrypting a File Using .NET Morton IL
- Encrypting a File Using .NET Mount Prospect IL
- Encrypting a File Using .NET Mundelein IL
- Encrypting a File Using .NET Murphysboro IL
- Encrypting a File Using .NET Naperville IL
- Encrypting a File Using .NET New Lenox IL
- Encrypting a File Using .NET Niles IL
- Encrypting a File Using .NET Normal IL
- Encrypting a File Using .NET North Chicago IL
- Encrypting a File Using .NET Northbrook IL
- Encrypting a File Using .NET O Fallon IL
- Encrypting a File Using .NET Oak Forest IL
- Encrypting a File Using .NET Oak Lawn IL
- Encrypting a File Using .NET Oak Park IL
- Encrypting a File Using .NET Orland Park IL
- Encrypting a File Using .NET Palatine IL
- Encrypting a File Using .NET Palos Hills IL
- Encrypting a File Using .NET Park Forest IL
- Encrypting a File Using .NET Park Ridge IL
- Encrypting a File Using .NET Pekin IL
- Encrypting a File Using .NET Peoria IL
- Encrypting a File Using .NET Plainfield IL
- Encrypting a File Using .NET Prospect Heights IL
- Encrypting a File Using .NET Quincy IL
- Encrypting a File Using .NET Riverdale IL
- Encrypting a File Using .NET Rochelle IL
- Encrypting a File Using .NET Rock Falls IL
- Encrypting a File Using .NET Rock Island IL
- Encrypting a File Using .NET Rockford IL
- Encrypting a File Using .NET Rolling Meadows IL
- Encrypting a File Using .NET Romeoville IL
- Encrypting a File Using .NET Roscoe IL
- Encrypting a File Using .NET Roselle IL
- Encrypting a File Using .NET Round Lake IL
- Encrypting a File Using .NET Saint Charles IL
- Encrypting a File Using .NET Schaumburg IL
- Encrypting a File Using .NET Skokie IL
- Encrypting a File Using .NET South Elgin IL
- Encrypting a File Using .NET South Holland IL
- Encrypting a File Using .NET Springfield IL
- Encrypting a File Using .NET Streamwood IL
- Encrypting a File Using .NET Streator IL
- Encrypting a File Using .NET Sycamore IL
- Encrypting a File Using .NET Taylorville IL
- Encrypting a File Using .NET Tinley Park IL
- Encrypting a File Using .NET Urbana IL
- Encrypting a File Using .NET Vernon Hills IL
- Encrypting a File Using .NET Villa Park IL
- Encrypting a File Using .NET Waukegan IL
- Encrypting a File Using .NET West Chicago IL
- Encrypting a File Using .NET Westchester IL
- Encrypting a File Using .NET Westmont IL
- Encrypting a File Using .NET Wheaton IL
- Encrypting a File Using .NET Wheeling IL
- Encrypting a File Using .NET Wilmette IL
- Encrypting a File Using .NET Wood Dale IL
- Encrypting a File Using .NET Woodridge IL
- Encrypting a File Using .NET Woodstock IL
- Encrypting a File Using .NET Zion IL
Related Local Events
BIO - International Convention and Exhibition for Biotechnology
Dates: 5/2/2010 - 5/5/2010
Location: McCormick Place
Chicago, IL
View Details

PTXi - Process Technology Expo International
Dates: 5/4/2010 - 5/6/2010
Location: Donald E. Stephens Convention Center
Rosemont, IL
View Details

Virtualization / Consolidation Strategies - Implementation Strategies
Dates: 12/10/2009 - 12/10/2009
Location: The Donald E. Stephens Convention Center
Rosemont, IL
View Details

The CIO Agenda - 2010 and Beyond
Dates: 11/5/2009 - 11/5/2009
Location: The Donald E. Stephens Convention Center
Rosemont, IL
View Details

SuperComm
Dates: 10/21/2009 - 10/23/2009
Location: McCormick Place, Chicago
Chicago, IL
View Details

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