Encrypting a File Using .NET Oklahoma

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

Amercian Education Corporation
405-840-6031
7506 Broadway Ext
Oklahoma City, OK
Midwest CAM Solutions (GibbsCAM)
763-560-6567
NOW SERVING: OKLAHOMA
Oklahoma City, OK
Dreyer Software Inc
918-838-7638
PO Box 3391
Tulsa, OK
Tah Software Systems
405-478-3962
3400 NE 115th St
Oklahoma City, OK
B Solutions LLC
918-749-9200
5645 S Madison Ave
Tulsa, OK
Anyware Mobile Solutions
918-280-8693
5800 E Skelly DR
Tulsa, OK
Earnest Computer Service
405-732-1233
7005 SE 15th St
Oklahoma City, OK
Axis Integrated Solutions
918-488-1881
2818 E 81st Pl
Tulsa, OK
Software Etc
918-254-9124
Woodland Hills Mall
Tulsa, OK
Griffey & Associates
918-627-6399
5350 E 46th Street Suite 145
Tulsa, OK

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

Anyware Mobile Solutions

918-280-8693
5800 E Skelly DR
Tulsa, OK


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