Cryptrooper
A module that can endode and decode your text with your given key.
Features
- No additinal installation required.
- Can work on any system with python >= 3.8
- Can encode and decode text of any language.
- Can encode and decode emoticons and symbols also.
Installation
Install cryptrooper with git-clone
git clone https://github.com/sprin-g-reen/cryptrooper
cd cryptrooper
Documentation
Install the cryptrooper in your working directory.
Crypto is a class in the __init__.py file at the directory cryptrooper.
Parameters:
- text
- The text you want to encode or decode.
- key
- The key to encode or decode the text with.
Functions:
-
encode
- The function that encodes your text with your key.
- returns a
DICTlike the below one:{ "key": "Your Key", "encoded": "The encoded text", "decoded": "The decoded text", "result": "The encoded text", "error": None }
- The error is None if no error, else it contains the class of raised error.
-
decode
- The function that decoded your encoded text with your key.
- returns a
DICTlike the below one:{ "key": "Your Key", "encoded": "The encoded text", "decoded": "The decoded text", "result": "The decoded text", "error": None }
- The error is None if no error, else it contains the class of raised error.
Example of encoding:
from cryptrooper import Crypto
# `Crypto` is a class.
text = "The text you want to encode."
key = "The key."
# passing the text and key to Crypto
ins = Crypto(text, key)
# getting the result which is of type `dict`
result = ins.encode()
print(result)
# this prints:
# {
# 'key': 'The key.',
# 'encoded': '168 208 202 64 223 202 241 200 \136 222 143 224 133 240 181 214 217 64 223 212 153 185 214 200 143 207 202 167',
# 'decoded': 'The text you want to encode.',
# 'result': '168 208 202 64 223 202 241 200 136 222 143 224 133 240 181 214 217 64 223 212 153 185 214 200 143 207 202 167',
# 'error': None
# }
Example of decoding:
from cryptrooper import Crypto
# `Crypto` is a class.
text = "183 212 212 149 214 215 232 149 204 223 143 215 207 225 212 163"
key = "cloud"
# passing the text and key to Crypto
ins = Crypto(text, key)
# getting the result which is of type `dict`
result = ins.decode()
print(result)
# this prints:
# {
# 'key': 'cloud',
# 'encode': '183 212 212 149 214 215 232 149 204 223 143 215 207 225 212 163',
# 'decode': 'The sky is blue.',
# 'result': 'The sky is blue.',
# 'error': None
# }
Authors
Contributing
Contributions are always welcome! Contact @Parvat_R for Contributions.
Metadata
Release files for cryptrooper 0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| cryptrooper-0.1.tar.gz | 8.3 kB | Without provenance | Details for cryptrooper-0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| cryptrooper-0.1-py3-none-any.whl | Python 3 | none | any | Details for cryptrooper-0.1-py3-none-any.whl |
Total release size: 16.8 kB
Release files / cryptrooper-0.1.tar.gz
| Download URL | cryptrooper-0.1.tar.gz |
|---|---|
| Size | 8.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0c1621df484abadff883f3f454e5c4abd7a163502f4872d69d09417d46062a38
|
|
BLAKE2b-256 checksum How to use checksums |
203bc1d9311ea4759dad1a0601adc2f6120c52367060f2aa334bc97d16388c74
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/3.10.1 pkginfo/1.6.1 requests/2.25.0 requests-toolbelt/0.9.1 tqdm/4.53.0 CPython/3.9.1
|
Release files / cryptrooper-0.1-py3-none-any.whl
| Download URL | cryptrooper-0.1-py3-none-any.whl |
|---|---|
| Size | 8.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7c2345e971889b739617a2e54ab9849c4647fcfc06b02f51e29b0b0d77e76833
|
|
BLAKE2b-256 checksum How to use checksums |
485b19a32165261193566c35ea23679769ebf27e086f157b1fcb8bdac8a32443
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/3.10.1 pkginfo/1.6.1 requests/2.25.0 requests-toolbelt/0.9.1 tqdm/4.53.0 CPython/3.9.1
|
Security for cryptrooper 0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.