Randomized Encryption System
Project description
RES: Randomized Encryption Standard
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file REScrypt-0.0.2.tar.gz
.
File metadata
- Download URL: REScrypt-0.0.2.tar.gz
- Upload date:
- Size: 5.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.12.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3f41d7262b428501f19a7e2476ea97851b955ac4f3478ca48beaa404ec2fee21 |
|
MD5 | ce67b46445b1a454b716bae731734ae9 |
|
BLAKE2b-256 | a4df66d725ed8752aba074830f98ed03d2a9674679a010df35bd70c351ec3bf4 |
File details
Details for the file REScrypt-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: REScrypt-0.0.2-py3-none-any.whl
- Upload date:
- Size: 8.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.12.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7f517e3704d43bab02f30af7eba93d6c2cd6bd53d9cda04b0e9c8ec0380aa201 |
|
MD5 | 46f3f4da4b6c102d797e5fb23fe0ece8 |
|
BLAKE2b-256 | b91641e584d7de2e3fc242b5df13b20a945744d00a8282f1b8a4f76c6aa62037 |