Skip to main content

Quick start

Get up and running with Algoritmos de Encriptamiento in minutes. This guide will show you how to encrypt and decrypt your first message using both the web interface and CLI.
Make sure you’ve completed the installation before starting this guide.

Using the web interface

The Flask web application provides an intuitive interface for encrypting and decrypting messages.
1

Start the Flask server

Activate your virtual environment and run the application:
pipenv shell
python app.py
The server will start at http://localhost:5000
2

Open the web interface

Navigate to http://localhost:5000 in your web browser. You’ll see the encryption interface with options for:
  • Message input
  • Operation selection (Encrypt/Decrypt)
  • Algorithm selection (Sustitución/César, Transposición, RSA)
3

Encrypt your first message

  1. Enter a message like HOLA MUNDO in the text area
  2. Select Cifrar (Encrypt)
  3. Choose an algorithm (start with Sustitución (César))
  4. Click Procesar
You’ll see the encrypted result immediately!

Example: Encrypting with each algorithm

Input: HOLA MUNDOSteps:
  1. Enter: HOLA MUNDO
  2. Operation: Cifrar
  3. Algorithm: Sustitución (César)
Output: OWSITCULWThe Caesar cipher shifts each letter by 8 positions in the Spanish alphabet (including Ñ).

Using the CLI

The command-line interface applies all three algorithms to your message automatically.
1

Run the CLI tool

Activate your virtual environment and run:
pipenv shell
python main.py
2

Enter your message

The program will prompt you for input:
Ingrese el mensaje a operar: HOLA MUNDO
3

View the results

The CLI will automatically encrypt and decrypt using all three algorithms:
Mensaje original: HOLAMUNDO

El mensaje cifrado es: OWSITCULW
El mensaje descifrado es: HOLAMUNDO

El mensaje cifrado es: HUONLDAOM*
El mensaje descifrado es: HOLAMUNDO

Mensaje cifrado: [210781516, 270112935, 1336237868, 54163841, ...]
Mensaje descifrado: HOLA MUNDO

Understanding the CLI output

The CLI demonstrates each algorithm’s complete encryption/decryption cycle:
  1. Caesar cipher: Shows the shifted text and the decrypted result
  2. Transposition cipher: Displays the rearranged text with padding and the decrypted result
  3. RSA: Generates new keys, shows the encrypted numbers, and decrypts back to the original message

Next steps

Now that you’ve encrypted your first message, explore more:

Algorithm details

Learn how each encryption algorithm works

Web interface guide

Master the Flask web application

CLI usage

Advanced command-line techniques

Code examples

Real-world usage examples
Remember: This tool is for educational purposes. The encryption methods (especially 32-bit RSA) are not secure for real-world use. See security notes for details.

Build docs developers (and LLMs) love