Skip to main content

First Stable Release: 1.0.0!


ROT Converter

A library for the ROT cipher.

Features

  • Encryption and decryption from ROT.
  • ROT bruteforce.
  • Error handling with clear messages.

Installation

pip install rot-converter

Usage

  • To import, use «from rot_converter import *» or «from rot_converter import m_rot, b_rot».
  • To use the library functions, use the command «m_rot(string: str, key: int)» or «b_rot(string: str)».

For example

This program accepts a string (str) as input and outputs this string in the ROT.

from rot import m_rot

temp_str = input() # Input: tqv_eqpxgtvgt
new_str = m_rot(temp_str, 2)

print(new_str) # Output: rot_converter

Requirements

  • Python 3.6 or higher.
  • No external dependencies (uses only standard library).

Error Handling

The library includes a comprehensive error handling system that validates inputs and provides clear, informative error messages.

Error Types

Error Description
You did not enter a string The ROT_string parameter is missing or passed as an empty string ""
Key is not an integer The ROT_key parameter cannot be a floating-point number, string, or any non-int type
You did not enter a key The ROT_key parameter is required but missing (None) in manual mode

Error Examples

from rot import m_rot, b_rot

# Missing string
result = m_rot("", 24)
print(result)
# Output:
# ERROR! You did not enter a string


# Missing key in manual mode
result = m_rot("tqv_eqpxgtvgt", None)
print(result)
# Output:
# ERROR! You did not enter a key


# Key is a float number
result = m_rot("tqv_eqpxgtvgt", 1.5)
print(result)
# Output:
# ERROR! Type of the key is not a integer


# Key is a string
result = m_rot("tqv_eqpxgtvgt", "key")
print(result)
# Output:
# ERROR! Type of the key is not a integer


# Multiple errors (all displayed)
result = m_rot("", 2.5)
print(result)
# Output:
# ERROR! You did not enter a string
# ERROR! Type of the key is not a integer

Changelog

Version Date Commit
0.1.0 07.08.2026 Beta: First Beta Version On PyPI
1.0.0 13.08.2026 Release: Just A Release
Made by the Hi Team.

Download files

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

Source Distribution

rot_converter-1.0.0.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.

rot_converter-1.0.0-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

Details for the file rot_converter-1.0.0.tar.gz.

File metadata

  • Download URL: rot_converter-1.0.0.tar.gz
  • Upload date:
  • Size: 5.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for rot_converter-1.0.0.tar.gz
Algorithm Hash digest
SHA256 f7da54a0413a22e5d5cbdc001c093ecb81d56d6e6715ba2772ecb0d4cda77780
MD5 4eadfd56ccfeb5b704daef959294e32a
BLAKE2b-256 561daae3c6568d00fa4a2006d6f73e1675e8134f76b442f64d1a75674f79adde

See more details on using hashes here.

File details

Details for the file rot_converter-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: rot_converter-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 4.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for rot_converter-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3d0cee5185d784b95a30959ef77773f0c6d4ae6bef0684367333f5e3f2194eeb
MD5 c081e19a0e9e5cea98449377d5862644
BLAKE2b-256 7a2f559d0414b374ee26a52bceb34fed7b88a6e1d6b1cd8eea943a567e1ac1a4

See more details on using hashes here.

Release history Release notifications | RSS feed

2.1.0

2 files

2.0.2

2 files

2.0.1

2 files

2.0.0

2 files

This release

1.0.0 This release

2 files

0.1.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page