Coder Social home page Coder Social logo

naisenyamungai / caesarcipherproject Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 9 KB

A Caesar cipher is a type of substitution in which each letter is shifted a certain number of places also known as a key, down the alphabet. For example, with a shift of 1, A would be replaced by B, B would become C, and so on

Home Page: https://github.com/naisenyamungai/CaesarCipherProject

Java 100.00%

caesarcipherproject's Introduction

Project Name

       Command Line Caesar Cipher

Author

        [Naisenya Mungai](https://github.com/naisenyamungai)
        Student - Full Stack Developer(Java & Android)

Project Description

A program that Implement a Caesar cipher, both encoding, and decoding. The key is an integer from 1 to 25. This cipher rotates the letters of the alphabet (A to Z). The encoding replaces each letter with the 1st to 25th next letter in the alphabet (wrapping Z to A). So key 2 encrypts "HI" to "JK", but key 20 encrypts "HI" to "BC".

Project Overview

Behaviour Example Input Example Output
Program needs to compile and run the code User types into the terminal javac App.java && java App program runs and asks for user input
Program asks the user for a letter and a step value "D",5 encrypts to "I" and decrypts "I" back to "D"
Program needs to compile and run the code for the next test User types into the terminal javac App.java && java App program runs and asks for user input
For every character entered, it's position should change with the number of key "ABC",6 Encypts to "GHI" and decrypts to "ABC"
Shift key must be in range 1-25 "B",28 Returns the value at 28 - 25
Return nothing when empty string is submitted "", 27 ""
Encrypt & Decrypts lower and uppercase letters to uppercase "abcD", 6 Encrypts to "GHIJ" and decrypts to "ABCD"
Loops through the entire alphabet correctly "Z",1 and "A", 25 "A" and "Z" respectively

Technologies Used

The application was created using below technologies;

  • JAVA
  • JUnit

Known Bugs

No known Bugs at the moment

Setup/Installation Requirements

  • Clone this repository
  • Open it on your IDE
  • Compile the App.java file found in the src/main/java folder. If you're using the terminal, navigate to this folder and run 'javac App.java'
  • Run the application on the terminal. Run using the command 'java App' and use the application

Running tests

  • Navigate to any of the files in src/test/java
  • Open the file
  • On the display tab in the IDE, right click the file and run it

Support and contact details

[email protected]

To access this my work open below link

https://github.com/naisenyamungai/CaesarCipherProject/

MIT © Naisenya Mungai

caesarcipherproject's People

Contributors

naisenyamungai avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.