Giter Club home page Giter Club logo

top-secret's Introduction

Top Secret

Logo

Contents


1. Project Overview

Top secret is a web application designed to encode and decode messages. To accomplish this, it receives two inputs from the user: one as text in string format and another as a positive integer called the offset. The user is presented with two options through buttons: Encode and Decode.

Also, after getting the result, the user can choose to copy the obtained text to the clipboard through the COPY button, or to CLEAN the result box by pressing the CLEAN button.

2. Encoding and Decoding

The encoding and decoding processes involve the use of the Caesar Cipher, one of the simplest methods for encrypting a message. It entails replacing each letter in a text with another letter located a defined number of positions forward in the same alphabet. The same displacement number is used within a single message. Decoding operates similarly, but it replaces a letter with one found the same number of positions backward in the alphabet.

For instance, if we go for an offset of 3 positions:

  • The letter A is encoded as D.
  • The word "HOUSE" is encoded as "KRXVH".
  • Regular alphabet: A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
  • Encoded alphabet: D E F G H I J K L M N O P Q R S T U V W X Y Z A B C

Caesar Cipher

To implement this encryption, an algorithm was used. This algorithm utilizes the decimal ASCII code of each letter to calculate the appropriate position based on the user-entered offset. Text input is restricted to accept only uppercase letters, lowercase letters, and spaces, while the offset input only accepts positive integers up to 130 and zero.

The result is displayed within the "Result" box.

2. Users

The primary users of this product are young individuals with internet/smartphone access who wish to share information privately with friends. This is presented as a sort of game, in which you can have a secret conversation with other users, so it's all about entertainment and and having a fun time.

3. UI

The interface is simple and features red, white and grey tones. The logo resembles a stamp, giving the appearance of a confidential document, emphasizing the secrecy of the message to be encoded. A funny picture and a modern responsive design were used.

Figma Prototype: Go to Prototype

Original idea:

Project Prototype

First version design:

First Version Design

Final design desktop version:

Final Design Desktop

Final design mobile version:

Final Design Mobile

4. Unit Tests

Unit tests were implemented with the following results:

Unit Tests

top-secret's People

Contributors

sara-rioseco avatar vivieall 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.