Skip to main content

Randomized Encryption System

Project description

RES: Randomized Encryption Standard

License

Description

RES is a simple symmetric key encryption algorithm designed to encrypt using randomization. It uses a hashing algorithm to generate random numbers from the input key. Then it goes through 3 stages of ciphers before before using key block encryption. This algorithm uses 128, 256, and 512 char blocksizes

Table of Contents

Installation

This algorithm uses no requirements and can be installed by simply cloning the repo.

git clone https://github.com/harbingeroffire/RES.git

USAGE

Example For encrypting and decrypting using RES:

import RES

#Example for RES-128
key=b"key"
cipher=RES.Cipher("RES-128", key)

#encrypt
ciphertext=cipher.encrypt(b"buffer")
print("Encrypted Text: ", ciphertext)

#decrypt
plaintext=cipher.decrypt(ciphertext)
print("Decrypted Text: ", plaintext)

Other Notes

The code also has a built in function to encrypt and decrypt files using fencrypt() and fdecrypt() as well as outputing the encryption in hexadecimal using hencrypt() and hdecrypt(). Conviently I also combined them to encrypt and decrypt files with hexadecimal with hfencrypt() and hfdecrypt().

License

MIT License, you all know what that is.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

REScrypt-0.0.2.tar.gz (5.7 kB view hashes)

Uploaded Source

Built Distribution

REScrypt-0.0.2-py3-none-any.whl (8.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page