Welcome to Cryptography section of C# Corner. In this section, you will find various Cryptography related source code samples, articles, tutorials, and tips.


  • Ankit Kumar

    Introduction to Cryptography by Christof Paar

    For slides, a problem set and more on learning cryptography, visit
    Ankit Kumar Nov 16, 2016
  • Nickkk Singhaniyaaa

    just laid off 11% of its team

    just laid off 11% of its team
  • Mohan Ar

    Hiding information using Pixels

    In this blog we will learn about hiding information using Pixels.
    Mohan Ar Jun 26, 2015
  • Debendra Dash

    Encrypt and Decrypt Passwords in a Project for Security

    In this blog you will learn how to Encrypt and Decrypt passwords in a Project for security.
    Debendra Dash Jun 22, 2015
  • Raj Bandi

    Using Cryptography in Portable Xamarin Forms (Windows Phone, Android and IOS)

    In this article, I will explain how to use cryptographic algorithms as common code in C# targeting multiple mobile platforms (Windows phone, Android and IOS) using Xamarin forms without depending o...
    Raj Bandi Dec 23, 2014
  • Vishal Jadhav

    Genarate One Time Password String.

    In this blog you will learn how to write code which will help you in generation of OTP which is now used very widely for authorization.
    Vishal Jadhav Sep 12, 2014
  • Madhuram Srivastava

    Hide Your Secret Text, Message behind The Image

    Many people wants to hide their messages, their secret texts. You can use this method for hiding your message behind any picture you want and you can send it as it is ......
  • Sanjay Singh

    Digital Signatures and How The Work

    In this article we will learn about digital signatures and how they work.
    Sanjay Singh May 06, 2014
  • Sanjay Singh

    An Overview of Cryptography

    Cryptography is an art and science of secret communications. Cryptography is a technique used to provide security by encoding messages to make them non-readable.
    Sanjay Singh May 02, 2014
  • Sourabh Somani

    RSA Algorithm With C#

    This article describes the RSA Algorithm and shows how to use it in C#.
    Sourabh Somani Dec 07, 2013
  • Selva Ganapathy

    Simple Steganography; Encryption and Decryption of Huge Messages of Any Language

    As we know, Steganography is the art and science of writing hidden messages in such a way that no one, apart from the sender and intended recipient, suspects the existence of the message. Here we h...
    Selva Ganapathy Oct 31, 2013
  • Gowry S Paramasivam

    Cryptography in Microsoft.NET Part I: Encryption

    In this article, Gowry sheds lights on the basics of cryptography and how it can be implemented in .NET.
  • Sushmita Kumari

    How Easy Cryptography is in VS.Net

    What can be done regarding the security issues? Part of the solution is to secure important data - more specifically, using strong encryption thats what we will see in this article.
    Sushmita Kumari Oct 01, 2012
  • Gowri S Paramasivam

    Cryptography in Microsoft.NET Part II: Digital Envelop and Digital Signatures

    Part-I of this article covered cryptography in the context of encryption. This part continues from where part-I left. It assumes that the reader understands the purpose of encryption, knows about t...
  • Suhas Haridas

    Suhas Haridas May 24, 2012
  • Brijesh Jalan

    How we Decrypt the Text File using DES Method in ASP.Net: Part 2

    In this article we will learn how to decrypt a Encrypted text file.
    Brijesh Jalan May 15, 2012
  • Muhammad Mosa

    Using the DPAPI through ProtectedData Class in .Net Framework 2.0

    The objective of this tutorial is to show how the DPAPI can be used to encrypt and decrypt data. Encrypt some data using ProtectedData Class in System.Security.Cryptography namespace and save it to...
    Muhammad Mosa May 13, 2012
  • Matthew Cochran

    Random isn't Really Random -- C# Random Number Generation

    This article covers overriding the System.Random object in order to produce better random numbers. The project file contains a library of eight commonly used random number generating algorithms, t...
    Matthew Cochran May 13, 2012
  • Nenad Djodievic

    File Encryption

    The classes in the .Net Framework cryptography namespace manage many details of cryptography for you.
    Nenad Djodievic May 13, 2012
  • Suprotim Agarwal

    Cryptography in .NET

    This article gives a brief overview of Cryptography and the Cryptography support provided by the .NET Framework. I begin by introducing Cryptography and then proceed to examine the various types of...
    Suprotim Agarwal May 13, 2012
  • Saurabh Nandu

    Symmetric Encryptor Beta1

    Free to use Encrypt/Decrypt using 2 Symmetric Algorithms 'DES' and 'RC2' coded in C#.
    Saurabh Nandu May 13, 2012
  • Dhananjay  Kumar

    Triple DES Encryption and Decryption using User provided key

    In this article, I will explain how to do a Triple DES encryption on a plain text using user provided key. I will calculate a MD5 Hash on the key provided by the user. And that key will be user t...
    Dhananjay Kumar May 13, 2012
  • Vulpes

    Implementing the Chaocipher in C#

    Whilst doing some research on cryptography, I came across the Chaocipher.
    Vulpes Nov 16, 2011
  • Vulpes

    Creating a Substitution Cipher with C#

    I thought for a bit of fun I'd invent a new cipher and, depending on how 'strong' it turned out to be, perhaps use it in my projects to encrypt string literals, files etc.
    Vulpes Oct 17, 2011
  • Dhananjay  Kumar

    Revised Windows Azure Portal: 2nd August 2011

    Revised Windows Azure Portal: 2nd August 2011
    Dhananjay Kumar Aug 02, 2011