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)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
961dbedfa7adbb6fdf7c780ee92570f64aeeb4f24f50af638219a0ca0d6438e9
|
|
| MD5 |
88c4c923cb3734c77329b0e79122d6cb
|
|
| BLAKE2b-256 |
e52ff59a682c09c59aaeb9c1452edf05490893abc06c4e54e027d0550ca71840
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
11445b771717e3c3010dcb0545498df4ea61f63db45f34ac3dadc0f079590b8f
|
|
| MD5 |
0667c026887c90143a07094f7ebeabed
|
|
| BLAKE2b-256 |
7867e45d26a72939a233608bbf6e115005c9f278d47c11108e59858dceae1194
|