Code Monkey home page Code Monkey logo

encroval's Introduction

Encroval

Index

Description

Encroval is an encryption tool that allows you to encrypt a text into other text or image using a password.

It can encrypt a text of any length and the password can be up to 2128 bits long and accepts any UTF-8 character (1,112,064 different characters).

Get Started

Install Requirements

pip3 install -r requirements.txt

Enter the input

Select the text to encrypt

Place the text you want to encrypt (a .txt file) in the input folder.

Select the text/image to decrypt

Place the text you want to encrypt (a .txt file) or the image (a .png file) in the input folder.

Run

python3 main.py

Configuration

You can change the POS_LEN in the config.py file, which changes the input text's maximum length.

Default is POS_LEN = 4, so the maximum length the text can have by default is 32,446

The more the POS_LEN is, the longer the text can be, but the longer it will take to encrypt and decrypt it.

POS_LEN  Max text lenght
1 2
2  107
3 2,026
4 32,446
5 524,169
6 8,386,749
7 134,188,028
8 2,147,329,544
...  ...

Examples

Encryption example

config.py

POS_LEN = 2

Input text (input/test.txt)

This is a test 123!!!

It can have every UTF-8 character! ✔️ ❤️ ☆

Password

test#@–{}password123¿?

Encrypted text (output/encrypted_text.txt)

3e8b00b4bcbb4ff246fdb3bc9afd63cf080e1cbefdc4b4bb2b5f1400f3fd4e6cb10d40825d0ab41e080e4e751a1ebbb8e7c4448fc14434d5c84d7fb3cc68e2c66033d5cfeece84bd256888b5e3dbb5bdc7fd47845be373e44bc8defbabb92e544f5eb0b4c43403084344d663

Encrypted image (output/encrypted_image.png)

Text Decryption example

Input text (input/encrypted_text.txt)

This is a test 123!!!

It can have every UTF-8 character! ✔️ ❤️ ☆

Password

test#@–{}password123¿?

Decrypted text (output/decrypted_text.txt)

This is a test 123!!!

The text can have every UTF-8 character! ✔️ ❤️ ☆

Image Decryption example

Input image (input/encrypted_image.png)

Password

test#@–{}password123¿?

Decrypted image (output/decrypted_image.txt)

This is a test 123!!!

The text can have every UTF-8 character! ✔️ ❤️ ☆

encroval's People

Contributors

carlospuenteg avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 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.