Skip to main content

A custom encryption package for blank text & passwords

Project description

roxCrypter: Simple ROT-Based Encryption Module

This Python module, roxCrypter, implements a basic encryption algorithm inspired by the ROT (Rotate) cipher family. It encrypts lowercase Turkish characters using a mathematical transformation.

Installation

Direct Import:

import roxCrypter

crypter = roxCrypter.roxCrypter()
encrypted_text = crypter.encrypt_text("Your message here")

Functionality

The roxCrypter class provides two main methods:

encrypt_letter(self, letter): Encrypts a single lowercase Turkish letter using a mathematical formula involving squaring, cubing, taking the remainder, and adding offsets. encrypt_text(self, text): Encrypts an entire string of text, handling both lowercase Turkish characters and other characters (which are left unchanged). The encrypted text is then base64 encoded for improved readability and storage. Verification

The check_encrypted_text(self, original_text, encrypted_text) method allows you to verify if the encryption process was successful. It re-encrypts the original text and compares it to the provided encrypted text.

import roxCrypter

crypter = roxCrypter.roxCrypter()
original_text = "Merhaba, dünya!"  # Turkish for "Hello, world!"
encrypted_text = crypter.encrypt_text(original_text)

print("Original Text:", original_text)
print("Encrypted Text:", encrypted_text)

is_valid = crypter.check_encrypted_text(original_text, encrypted_text)
print("Encryption Valid:", is_valid)

This code will output:

Original Text: Merhaba, dünya!
Encrypted Text: xZ91xLHEn2TDp2QsIHbFn3J5ZCE=
Encryption Valid: True

Security Considerations

It's important to note that roxCrypter is a very simple encryption algorithm and should not be used for sensitive information. It's susceptible to brute-force attacks, statistical analysis, and other cryptanalysis techniques. Consider using more robust encryption methods for real-world applications.

Future Enhancements

  • Implement support for uppercase letters and other character sets.
  • Explore more secure encryption algorithms like AES or RSA.
  • Add functionality for decryption.

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

roxcrypter-1.0.1.tar.gz (5.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

roxCrypter-1.0.1-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

Details for the file roxcrypter-1.0.1.tar.gz.

File metadata

  • Download URL: roxcrypter-1.0.1.tar.gz
  • Upload date:
  • Size: 5.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.3

File hashes

Hashes for roxcrypter-1.0.1.tar.gz
Algorithm Hash digest
SHA256 5e160208e9ec1464108968cb584251e37d141ecc8ed1a088d47f3326558adcaf
MD5 ad7638afac6ee22bc7cdd064e01fe3d0
BLAKE2b-256 ebc232f003988f59439c582cd34d9eb1112fd8ca1ef3460052170a8f9f5d25f0

See more details on using hashes here.

File details

Details for the file roxCrypter-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: roxCrypter-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 5.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.3

File hashes

Hashes for roxCrypter-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f7f9ae4782e64acbb6ce70bb14a8bffa629b5c376ac41d1b1bfcc5b9d3de78ad
MD5 daf86747c4f183ab14edd7f3a0de5a1b
BLAKE2b-256 b77a0bab002fc87feebe4b5f270050de0001005d0f9ccaf980a502629273c2ba

See more details on using hashes here.

Supported by

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