Caesar Cipher Encryption | String Programs in Java | ISC Computer Practical Questions

preview_player
Показать описание

(You can download the above app, goto program section and search for Caesar Cipher. You will get this program there)

ISC Practical 2017 Question: Caesar Cipher is an encryption technique which is implemented as ROT13 (‘rotate by 13 places’). It is a simple letter substitution cipher that replaces a letter with the letter 13 places after it in the alphabets, with the other characters remaining unchanged.

Write a program to accept a plain text of length L, where L must be greater than 3 and less than 100.

Encrypt the text if valid as per the Caesar Cipher.

Test your program with the sample data and some random data:

Example 1

INPUT : Hello! How are you?

OUTPUT : The cipher text is:
Uryyb? Ubj ner lbh?

Example 2

INPUT : Encryption helps to secure data.

OUTPUT : The cipher text is:
Rapelcgvba urycf gb frpher qngn.

Example 3

INPUT : You

OUTPUT : INVALID LENGTH

You can follow/contact us here,

#AmplifyLearning #Computer
Рекомендации по теме
Комментарии
Автор

Bhaiya plz upload String practical questions of 2015 or 2016
Both are based on finding vowel or consant form the sentence

ManjuSharma-fjqm
Автор

Bhaiya please upload more of these questions for batch 25.
Please please

afiyaaaaa
Автор

Sir can't we put a condition there like if the character is from A to M then +13 to their char value and the second condition like if the character is from N to Z then -13 to their char value ...this will more easy to understand .

tannushree_yt
Автор

hello bro ye konsa editor hai ye please reply.

darshanthanki
Автор

a ball falls freely on a perfectly elastic plate from a height of 3 metre at the instant t=0 velocity of the ball is zero. draw time velocity graph for the motion of the ball. g=9.8
Sir please tell this numerical

shwetagupta
visit shbcf.ru