Skip to content
Browse files


  • Loading branch information...
obviex committed Mar 27, 2019
1 parent 1aecf41 commit d8afe19d3ee455b5f12a814a5c007926bca16f97
Showing with 12 additions and 0 deletions.
  1. +12 −0
@@ -3,3 +3,15 @@ The following code samples illustrate how to use cryptography in C# and VisualBa

## [How to encrypt and decrypt data using a symmetric key](
Illustrates how to generate a persistent (i.e. non-random) symmetric key and use this key to encrypt and decrypt data. This sample is intended to help novice users get a grasp on encryption and decryption.

## [How to encrypt and decrypt data with salt](
Explains how to use random salt values when encrypting the same plain text value with the same symmetric key to generate different cipher text. This approach eliminates the need to use different initialization vectors or keys for the purpose of avoiding dictionary attacks.

## [How to encrypt and decrypt data using DPAPI](
Demonstrates how to encrypt and decrypt data using Windows Data Protection API ([DPAPI](

## [How to hash data with salt](
Illustrates how to hash a text string with a random salt value using various hashing algorithms and verify a hash against a plain text value.

## [How to generate a random password](
Shows how to generate a random password, which consists of a combination of 7-bit ASCII alpha-numeric characters and special symbols, but does not contain ambiguous characters (such as [1,I,l]).

0 comments on commit d8afe19

Please sign in to comment.
You can’t perform that action at this time.