Skip to main content More Related Content
DOC
DOC
IMPLEMENTATION OF AUTO KEY IN C++ PDF
pdf c programming language.pdf PPTX
COM1407: Input/ Output Functions PPTX
PPSX
PPTX
DOCX
What's hot
PPTX
PPTX
PPTX
PDF
SPL 10.1 | Manual Tracing on Basic Loop & 1D Array PPTX
List and Dictionary in python DOCX
Data Structures Using C Practical File PPTX
Object Oriented Programming using C++(UNIT 1) PPT
PDF
Object Oriented Programming Using C++ Practical File PPTX
Passing an Array to a Function (ICT Programming) PPTX
PDF
PPTX
Operators and expressions in C++ PPT
CHAPTER-7 C++ PROGRAMMING ( STRUCTURE IN C++) RTF
PPT
PPTX
Fundamental of C Programming (Data Types) DOCX
Let us c (by yashvant kanetkar) chapter 1 solution PPT
PPTX
Fundamentals of c programming Viewers also liked
PPT
PPTX
PPT
PPT
PPTX
Data Encryption Standard (DES) PPTX
PPT
key distribution in network security PPTX
PPT
PPTX
PPTX
Network Hardware And Software 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.