├── README.md ├── SubstitutionCipher.java ├── LICENSE └── CaesarCipher.java /README.md: -------------------------------------------------------------------------------- 1 | # CGNS 2 | Cryptography secures data using encryption techniques, ensuring confidentiality and integrity. Network systems connect devices for data sharing, emphasizing communication, security, and efficiency. 3 | -------------------------------------------------------------------------------- /SubstitutionCipher.java: -------------------------------------------------------------------------------- 1 | import java.io.*; 2 | import java.util.*; 3 | public class SubstitutionCipher { 4 | static Scanner sc = new Scanner(System.in); 5 | static BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); 6 | public static void main(String[] args) throws IOException { 7 | // TODO code application logic here 8 | String a = "abcdefghijklmnopqrstuvwxyz"; 9 | String b = "zyxwvutsrqponmlkjihgfedcba"; 10 | System.out.print("Enter any string: "); 11 | String str = br.readLine(); 12 | String encrypt = ""; 13 | char c; 14 | for(int i=0;i