cryptography is a cornerstone of the modern security technologies used to protect information and resources on both open and closed networks. Cryptography is the science of providing security for information. It has been used historically as a means of providing secure communication between individuals, government agencies, and military forces
no
900 bc
a projection map
/*Input: Enter the String: AHFJFJ * Enter the gap : 2 *Output: CJHLHL */ import java.io.*; class Crypt { protected static void main()throws IOException { BufferedReader in=new BufferedReader(new InputStreamReader(System.in)); System.out.print("Enter the String: "); String s=in.readLine(),s1=""; System.out.print("Enter the Gap: "); short g=Short.parseShort(in.readLine()); for(short i=0;i<s.length();i++) { char ch=s.charAt(i); if(Character.isUpperCase(ch)) { ch+=g; if(ch>'Z') ch-=26; else if(ch<'A') ch+=26; s1+=ch; } else if(Character.isLowerCase(ch)) { ch+=g; if(ch<'a') ch+=26; else if(ch>'z') ch-=26; s1+=ch; } else if(Character.isDigit(ch)) { ch+=g; if(j>'9') j-=10; else if(j<'0') j+=10; s1+=ch; } else s1+=ch; } System.out.print("String: "+s1); }}