/shift-cipher

Drupal Independent Project

Primary LanguagePHPOtherNOASSERTION

Caesar's Shift Cipher: Independent Project on Drupal

####A basic app practicing Drupal 7. 12/09/2016

By Anand Angalig

Description

This web application can encrypt text inputs using Caesar's Cipher. It is a type of substitution cipher in which each letter in the inputted text is replaced by a different letter that is determined by the user's desired direction and the number of positions down the alphabet.

Alt text

Setup/Installation Requirements

  • Install and initiate MAMP or similar solution stack of your preference if your local machine does not have them already

  • Clone the project directory from https://github.com/anandangalig/shift-cipher.git

  • Initiate MAMP in the highest level of the cloned directory

  • Open PHPMyAdmin, create a new database, and import the latest zipped .sql file from the db-backup folder

  • Go to localhost:8888 in your favorite browser to use the application

Specs:

  • Input: Shift Value = 1, Shift Direction = right, Text = AbC

  • Output: bcd

  • Input: Shift Value = 1, Shift Direction = left, Text = abc

  • Output: bcd

  • Input: Shift Value = 1, Shift Direction = right, Text = AbC

  • Output: zab

  • Input: Shift Value = 1, Shift Direction = right, Text = !?%&$

  • Output: Error Message: "The phrase needs to consist of letters and punctuations"

  • Input: Shift Value = 1, Shift Direction = up, Text = Hello

  • Output: Error Message: "The direction needs to be either Left or Right."

  • Input: Shift Value = 26, Shift Direction = right, Text = Hello

  • Output: Error Message: "Shifting 26 spots gives you the same letter back. Try harder!"

Known Bugs

No bugs known. If found, please bring it to my attention via e-mail.

Support and Contact Details

Please feel free to contact us at: anandangalig@gmail.com

Technologies Used

  • Drupal 7
  • PHP

License

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Copyright (c) 2016 Anand Angalig