SlideShare a Scribd company logo
1 of 2
Download to read offline
Encrypt the message " HALT " by translating the letters into numbers
(via A=0,B=1,C=2,D=3,E=4,F=5,G=6,H=7,I=8,
J=9,K=10,L=11,M=12,N=13,O=14,P=15,Q=16,R=17,
S=18,T=19,U=20,V=21,W=22,X=23,Y=24,Z=25 )
and then applying the encryption function given, and then translating the numbers back into
letters.
(a) f(p)=(p+5) mod 26 _____________
(b) f(p)=(p+12) mod 26 _______________
(c) f(p)=(p+4) mod 26 ______________
Solution
Encrypt message as : A=0,B=1,C=2,D=3,E=4,F=5,G=6,H=7,I=8,
J=9,K=10,L=11,M=12,N=13,O=14,P=15,Q=16,R=17,
S=18,T=19,U=20,V=21,W=22,X=23,Y=24,Z=25
and given encryption function :a) f(p)=(p+5)mod26 if p=Z=25
f(25)=(25+5)mod26
=30mod26=4
f(25)=E
and f(p)=(p+5)mod26 if p=15
f(15)=(15+5)mod26
=20mod26=20
f(15)=U
b) f(p)=(p+12)mod26
f(p)=(p+12)mod26 if p=Z=25
f(25)=(25+12)mod26
=37mod26=11
f(25)=L
and for f(p)=(p+12)mod26 if p=15
f(15)=(15+12)mod26
=27mod26=1
f(15)=B
c)f(p)=(p+4)mod26
f(p)=(p+4)mod26 if p=Z=25
f(25)=(25+4)mod26
=29mod26=3
f(25)=D
and for f(p)=(p+4)mod26 if p=15
f(15)=(15+4)mod26
=19mod26=19
f(15)=T

More Related Content

More from aroraenterprisesmbd

How does a dominant culture differ from a subculture In your answer.pdf
How does a dominant culture differ from a subculture In your answer.pdfHow does a dominant culture differ from a subculture In your answer.pdf
How does a dominant culture differ from a subculture In your answer.pdf
aroraenterprisesmbd
 
Help with implementing the four function the first is an exampleth.pdf
Help with implementing the four function the first is an exampleth.pdfHelp with implementing the four function the first is an exampleth.pdf
Help with implementing the four function the first is an exampleth.pdf
aroraenterprisesmbd
 
Below is the question I need help with. It need to be done in Java. .pdf
Below is the question I need help with. It need to be done in Java. .pdfBelow is the question I need help with. It need to be done in Java. .pdf
Below is the question I need help with. It need to be done in Java. .pdf
aroraenterprisesmbd
 
Css code for a awoko newspaper html website which provides busines.pdf
Css code for a awoko newspaper html website which provides busines.pdfCss code for a awoko newspaper html website which provides busines.pdf
Css code for a awoko newspaper html website which provides busines.pdf
aroraenterprisesmbd
 
Case study Job Satisfaction in the Banking Industry Or the logisti.pdf
Case study Job Satisfaction in the Banking Industry Or the logisti.pdfCase study Job Satisfaction in the Banking Industry Or the logisti.pdf
Case study Job Satisfaction in the Banking Industry Or the logisti.pdf
aroraenterprisesmbd
 

More from aroraenterprisesmbd (20)

In the following list, which term is least related to the others tr.pdf
In the following list, which term is least related to the others  tr.pdfIn the following list, which term is least related to the others  tr.pdf
In the following list, which term is least related to the others tr.pdf
 
If your organization is going to apply for a grant, when do you thin.pdf
If your organization is going to apply for a grant, when do you thin.pdfIf your organization is going to apply for a grant, when do you thin.pdf
If your organization is going to apply for a grant, when do you thin.pdf
 
If the characteristic followed in the pedigree is x-linked recessive .pdf
If the characteristic followed in the pedigree is x-linked recessive .pdfIf the characteristic followed in the pedigree is x-linked recessive .pdf
If the characteristic followed in the pedigree is x-linked recessive .pdf
 
I want to know the purpose of parting lineSolutionA parting li.pdf
I want to know the purpose of parting lineSolutionA parting li.pdfI want to know the purpose of parting lineSolutionA parting li.pdf
I want to know the purpose of parting lineSolutionA parting li.pdf
 
HTML5 & JqueryJavascriptI am trying to code a image slider and I.pdf
HTML5 & JqueryJavascriptI am trying to code a image slider and I.pdfHTML5 & JqueryJavascriptI am trying to code a image slider and I.pdf
HTML5 & JqueryJavascriptI am trying to code a image slider and I.pdf
 
How to access this window in ANSYS (Picture 1 contains analysis s.pdf
How to access this window in ANSYS (Picture 1 contains analysis s.pdfHow to access this window in ANSYS (Picture 1 contains analysis s.pdf
How to access this window in ANSYS (Picture 1 contains analysis s.pdf
 
How and when do we learn ethicsHow and when do we learn ethics.pdf
How and when do we learn ethicsHow and when do we learn ethics.pdfHow and when do we learn ethicsHow and when do we learn ethics.pdf
How and when do we learn ethicsHow and when do we learn ethics.pdf
 
How does a dominant culture differ from a subculture In your answer.pdf
How does a dominant culture differ from a subculture In your answer.pdfHow does a dominant culture differ from a subculture In your answer.pdf
How does a dominant culture differ from a subculture In your answer.pdf
 
Help with implementing the four function the first is an exampleth.pdf
Help with implementing the four function the first is an exampleth.pdfHelp with implementing the four function the first is an exampleth.pdf
Help with implementing the four function the first is an exampleth.pdf
 
Each letter in the word Massachusetts is written on a card. The card.pdf
Each letter in the word Massachusetts is written on a card. The card.pdfEach letter in the word Massachusetts is written on a card. The card.pdf
Each letter in the word Massachusetts is written on a card. The card.pdf
 
Below is the question I need help with. It need to be done in Java. .pdf
Below is the question I need help with. It need to be done in Java. .pdfBelow is the question I need help with. It need to be done in Java. .pdf
Below is the question I need help with. It need to be done in Java. .pdf
 
Css code for a awoko newspaper html website which provides busines.pdf
Css code for a awoko newspaper html website which provides busines.pdfCss code for a awoko newspaper html website which provides busines.pdf
Css code for a awoko newspaper html website which provides busines.pdf
 
Case study Job Satisfaction in the Banking Industry Or the logisti.pdf
Case study Job Satisfaction in the Banking Industry Or the logisti.pdfCase study Job Satisfaction in the Banking Industry Or the logisti.pdf
Case study Job Satisfaction in the Banking Industry Or the logisti.pdf
 
You are constructing working models of the heart for extra credit You.pdf
You are constructing working models of the heart for extra credit You.pdfYou are constructing working models of the heart for extra credit You.pdf
You are constructing working models of the heart for extra credit You.pdf
 
why does countercurrent flow yields greater oxygen uptake than concu.pdf
why does countercurrent flow yields greater oxygen uptake than concu.pdfwhy does countercurrent flow yields greater oxygen uptake than concu.pdf
why does countercurrent flow yields greater oxygen uptake than concu.pdf
 
Wind Shear can be defined in the horizontal plane as well as the vert.pdf
Wind Shear can be defined in the horizontal plane as well as the vert.pdfWind Shear can be defined in the horizontal plane as well as the vert.pdf
Wind Shear can be defined in the horizontal plane as well as the vert.pdf
 
While hiking on some small islands in Lake Superior, you stumble acr.pdf
While hiking on some small islands in Lake Superior, you stumble acr.pdfWhile hiking on some small islands in Lake Superior, you stumble acr.pdf
While hiking on some small islands in Lake Superior, you stumble acr.pdf
 
Which phyla have megaphylls Bryophyta Monilophyta Coniferophyta .pdf
Which phyla have megaphylls  Bryophyta  Monilophyta  Coniferophyta  .pdfWhich phyla have megaphylls  Bryophyta  Monilophyta  Coniferophyta  .pdf
Which phyla have megaphylls Bryophyta Monilophyta Coniferophyta .pdf
 
Where do endocyotic vesicles come fromA. Plasma membranceB. Nuc.pdf
Where do endocyotic vesicles come fromA. Plasma membranceB. Nuc.pdfWhere do endocyotic vesicles come fromA. Plasma membranceB. Nuc.pdf
Where do endocyotic vesicles come fromA. Plasma membranceB. Nuc.pdf
 
When considering the AFN equation, we exclude notes payables from ou.pdf
When considering the AFN equation, we exclude notes payables from ou.pdfWhen considering the AFN equation, we exclude notes payables from ou.pdf
When considering the AFN equation, we exclude notes payables from ou.pdf
 

Recently uploaded

SPLICE Working Group: Reusable Code Examples
SPLICE Working Group:Reusable Code ExamplesSPLICE Working Group:Reusable Code Examples
SPLICE Working Group: Reusable Code Examples
Peter Brusilovsky
 
SURVEY I created for uni project research
SURVEY I created for uni project researchSURVEY I created for uni project research
SURVEY I created for uni project research
CaitlinCummins3
 

Recently uploaded (20)

How to Manage Website in Odoo 17 Studio App.pptx
How to Manage Website in Odoo 17 Studio App.pptxHow to Manage Website in Odoo 17 Studio App.pptx
How to Manage Website in Odoo 17 Studio App.pptx
 
diagnosting testing bsc 2nd sem.pptx....
diagnosting testing bsc 2nd sem.pptx....diagnosting testing bsc 2nd sem.pptx....
diagnosting testing bsc 2nd sem.pptx....
 
8 Tips for Effective Working Capital Management
8 Tips for Effective Working Capital Management8 Tips for Effective Working Capital Management
8 Tips for Effective Working Capital Management
 
Analyzing and resolving a communication crisis in Dhaka textiles LTD.pptx
Analyzing and resolving a communication crisis in Dhaka textiles LTD.pptxAnalyzing and resolving a communication crisis in Dhaka textiles LTD.pptx
Analyzing and resolving a communication crisis in Dhaka textiles LTD.pptx
 
BỘ LUYỆN NGHE TIẾNG ANH 8 GLOBAL SUCCESS CẢ NĂM (GỒM 12 UNITS, MỖI UNIT GỒM 3...
BỘ LUYỆN NGHE TIẾNG ANH 8 GLOBAL SUCCESS CẢ NĂM (GỒM 12 UNITS, MỖI UNIT GỒM 3...BỘ LUYỆN NGHE TIẾNG ANH 8 GLOBAL SUCCESS CẢ NĂM (GỒM 12 UNITS, MỖI UNIT GỒM 3...
BỘ LUYỆN NGHE TIẾNG ANH 8 GLOBAL SUCCESS CẢ NĂM (GỒM 12 UNITS, MỖI UNIT GỒM 3...
 
SPLICE Working Group: Reusable Code Examples
SPLICE Working Group:Reusable Code ExamplesSPLICE Working Group:Reusable Code Examples
SPLICE Working Group: Reusable Code Examples
 
UChicago CMSC 23320 - The Best Commit Messages of 2024
UChicago CMSC 23320 - The Best Commit Messages of 2024UChicago CMSC 23320 - The Best Commit Messages of 2024
UChicago CMSC 23320 - The Best Commit Messages of 2024
 
Major project report on Tata Motors and its marketing strategies
Major project report on Tata Motors and its marketing strategiesMajor project report on Tata Motors and its marketing strategies
Major project report on Tata Motors and its marketing strategies
 
ANTI PARKISON DRUGS.pptx
ANTI         PARKISON          DRUGS.pptxANTI         PARKISON          DRUGS.pptx
ANTI PARKISON DRUGS.pptx
 
Book Review of Run For Your Life Powerpoint
Book Review of Run For Your Life PowerpointBook Review of Run For Your Life Powerpoint
Book Review of Run For Your Life Powerpoint
 
Supporting Newcomer Multilingual Learners
Supporting Newcomer  Multilingual LearnersSupporting Newcomer  Multilingual Learners
Supporting Newcomer Multilingual Learners
 
male presentation...pdf.................
male presentation...pdf.................male presentation...pdf.................
male presentation...pdf.................
 
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
 
Basic Civil Engineering notes on Transportation Engineering & Modes of Transport
Basic Civil Engineering notes on Transportation Engineering & Modes of TransportBasic Civil Engineering notes on Transportation Engineering & Modes of Transport
Basic Civil Engineering notes on Transportation Engineering & Modes of Transport
 
How to Send Pro Forma Invoice to Your Customers in Odoo 17
How to Send Pro Forma Invoice to Your Customers in Odoo 17How to Send Pro Forma Invoice to Your Customers in Odoo 17
How to Send Pro Forma Invoice to Your Customers in Odoo 17
 
OS-operating systems- ch05 (CPU Scheduling) ...
OS-operating systems- ch05 (CPU Scheduling) ...OS-operating systems- ch05 (CPU Scheduling) ...
OS-operating systems- ch05 (CPU Scheduling) ...
 
Climbers and Creepers used in landscaping
Climbers and Creepers used in landscapingClimbers and Creepers used in landscaping
Climbers and Creepers used in landscaping
 
SURVEY I created for uni project research
SURVEY I created for uni project researchSURVEY I created for uni project research
SURVEY I created for uni project research
 
e-Sealing at EADTU by Kamakshi Rajagopal
e-Sealing at EADTU by Kamakshi Rajagopale-Sealing at EADTU by Kamakshi Rajagopal
e-Sealing at EADTU by Kamakshi Rajagopal
 
DEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUM
DEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUMDEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUM
DEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUM
 

Encrypt the message HALT by translating the letters into numbe.pdf

  • 1. Encrypt the message " HALT " by translating the letters into numbers (via A=0,B=1,C=2,D=3,E=4,F=5,G=6,H=7,I=8, J=9,K=10,L=11,M=12,N=13,O=14,P=15,Q=16,R=17, S=18,T=19,U=20,V=21,W=22,X=23,Y=24,Z=25 ) and then applying the encryption function given, and then translating the numbers back into letters. (a) f(p)=(p+5) mod 26 _____________ (b) f(p)=(p+12) mod 26 _______________ (c) f(p)=(p+4) mod 26 ______________ Solution Encrypt message as : A=0,B=1,C=2,D=3,E=4,F=5,G=6,H=7,I=8, J=9,K=10,L=11,M=12,N=13,O=14,P=15,Q=16,R=17, S=18,T=19,U=20,V=21,W=22,X=23,Y=24,Z=25 and given encryption function :a) f(p)=(p+5)mod26 if p=Z=25 f(25)=(25+5)mod26 =30mod26=4 f(25)=E and f(p)=(p+5)mod26 if p=15 f(15)=(15+5)mod26 =20mod26=20 f(15)=U b) f(p)=(p+12)mod26 f(p)=(p+12)mod26 if p=Z=25 f(25)=(25+12)mod26 =37mod26=11 f(25)=L and for f(p)=(p+12)mod26 if p=15 f(15)=(15+12)mod26 =27mod26=1 f(15)=B c)f(p)=(p+4)mod26 f(p)=(p+4)mod26 if p=Z=25
  • 2. f(25)=(25+4)mod26 =29mod26=3 f(25)=D and for f(p)=(p+4)mod26 if p=15 f(15)=(15+4)mod26 =19mod26=19 f(15)=T