preview

Sample Resume : Import Java

Decent Essays

import java.util.Scanner; /** * CS312 Assignment 5. * * On my honor, Noella, this programming assignment is my own work and I have * not shared my solution with any other student in the class. * * A program to encrypt and decrypt messages using a columnar transposition cipher. * * email address: noellajames@utexas.edu * UTEID: nj4729 * Unique 5 digit course ID: 52821 * Grader name: Tamara * Number of slip days used on this assignment: 2 */ public class Cipher { // CS312 Students: This constant must be set to 10 in the // final version of your program that your turn in. public static final int MAX_ROWS = 10; // main method to demonstrate various encryptions and // decryptions using a columnar transposition cipher public static void main(String[] args) { Scanner keyboard = new Scanner(System.in); showIntro(); String encryptPhrase = inputOne(keyboard); encryptionNoPadding(encryptPhrase); encryptionWithPadding(encryptPhrase); String decryptPhrase = inputTwo(keyboard); decryption(decryptPhrase); keyboard.close(); } // show the introduction to the program public static void showIntro() { System.out.println("This program demonstrates a transposition cipher."); System.out.println("A cipher is an algorithm to encrypt or decrypt a message."); System.out.println(); System.out.println("This program will demonstrate encrypting a

Get Access