Skip to main content

First Version: 0.1.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
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-0.1.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-0.1.0-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: rot_converter-0.1.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-0.1.0.tar.gz
Algorithm Hash digest
SHA256 961dbedfa7adbb6fdf7c780ee92570f64aeeb4f24f50af638219a0ca0d6438e9
MD5 88c4c923cb3734c77329b0e79122d6cb
BLAKE2b-256 e52ff59a682c09c59aaeb9c1452edf05490893abc06c4e54e027d0550ca71840

See more details on using hashes here.

File details

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

File metadata

  • Download URL: rot_converter-0.1.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-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 11445b771717e3c3010dcb0545498df4ea61f63db45f34ac3dadc0f079590b8f
MD5 0667c026887c90143a07094f7ebeabed
BLAKE2b-256 7867e45d26a72939a233608bbf6e115005c9f278d47c11108e59858dceae1194

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

1.0.0

2 files

This release

0.1.0 This release

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