Advertisement
CaptainSpaceCat

CipherLab

Sep 9th, 2017
216
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.51 KB | None | 0 0
  1. import java.util.Scanner;
  2. import java.lang.Math;
  3. import java.io.*;
  4.  
  5.  
  6. class CipherLab {
  7.   public static void main(String[] args) throws IOException {
  8.     Scanner scan = new Scanner(System.in);
  9.     ShiftCipher shift = new ShiftCipher();
  10.     SubstitutionCipher sub = new SubstitutionCipher();
  11.    
  12.     System.out.println("Input string to encode:");
  13.     System.out.println(sub.encode(scan.nextLine()));
  14.     System.out.println("Input encoded string:");
  15.     System.out.println(sub.decode(scan.nextLine()));
  16.  
  17.   }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement