Giter VIP home page Giter VIP logo

caesarcipher's Introduction

CaesarCipher

Introduction

The Caesar cipher is one of the earliest known and simplest ciphers. It is a type of substitution cipher in which each letter in the plaintext is 'shifted' a certain number of places down the alphabet. For example, with a shift of 1, A would be replaced by B, B would become C, and so on. The method is named after Julius Caesar, who apparently used it to communicate with his general

Example: This is a very simple encryption technique: it substitutes each letter with a different one based on a shift factor. For example, applying a shift factor of 3 to apple will turn it into dssoh.

PHP

The PHP application accepts plaintext with POST request and render user input. The user can specify, how many shifts should I apply. The values submitted in forms are accessed through the $_POST method. Then the end result is created based on 'number of shifts' and outputed in a text area.

Styling: The Popular CSS framework called 'Bootstrap' is used for simple styling.

Logic

The logic behind the cipher uses the modulus operator to calculate results. Since there are only 26 alphabets in English so if it exceed the limit then Modular Reduction method is applied to keep the result at specified length.

Coming Soon for Some Other Platforms!

caesarcipher's People

Contributors

atlasgondal avatar

Watchers

 avatar  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.