Export (0) Print
Expand All

.NET Samples - How To: Cryptography

.NET Framework 1.1

This section includes the following samples:

hash Sample

fileencrypt Sample

hash Sample

This sample shows how to generate and compare hash values System.Security.Cryptography.

Link to the online sample documentation

Link to the online sample source code

Namespaces used in this sample:

System; System.Security; System.Security.Cryptography; System.IO

Classes used in this sample:

String; Hash; Console; Convert; Array; MD5; BitConverter; MD5CryptoServiceProvider; CryptoConfig; Service; HashAlgorithm

fileencrypt Sample

This sample shows how to use a CryptoStream to encrypt a file using the DES algorithm.

Link to the online sample documentation

Link to the online sample source code

Namespaces used in this sample:

System; System.Security.Cryptography; System.IO; System.Security

Classes used in this sample:

Stream; File; CryptoStream; Console; DES; FileStream; String; Array; Convert; DESCryptoServiceProvider; Service; StreamReader

Show:
© 2014 Microsoft