Encrypting a File Using .NET Washington

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

Free Data Recovery Software
001-991-1111 x111
lane
State, WA
Benaroya Research Institute at Virginia Mason
(206) 341-1313
1201 9th Ave.
Seattle, WA
Dendreon Corporation
(206) 256-4545
3005 1st Ave.
Seattle, WA
Advanced Computer Solutions Ltd.
(206) 624-7854
500 Union St.,
Seattle, WA
Envision Telephony, Inc.
(206) 621-9384
520 Pike St.,
Seattle, WA
ClearStar.net
360-892-0687
915 Broadway
Vancouver, WA
Advanced Clinical Software
206-728-0313
2212 4th Ave
Seattle, WA
BioLife Solutions, Inc.
(425) 402-1400
3303 Monte Villa Pkwy, Ste. 310
Seattle, WA
IMAGINiT Technologies, Inc.
(206) 682-8032
2101 4th Ave.,
Seattle, WA
Coolearth Technologies, Inc.
(206) 770-9061
226 S Orcas St.
Seattle, WA

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

ClearStar.net

360-892-0687
915 Broadway
Vancouver, WA
http://www.clearstar.net

Regional Articles
- Encrypting a File Using .NET Anacortes WA
- Encrypting a File Using .NET Arlington WA
- Encrypting a File Using .NET Auburn WA
- Encrypting a File Using .NET Bainbridge Island WA
- Encrypting a File Using .NET Battle Ground WA
- Encrypting a File Using .NET Bellevue WA
- Encrypting a File Using .NET Bellingham WA
- Encrypting a File Using .NET Bothell WA
- Encrypting a File Using .NET Bremerton WA
- Encrypting a File Using .NET Buckley WA
- Encrypting a File Using .NET Camas WA
- Encrypting a File Using .NET Chehalis WA
- Encrypting a File Using .NET Cheney WA
- Encrypting a File Using .NET East Wenatchee WA
- Encrypting a File Using .NET Edmonds WA
- Encrypting a File Using .NET Ellensburg WA
- Encrypting a File Using .NET Enumclaw WA
- Encrypting a File Using .NET Everett WA
- Encrypting a File Using .NET Federal Way WA
- Encrypting a File Using .NET Gig Harbor WA
- Encrypting a File Using .NET Issaquah WA
- Encrypting a File Using .NET Kelso WA
- Encrypting a File Using .NET Kenmore WA
- Encrypting a File Using .NET Kennewick WA
- Encrypting a File Using .NET Kent WA
- Encrypting a File Using .NET Kirkland WA
- Encrypting a File Using .NET Lacey WA
- Encrypting a File Using .NET Lake Stevens WA
- Encrypting a File Using .NET Lakewood WA
- Encrypting a File Using .NET Longview WA
- Encrypting a File Using .NET Lynden WA
- Encrypting a File Using .NET Lynnwood WA
- Encrypting a File Using .NET Maple Valley WA
- Encrypting a File Using .NET Marysville WA
- Encrypting a File Using .NET Mercer Island WA
- Encrypting a File Using .NET Moses Lake WA
- Encrypting a File Using .NET Mount Vernon WA
- Encrypting a File Using .NET Mountlake Terrace WA
- Encrypting a File Using .NET Mukilteo WA
- Encrypting a File Using .NET Oak Harbor WA
- Encrypting a File Using .NET Olympia WA
- Encrypting a File Using .NET Pasco WA
- Encrypting a File Using .NET Port Angeles WA
- Encrypting a File Using .NET Port Orchard WA
- Encrypting a File Using .NET Poulsbo WA
- Encrypting a File Using .NET Pullman WA
- Encrypting a File Using .NET Puyallup WA
- Encrypting a File Using .NET Redmond WA
- Encrypting a File Using .NET Renton WA
- Encrypting a File Using .NET Richland WA
- Encrypting a File Using .NET Seattle WA
- Encrypting a File Using .NET Sedro Woolley WA
- Encrypting a File Using .NET Selah WA
- Encrypting a File Using .NET Sequim WA
- Encrypting a File Using .NET Shelton WA
- Encrypting a File Using .NET Silverdale WA
- Encrypting a File Using .NET Snohomish WA
- Encrypting a File Using .NET Spanaway WA
- Encrypting a File Using .NET Spokane WA
- Encrypting a File Using .NET Stanwood WA
- Encrypting a File Using .NET Sumner WA
- Encrypting a File Using .NET Tacoma WA
- Encrypting a File Using .NET University Place WA
- Encrypting a File Using .NET Vancouver WA
- Encrypting a File Using .NET Washougal WA
- Encrypting a File Using .NET Wenatchee WA
- Encrypting a File Using .NET Woodinville WA
- Encrypting a File Using .NET Yakima WA
- Encrypting a File Using .NET Yelm WA
Related Articles
- Custom MSBuild Task Development with Visual C++ Washington
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.
- Configuring a ClickOnce Deployment Washington
- An Active Server Pages Tutorial, Part 1 Washington
- Microsoft Scripting Runtime in Visual Basic 6 Washington
- Creating Word Documents by Using C# and XML Washington
- MSBuild Features for Visual C++ Washington
- Interacting with .NET WinForms, Part 1 Washington
- Using the Visual Studio 6.0 Driver Build Environment Washington
- Get VersionInfo from resource file Washington
- Creating statically linked, non-MFC DLLs Washington
Related Local Events
Intellectual Property: Commercialization & Protection
Dates: 2/17/2010 - 2/17/2010
Location: AHA!
Vancouver, WA
View Details

2010 'The Future is Now' Technology Expo
Dates: 1/27/2010 - 1/27/2010
Location: ShoWare Center
Kent, WA
View Details

Leads Group: Wired
Dates: 12/31/2009 - 12/31/2009
Location: Mud Bay Coffee
Olympia, WA
View Details

Leads Group: Wired
Dates: 12/24/2009 - 12/24/2009
Location: Mud Bay Coffee
Olympia, WA
View Details

Leads Group: Wired
Dates: 12/13/2009 - 12/13/2009
Location: Mud Bay Coffee
Olympia, WA
View Details

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