More Related Content
DOC
IMPLEMENTATION OF AUTO KEY IN C++ DOCX
PPTX
DOC
PPTX
pandas for series and dataframe.pptx PDF
DATABASE MANAGEMENT SYSTEM LAB.pdf PPTX
PPTX
What's hot
PPTX
PPTX
PPTX
PPTX
PPTX
PPTX
PDF
Chapter 3 : Balagurusamy Programming ANSI in C PPT
PDF
PPTX
PDF
Java programming lab manual PPTX
Data Encryption Standard (DES) PPTX
Python Programming Essentials - M24 - math module PDF
PPTX
PPTX
C data type format specifier DOCX
some basic C programs with outputs PPTX
Modules in Python Programming PPTX
PPT
Viewers also liked
PPT
PPT
PPT
key distribution in network security PPT
PPTX
PPTX
PPTX
Network Hardware And Software PPTX
PPT
PPTX
Play fair cipher
- 1.
PlayFair Cipher Codeby Khawar:
#include <iostream>
usingnamespace std;
intmain()
{
inti,j,x,r,n,z,c1,c2,p;c1=0;
char a2[25]={'a','b','c','d','e','f','g','h','i','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z'};
char key[50],aa[100];
cout<<"write yourcyphertextheren";
cin.getline(aa,100);
cout<<"enteryourkeyheren";
cin.getline(key,50);
intll=strlen(key);
char a[5][5];
for(i=0;i<5;i++)
{
for(j=0;j<5;j++)
{
c2=0;
if(c1<ll)
{
for(p=0;p<25;p++)
{
if(key[c1]==a2[p])
- 2.
- 3.
- 4.
- 5.