Skip to main content

Posts

Encryption in C# Continue

  Encryption in C# Continue From our previous article Encryption in C# , e ncryption  is the process of translating plain text data (plaintext) into something that appears to be random and meaningless (ciphertext). It is used to transform a data into some un-readable form so that authenticated person only can read/access the data. It requires some secret information to transform the plain text to cipher text; it is usually referred as key. Decryption  is the process of converting ciphertext back to plaintext. To encrypt more than a small amount of data, symmetric encryption is used. There are many modern cryptographic methods used for  encryption and decryption  and it is classified in to  two classes  of key based algorithms. 1.        Symmetric Algorithm o     Same key is used for both Encryption and Decryption. The key will be kept as secret. o     Symmetric Ciphers is divided into S...

Encryption in C#

  Encryption in C# What is Encryption? Encryption is a way of scrambling data so that only authorized parties can understand the information. In technical terms, it is the process of converting human-readable plaintext to incomprehensible text, also known as ciphertext. In simpler terms, encryption takes readable data and alters it so that it appears random. Encryption requires the use of a cryptographic key: a set of mathematical values that both the sender and the recipient of an encrypted message agree on. Although encrypted data appears random, encryption happens in a logical, predictable way, allowing a party that receives the encrypted data and possesses the right key to decrypt the data, turning it back into plaintext. Truly secure encryption will use keys complex enough that a third party is highly unlikely to decrypt or break the ciphertext by brute force — in other words, by guessing the key. Data can be encrypted "at rest," when it is stored, or "in tra...

FileInfo class in C#

FileInfo class in C# FileInfo  is a class of  System.IO   namespace  and it is useful to perform file operations such as create, read, delete, rename, moving, opening and appending to files. The  FileInfo  class will provide the same functionality as  File  class to manipulate the files but if we are performing multiple operations on the single file, then it’s more efficient to use  FileInfo  class methods instead of  File  class methods. FileInfo  class is having a different type of  properties  and  methods  to perform operations on files. FileInfo Properties The following are the different type of properties which are provided by the FileInfo class to retrieve the information about files.   Property Description Directory This property will return an instance of the parent directory of a file. DirectoryName It is...