Columnar Transposition Cipher Last Updated : 06 May, 2024 Summarize Comments Improve Suggest changes Share Like Article Like Report Given a plain-text message and a numeric key, cipher/de-cipher the given text using Columnar Transposition Cipher The Columnar Transposition Cipher is a form of transposition cipher just like Rail Fence Cipher. Columnar Transposition involves writing the plaintext out in rows, and then reading the ciphertext off in columns one by one. Examples: Encryption Input : Geeks for Geeks Key = HACK Output : e kefGsGsrekoe_ Decryption Input : e kefGsGsrekoe_ Key = HACK Output : Geeks for Geeks Encryption Input : Geeks on work Key = HACK Output : e w_eoo_Gs kknr_ Decryption Input : e w_eoo_Gs kknr_ Key = HACK Output : Geeks on work Encryption In a transposition cipher, the order of the alphabets is re-arranged to obtain the cipher-text. The message is written out in rows of a fixed length, and then read out again column by column, and the columns are chosen in some scrambled order.Width of the rows and the permutation of the columns are usually defined by a keyword.For example, the word HACK is of length 4 (so the rows are of length 4), and the permutation is defined by the alphabetical order of the letters in the keyword. In this case, the order would be "3 1 2 4".Any spare spaces are filled with nulls or left blank or placed by a character (Example: _). Finally, the message is read off in columns, in the order specified by the keyword. Decryption To decipher it, the recipient has to work out the column lengths by dividing the message length by the key length.Then, write the message out in columns again, then re-order the columns by reforming the key word. C++ // CPP program for illustrating // Columnar Transposition Cipher #include <bits/stdc++.h> using namespace std; // Encription function string Encryption(int no_rows, int len_key, int len_msg, string msg, int col_val[]) { int x = 0; char enc_mat[no_rows + 1][len_key]; // creating the matrix for (int i = 0; i < no_rows + 1; i++) { for (int j = 0; j < len_key; j++) { // initializes the positions with '_' after the // end of message if (x >= len_msg) { enc_mat[i][j] = '_'; } else { enc_mat[i][j] = msg[x]; } x++; } } int t = 1; string cipher = ""; // finding the cipher text according to the value of // col_val matrix while (t <= len_key) { for (int i = 0; i < len_key; i++) { int k = col_val[i]; if (k == t) { for (int j = 0; j < no_rows + 1; j++) { cipher += enc_mat[j][i]; } t++; } } } return cipher; } // decryption function string Decryption(int no_rows, int len_key, string cipher, int col_val[]) { char dec_mat[no_rows + 1][len_key]; int x = 0, t = 1; // rearrange the matrix according to the col_val while (t <= len_key) { for (int i = 0; i < len_key; i++) { int k = col_val[i]; if (k == t) { for (int j = 0; j < no_rows + 1; j++) { dec_mat[j][i] = cipher[x]; x++; } t++; } } } string message = ""; for (int i = 0; i < no_rows + 1; i++) { for (int j = 0; j < len_key; j++) { // replacing the '_' with space if (dec_mat[i][j] == '_') { dec_mat[i][j] = ' '; } message += dec_mat[i][j]; } } return message; } int main() { // message string msg = "Geeks for Geeks"; // key string key = "HACK"; int len_key = key.length(); int len_msg = msg.length(); int val = 1, count = 0, ind; int col_val[len_key]; // intializing col_val matrix with 0 memset(col_val, 0, sizeof(col_val)); // numbering the key alphabets according to its ACII // value while (count < len_key) { int min = 999; for (int i = 0; i < len_key; i++) { if ((min > int(key[i])) && (col_val[i] == 0)) { min = int(key[i]); ind = i; } } col_val[ind] = val; count++; val++; } int no_rows = len_msg / len_key; // encrypted text string cipher_text = " "; cipher_text = Encryption(no_rows, len_key, len_msg, msg, col_val); cout << "Encrypted Message : " << cipher_text << endl; // decrypted text string original_msg = " "; original_msg = Decryption(no_rows, len_key, cipher_text, col_val); cout << "Decrypted Message : " << original_msg << endl; } // This code is contributed by Suchita Gond Java import java.util.*; public class ColumnarTranspositionCipher { // Key for Columnar Transposition static final String key = "HACK"; static Map<Character, Integer> keyMap = new HashMap<>(); static void setPermutationOrder() { // Add the permutation order into the map for (int i = 0; i < key.length(); i++) { keyMap.put(key.charAt(i), i); } } // Encryption static String encryptMessage(String msg) { int row, col; StringBuilder cipher = new StringBuilder(); /* Calculate the number of columns in the matrix */ col = key.length(); /* Calculate the maximum number of rows in the matrix */ row = (int) Math.ceil((double) msg.length() / col); char[][] matrix = new char[row][col]; for (int i = 0, k = 0; i < row; i++) { for (int j = 0; j < col; ) { if (k < msg.length()) { char ch = msg.charAt(k); if (Character.isLetter(ch) || ch == ' ') { matrix[i][j] = ch; j++; } k++; } else { /* Add padding character '_' */ matrix[i][j] = '_'; j++; } } } for (Map.Entry<Character, Integer> entry : keyMap.entrySet()) { int columnIndex = entry.getValue(); // Get the cipher text from the matrix column-wise using the permuted key for (int i = 0; i < row; i++) { if (Character.isLetter(matrix[i][columnIndex]) || matrix[i][columnIndex] == ' ' || matrix[i][columnIndex] == '_') { cipher.append(matrix[i][columnIndex]); } } } return cipher.toString(); } // Decryption static String decryptMessage(String cipher) { /* Calculate the number of columns for the cipher matrix */ int col = key.length(); int row = (int) Math.ceil((double) cipher.length() / col); char[][] cipherMat = new char[row][col]; /* Add characters into the matrix column-wise */ int k = 0; for (int j = 0; j < col; j++) { for (int i = 0; i < row; i++) { cipherMat[i][j] = cipher.charAt(k); k++; } } /* Update the order of the key for decryption */ int index = 0; for (Map.Entry<Character, Integer> entry : keyMap.entrySet()) { entry.setValue(index++); } /* Arrange the matrix column-wise according to the permutation order */ char[][] decCipher = new char[row][col]; for (int l = 0; l < key.length(); l++) { int columnIndex = keyMap.get(key.charAt(l)); for (int i = 0; i < row; i++) { decCipher[i][l] = cipherMat[i][columnIndex]; } } /* Get the message using the matrix */ StringBuilder msg = new StringBuilder(); for (int i = 0; i < row; i++) { for (int j = 0; j < col; j++) { if (decCipher[i][j] != '_') { msg.append(decCipher[i][j]); } } } return msg.toString(); } public static void main(String[] args) { /* Message */ String msg = "Geeks for Geeks"; setPermutationOrder(); // Calling encryption function String cipher = encryptMessage(msg); System.out.println("Encrypted Message: " + cipher); // Calling Decryption function System.out.println("Decrypted Message: " + decryptMessage(cipher)); } } Python # Python3 implementation of # Columnar Transposition import math key = "HACK" # Encryption def encryptMessage(msg): cipher = "" # track key indices k_indx = 0 msg_len = float(len(msg)) msg_lst = list(msg) key_lst = sorted(list(key)) # calculate column of the matrix col = len(key) # calculate maximum row of the matrix row = int(math.ceil(msg_len / col)) # add the padding character '_' in empty # the empty cell of the matix fill_null = int((row * col) - msg_len) msg_lst.extend('_' * fill_null) # create Matrix and insert message and # padding characters row-wise matrix = [msg_lst[i: i + col] for i in range(0, len(msg_lst), col)] # read matrix column-wise using key for _ in range(col): curr_idx = key.index(key_lst[k_indx]) cipher += ''.join([row[curr_idx] for row in matrix]) k_indx += 1 return cipher # Decryption def decryptMessage(cipher): msg = "" # track key indices k_indx = 0 # track msg indices msg_indx = 0 msg_len = float(len(cipher)) msg_lst = list(cipher) # calculate column of the matrix col = len(key) # calculate maximum row of the matrix row = int(math.ceil(msg_len / col)) # convert key into list and sort # alphabetically so we can access # each character by its alphabetical position. key_lst = sorted(list(key)) # create an empty matrix to # store deciphered message dec_cipher = [] for _ in range(row): dec_cipher += [[None] * col] # Arrange the matrix column wise according # to permutation order by adding into new matrix for _ in range(col): curr_idx = key.index(key_lst[k_indx]) for j in range(row): dec_cipher[j][curr_idx] = msg_lst[msg_indx] msg_indx += 1 k_indx += 1 # convert decrypted msg matrix into a string try: msg = ''.join(sum(dec_cipher, [])) except TypeError: raise TypeError("This program cannot", "handle repeating words.") null_count = msg.count('_') if null_count > 0: return msg[: -null_count] return msg # Driver Code msg = "Geeks for Geeks" cipher = encryptMessage(msg) print("Encrypted Message: {}". format(cipher)) print("Decryped Message: {}". format(decryptMessage(cipher))) # This code is contributed by Aditya K C# using System; using System.Collections.Generic; public class ColumnarTranspositionCipher { // Key for Columnar Transposition static readonly string key = "HACK"; static Dictionary<char, int> keyMap = new Dictionary<char, int>(); static void SetPermutationOrder() { // Add the permutation order into the dictionary for (int i = 0; i < key.Length; i++) { keyMap[key[i]] = i; } } // Encryption static string EncryptMessage(string msg) { int row, col; System.Text.StringBuilder cipher = new System.Text.StringBuilder(); /* Calculate the number of columns in the matrix */ col = key.Length; /* Calculate the maximum number of rows in the * matrix */ row = (int)Math.Ceiling((double)msg.Length / col); char[, ] matrix = new char[row, col]; for (int i = 0, k = 0; i < row; i++) { for (int j = 0; j < col;) { if (k < msg.Length) { char ch = msg[k]; if (char.IsLetter(ch) || ch == ' ') { matrix[i, j] = ch; j++; } k++; } else { /* Add padding character '_' */ matrix[i, j] = '_'; j++; } } } foreach( var entry in new Dictionary<char, int>(keyMap)) { int columnIndex = entry.Value; // Get the cipher text from the matrix // column-wise using the permuted key for (int i = 0; i < row; i++) { if (char.IsLetter(matrix[i, columnIndex]) || matrix[i, columnIndex] == ' ' || matrix[i, columnIndex] == '_') { cipher.Append(matrix[i, columnIndex]); } } } return cipher.ToString(); } // Decryption static string DecryptMessage(string cipher) { /* Calculate the number of columns for the cipher * matrix */ int col = key.Length; int row = (int)Math.Ceiling((double)cipher.Length / col); char[, ] cipherMat = new char[row, col]; /* Add characters into the matrix column-wise */ int k = 0; for (int j = 0; j < col; j++) { for (int i = 0; i < row; i++) { cipherMat[i, j] = cipher[k]; k++; } } /* Update the order of the key for decryption */ int index = 0; foreach( var entry in new Dictionary<char, int>(keyMap)) { keyMap[entry.Key] = index++; } /* Arrange the matrix column-wise according to the * permutation order */ char[, ] decCipher = new char[row, col]; foreach(var entry in keyMap) { int columnIndex = entry.Value; for (int i = 0; i < row; i++) { decCipher[i, columnIndex] = cipherMat[i, columnIndex]; } } /* Get the message using the matrix */ System.Text.StringBuilder msg = new System.Text.StringBuilder(); for (int i = 0; i < row; i++) { for (int j = 0; j < col; j++) { if (decCipher[i, j] != '_') { msg.Append(decCipher[i, j]); } } } return msg.ToString(); } public static void Main(string[] args) { /* Message */ string msg = "Geeks for Geeks"; SetPermutationOrder(); // Calling encryption function string cipher = EncryptMessage(msg); Console.WriteLine("Encrypted Message: " + cipher); // Calling Decryption function Console.WriteLine("Decrypted Message: " + DecryptMessage(cipher)); } } JavaScript // JavaScript implementation of // Columnar Transposition const key = "HACK"; // Encryption function encryptMessage(msg) { let cipher = ""; // track key indices let k_indx = 0; const msg_len = msg.length; const msg_lst = Array.from(msg); const key_lst = Array.from(key).sort(); // calculate column of the matrix const col = key.length; // calculate maximum row of the matrix const row = Math.ceil(msg_len / col); // add the padding character '_' in empty // the empty cell of the matrix const fill_null = (row * col) - msg_len; for (let i = 0; i < fill_null; i++) { msg_lst.push('_'); } // create Matrix and insert message and // padding characters row-wise const matrix = []; for (let i = 0; i < msg_lst.length; i += col) { matrix.push(msg_lst.slice(i, i + col)); } // read matrix column-wise using key for (let _ = 0; _ < col; _++) { const curr_idx = key.indexOf(key_lst[k_indx]); for (const row of matrix) { cipher += row[curr_idx]; } k_indx++; } return cipher; } // Decryption function decryptMessage(cipher) { let msg = ""; // track key indices let k_indx = 0; // track msg indices let msg_indx = 0; const msg_len = cipher.length; const msg_lst = Array.from(cipher); // calculate column of the matrix const col = key.length; // calculate maximum row of the matrix const row = Math.ceil(msg_len / col); // convert key into list and sort // alphabetically so we can access // each character by its alphabetical position. const key_lst = Array.from(key).sort(); // create an empty matrix to // store deciphered message const dec_cipher = []; for (let i = 0; i < row; i++) { dec_cipher.push(Array(col).fill(null)); } // Arrange the matrix column wise according // to permutation order by adding into a new matrix for (let _ = 0; _ < col; _++) { const curr_idx = key.indexOf(key_lst[k_indx]); for (let j = 0; j < row; j++) { dec_cipher[j][curr_idx] = msg_lst[msg_indx]; msg_indx++; } k_indx++; } // convert decrypted msg matrix into a string try { msg = dec_cipher.flat().join(''); } catch (err) { throw new Error("This program cannot handle repeating words."); } const null_count = (msg.match(/_/g) || []).length; if (null_count > 0) { return msg.slice(0, -null_count); } return msg; } // Driver Code const msg = "Geeks for Geeks"; const cipher = encryptMessage(msg); console.log("Encrypted Message: " + cipher); console.log("Decrypted Message: " + decryptMessage(cipher)); // This code is contributed by phasing17 OutputEncrypted Message : e kefGsGsrekoe_ Decrypted Message : Geeks for Geeks Comment More infoAdvertise with us Next Article Block Cipher Design Principles Y Yasin Improve Article Tags : DSA cryptography Similar Reads Cryptography Tutorial Cryptography is a technique of securing communication by converting plain text into unintelligible ciphertext. It involves various algorithms and protocols to ensure data confidentiality, integrity, authentication, and non-repudiation. The two primary types of cryptography are symmetric key cryptogr 7 min read Cryptography BasicCryptography IntroductionCryptography is the study and practice of techniques for secure communication in the presence of third parties called adversaries. It deals with developing and analyzing protocols that prevents malicious third parties from retrieving information being shared between two entities thereby following th 4 min read History of CryptographyHumans have two basic needs when we take about communication. One is the need to communicate selectively, to communicate and share information. These two basic needs while communicating gave rise to coding and encrypting the messages in such a way that only intended people could have access to the i 4 min read Cryptography and its TypesCryptography is a technique of securing information and communications using codes to ensure confidentiality, integrity and authentication. Thus, preventing unauthorized access to information. The prefix "crypt" means "hidden" and the suffix "graphy" means "writing". In Cryptography, the techniques 8 min read Cryptography and Network Security PrinciplesIn the present-day scenario security of the system is the sole priority of any organization. The main aim of any organization is to protect their data from attackers. In cryptography, attacks are of two types: Passive attacks and Active attacks. Passive attacks are those that retrieve information fr 9 min read Cryptography AlgorithmPublic Key EncryptionPublic key cryptography provides a secure way to exchange information and authenticate users by using pairs of keys. The public key is used for encryption and signature verification, while the private key is used for decryption and signing. When the two parties communicate with each other to transfe 7 min read Traditional Symmetric CiphersThe two types of traditional symmetric ciphers are Substitution Cipher and Transposition Cipher. The following flowchart categories the traditional ciphers: 1. Substitution Cipher: Substitution Ciphers are further divided into Mono-alphabetic Cipher and Poly-alphabetic Cipher. First, let's study abo 3 min read What is an Asymmetric Encryption?Asymmetric encryption, also known as public-key cryptography, is a type of encryption that uses a pair of keys to encrypt and decrypt data. The pair of keys includes a public key, which can be shared with anyone, and a private key, which is kept secret by the owner. What is an Asymmetric Encryption? 8 min read Difference between Private key and Public keyCryptography as a field emphasizes the need to guarantee secure communication and data privacy. There are mainly two approaches available to perform this operation: â Private Key Cryptography (RIC or Symmetric Key Cryptography) and Public Key Cryptography (PKE or Asymmetric Key Cryptography). Althou 6 min read What is data encryption?What is Data Encryption?Data encryption is the process of converting readable information (plaintext) into an unreadable format (ciphertext) to protect it from unauthorized access. It is a method of preserving data confidentiality by transforming it into ciphertext, which can only be decoded using a unique decryption key p 10 min read Encryption, Its Algorithms And Its FutureEncryption plays a vital role in todayâs digital world, serving a major role in modern cyber security. It involves converting plain text into cipher text, ensuring that sensitive information remains secure from unauthorized access. By making data unreadable to unauthorized parties, encryption helps 10 min read SHA-1 HashSHA-1 or Secure Hash Algorithm 1 is a cryptographic algorithm that takes an input and produces a 160-bit (20-byte) hash value. This hash value is known as a message digest. This message digest is usually then rendered as a hexadecimal number which is 40 digits long. It is a U.S. Federal Information 7 min read RC4 Encryption AlgorithmRC4 is a stream cipher and variable-length key algorithm. This algorithm encrypts one byte at a time (or larger units at a time). A key input is a pseudorandom bit generator that produces a stream 8-bit number that is unpredictable without knowledge of the input key, The output of the generator is c 6 min read Hash Functions in System SecurityHash Function is a function that has a huge role in making a System Secure as it converts normal data given to it as an irregular value of fixed length. We can imagine it to be a Shaker in our homes. When we put data into this function it outputs an irregular value. The Irregular value it outputs is 4 min read Blowfish Algorithm with ExamplesBlowfish is an encryption technique designed by Bruce Schneier in 1993 as an alternative to the DES Encryption Technique. It is significantly faster than DES and provides a good encryption rate with no effective cryptanalysis technique found to date. It is one of the first secure block ciphers not s 14 min read Difference between MD5 and SHA1MD5 stands for Message Digest and SHA1 stands for Secure Hash Algorithm both are cryptographic hash algorithms used for security purposes. SHA-1 or Secure Hash Algorithm 1 is a cryptographic algorithm that takes an input and produces a 160-bit (20-byte) hash value. This hash value is known as a mess 5 min read Difference between RSA algorithm and DSAIn cryptography, the two commonly used algorithms in modern cryptography for secure data transmission and to ensure the signatures of digital signatures, are the Rivest-Shamir-Adleman (RSA) algorithm and Digital Signature Algorithm (DSA). We'll learn about RSA and DSA, how they work when are they us 8 min read Classical Encryption TechniquesSymmetric Cipher ModelSymmetric Encryption is the most basic and old method of encryption. It uses only one key for the process of both the encryption and decryption of data. Thus, it is also known as Single-Key Encryption. A few basic terms in Cryptography are as follows: Plain Text: original message to be communicated 3 min read Substitution CipherHiding some data is known as encryption. When plain text is encrypted it becomes unreadable and is known as ciphertext. In a Substitution cipher, any character of plain text from the given fixed set of characters is substituted by some other character from the same set depending on a key. For exampl 6 min read Columnar Transposition CipherGiven a plain-text message and a numeric key, cipher/de-cipher the given text using Columnar Transposition Cipher The Columnar Transposition Cipher is a form of transposition cipher just like Rail Fence Cipher. Columnar Transposition involves writing the plaintext out in rows, and then reading the c 12 min read Block Cipher , DES and AESBlock Cipher Design PrinciplesBlock ciphers are built in the Feistel cipher structure. Block cipher has a specific number of rounds and keys for generating ciphertext.Block cipher is a type of encryption algorithm that processes fixed-size blocks of data, usually 64 or 128 bits, to produce ciphertext. The design of a block ciphe 3 min read Block Cipher modes of OperationEncryption algorithms are divided into two categories based on the input type: block cipher and stream cipher. A block cipher is an encryption algorithm that takes a fixed-size input (e.g., b bits) and produces a ciphertext of b bits. If the input is larger than b bits, it can be divided further. Th 8 min read Data Encryption Standard (DES) | Set 1Data Encryption Standard (DES) is a symmetric block cipher. By 'symmetric', we mean that the size of input text and output text (ciphertext) is same (64-bits). The 'block' here means that it takes group of bits together as input instead of encrypting the text bit by bit. Data encryption standard (DE 15+ min read Double DES and Triple DESAs we know the Data encryption standard (DES) uses 56 bit key to encrypt any plain text which can be easily be cracked by using modern technologies. To prevent this from happening double DES and triple DES were introduced which are much more secured than the original DES because it uses 112 and 168 2 min read Strength of Data encryption standard (DES)Data Encryption Standard (DES) is a symmetric block cipher. By âsymmetricâ, we mean that the size of input text and output text (ciphertext) is same (64-bits). The block here means that it takes group of bits together as input instead of encrypting the text bit by bit. Data encryption standard (DES) 5 min read AES Full FormAES stands for Advanced Encryption Standard and is a majorly used symmetric encryption algorithm. It is mainly used for encryption and protection of electronic data. It was used as the replacement of DES(Data encryption standard) as it is much faster and better than DES. AES consists of three block 2 min read Advanced Encryption Standard (AES)Advanced Encryption Standard (AES) is a highly trusted encryption algorithm used to secure data by converting it into an unreadable format without the proper key. It is developed by the National Institute of Standards and Technology (NIST) in 2001. It is is widely used today as it is much stronger t 7 min read Difference Between AES and DES CiphersDES (Data Encryption Standard) and AES (Advanced Encryption Standard) are both symmetric key encryption algorithms used to secure data. They use the same key for both encryption and decryption, but differ significantly in strength and design. Advanced Encryption Standard (AES) is a highly trusted en 5 min read Public Key Cryptography and RSARSA Algorithm in CryptographyRSA(Rivest-Shamir-Adleman) Algorithm is an asymmetric or public-key cryptography algorithm which means it works on two different keys: Public Key and Private Key. The Public Key is used for encryption and is known to everyone, while the Private Key is used for decryption and must be kept secret by t 13 min read Implementation of Diffie-Hellman AlgorithmDiffie-Hellman algorithm:The Diffie-Hellman algorithm is being used to establish a shared secret that can be used for secret communications while exchanging data over a public network using the elliptic curve to generate points and get the secret key using the parameters. For the sake of simplicity 10 min read ElGamal Encryption AlgorithmElGamal Encryption is a public-key cryptosystem. It uses asymmetric key encryption to communicate between two parties and encrypt the message. This cryptosystem is based on the difficulty of finding discrete logarithms in a cyclic group that is even if we know ga and gk, it is extremely difficult to 6 min read What is Cryptanalysis?Understanding Rainbow Table AttackWhat is a Rainbow Table? The passwords in a computer system are not stored directly as plain texts but are hashed using encryption. A hash function is a 1-way function, which means that it can't be decrypted. Whenever a user enters a password, it is converted into a hash value and is compared with t 4 min read What is a Dictionary Attack?A Dictionary Attack is an attack vector used by the attacker to break in a system, which is password protected, by putting technically every word in a dictionary as a form of password for that system. This attack vector is a form of Brute Force Attack. The dictionary can contain words from an Englis 2 min read Brute Force AttackA Brute force attack is a well known breaking technique, by certain records, brute force attacks represented five percent of affirmed security ruptures. A brute force attack includes 'speculating' username and passwords to increase unapproved access to a framework. Brute force is a straightforward a 3 min read Comman CryptographyCustom Building Cryptography Algorithms (Hybrid Cryptography)Cryptography can be defined as an art of encoding and decoding the patterns (in the form of messages). Cryptography is a very straightforward concept which deals with manipulating the strings (or text) to make them unreadable for the intermediate person. It has a very effective way to encrypt or dec 15+ min read An Overview of Cloud CryptographyCloud cryptography is a set of techniques used to secure data stored and processed in cloud computing environments. It provides data privacy, data integrity, and data confidentiality by using encryption and secure key management systems. Common methods used in cloud cryptography include:Symmetric en 4 min read Quantum CryptographyThe uncertainty principle of quantum physics builds the earliest foundations for quantum cryptography. With quantum computers of the future being expected to solve discrete logarithmic problems and the popularly known cryptography methods such as AES, RSA, DES, quantum cryptography becomes the fores 7 min read Image Steganography in CryptographyThe word Steganography is derived from two Greek words- 'stegos' meaning 'to cover' and 'grayfia', meaning 'writing', thus translating to 'covered writing', or 'hidden writing'. Steganography is a method of hiding secret data, by embedding it into an audio, video, image, or text file. It is one of t 8 min read DNA CryptographyCryptography is the branch of science that deals with the encoding of information to hide messages. It plays a vital role in the infrastructure of communication security. The Pioneering work had been done by Ashish Gehani et al and Amin et al after Leonard Max Adleman had shown the capability of mol 12 min read Caesar Cipher in CryptographyThe Caesar Cipher is one of the simplest and oldest methods of encrypting messages, named after Julius Caesar, who reportedly used it to protect his military communications. This technique involves shifting the letters of the alphabet by a fixed number of places. For example, with a shift of three, 11 min read One Time Password (OTP) algorithm in CryptographyAuthentication, the process of identifying and validating an individual is the rudimentary step before granting access to any protected service (such as a personal account). Authentication has been built into the cyber security standards and offers to prevent unauthorized access to safeguarded resou 7 min read Data Integrity in CryptographyMessage Authentication CodesMessage Authentication Codes are the codes which plays their role in two important functions: Authentication Detection and Falsification Detection. Where do we need these codes? Suppose User A send message to user B with message - 'abc'. A encrypts the message using Shared - Key Cryptosystem for enc 2 min read Digital Signatures and CertificatesDigital signatures and certificates are two key technologies that play an important role in ensuring the security and authenticity of online activities. They are essential for activities such as online banking, secure email communication, software distribution, and electronic document signing. By pr 11 min read Public Key InfrastructurePublic key infrastructure or PKI is the governing body behind issuing digital certificates. It helps to protect confidential data and gives unique identities to users and systems. Thus, it ensures security in communications. The public key infrastructure uses a pair of keys: the public key and the p 7 min read Like