Skip to content

video-game-coding-club/crypto-webpage

Repository files navigation

crypto-webpage

Gitpod ready-to-code CI GitHub issues GitHub pull requests

Check your Hacktoberfest progress!

Introduction

We are building a website to learn about building websites and encryption:

https://video-game-coding-club.github.io/crypto-webpage/

This website encrypts messages that you give it using the secret key that you provide and a Caesar cipher. It will also decrypt messages if you know the secret key for decryption. For a Caesar cipher, the secret key to decrypt a message is the opposite of the secret key used to encrypt the message. For example, if the secret key to encrypt the message was 4, then the secret key to decrypt the message is -4, or you can use 26 - 4 = 22.

Steps:

  1. When you first arrive at the website's homepage, choose the language for the homepage prompts.

  2. Next enter the message that you would like to encrypt or decrypt, in the first box provided.

  3. Enter the secret key to encode or decode the message. This must be an integer.

  4. Finally, click on the "Encrypt" button and the decoded (or encoded) message will appear in the last box!

    10/31/20: Note that right now the message appears in the result alert box.

Development Status

  • Field to enter cleartext: #1, #13, #53
  • Field to enter ciphertext: #1, #13, #53
  • Field to enter secret (the shift): #1, #14
  • Function to shift a letter: #55, #76, #79
  • Function to check that the secret is an integer: #54
  • Function to shift a text: #70

GitPod Chrome Extension

You might find the GitPod Chrome extension useful

https://chrome.google.com/webstore/detail/gitpod-dev-environments-i/dodmmooeoklaejobgleioelladacbeki

Encryption Methods

Caesar Cipher

In cryptography, a Caesar cipher, also known as Caesar's cipher, the shift cipher, Caesar's code or Caesar shift, is one of the simplest and most widely known encryption techniques. It is a type of substitution cipher in which each letter in the plaintext is replaced by a letter some fixed number of positions down the alphabet. For example, with a left shift of 3, D would be replaced by A, E would become B, and so on. The method is named after Julius Caesar, who used it in his private correspondence.

Caesar Cipher

ROT13

A special case of the Caesar cipher is known as ROT13 ("rotate by 13 places", sometimes hyphenated ROT-13). ROT13 is a simple letter substitution cipher that replaces a letter with the 13th letter after it.

Because there are 26 letters (2×13) in the basic Latin alphabet, ROT13 is its own inverse; that is, to undo ROT13, the same algorithm is applied, so the same action can be used for encoding and decoding

Example for ROT13

About

A project to learn how to build web pages and how encryption works

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published