An easy and fun encryption module.
Project description
SweeCrypt
A basic and fun cipher module for everyone. it converts regular text into symbols on a keyboard, kind of like a cipher. This is only for fun, using this module for cybersecurity is NOT ADVISED
This is a more maintained version of the Crypty Encryption Module in Swee's Replit.
Install
CLI (>= 1.1.3)
$ pipx install sweecrypt
Help page:
$ sweecrypt --help
Usage: sweecrypt [OPTIONS] COMMAND [ARGS]...
An easy and fun encryption module.
╭─ Options ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ --install-completion Install completion for the current shell. │
│ --show-completion Show completion for the current shell, to copy it or customize the installation. │
│ --help Show this message and exit. │
╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
╭─ Commands ────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ encrypt Encrypts a message │
│ decrypt Decrypts a SweeCrypt-encoded message │
╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
Module
$ pip3 install sweecrypt
Import:
>>> import sweecrypt
Usage
Encrypt:
>>> sweecrypt.encrypt("hello, world!")
!?~~(:,}(>~/a
$ sweecrypt encrypt "hello, world!"
!?~~(:,}(>~/a
Decrypt:
>>> sweecrypt.decrypt("!?~~(:,}(>~/a")
hello, world!
$ sweecrypt decrypt "!?~~(:,}(>~/a"
hello, world!
[!WARNING] Decrypting text using the CLI may cause your shell to malfunction
This can usually be fixed by using
set +Hbefore running these
With newer versions of sweecrypt (>= 1.1.0), you can shift the encryption database:
>>> sweecrypt.encrypt("hello, world", 3)
'\\!((>ba_>](#'
>>> sweecrypt.decrypt("\\!((>ba_>](#", 3)
'hello, world'
$ sweecrypt encrypt --shift 3 "hello, world"
\!((>ba_>](#
$ sweecrypt decrypt --shift 3 "\!((>ba_>](#"
hello, world
So it will output a nonsense string if shifted incorrectly.
>>> sweecrypt.decrypt("\\!((>ba_>](#")
'khoor?!zruog'
$ sweecrypt decrypt "\!((>ba_>](#"
khoor?!zruog
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
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 sweecrypt-1.1.4.tar.gz.
File metadata
- Download URL: sweecrypt-1.1.4.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.23
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
52e3f29c561b5c6df14d0c090cc752a4d723a335ce8c566de889b5ce4ffbcf16
|
|
| MD5 |
36fb4d8e31298cb6a40a68d831325f46
|
|
| BLAKE2b-256 |
b0f414113d0c7a92db173a0e89208c11cc1148b9c045afb5e3e16562fc4187ee
|
File details
Details for the file sweecrypt-1.1.4-py3-none-any.whl.
File metadata
- Download URL: sweecrypt-1.1.4-py3-none-any.whl
- Upload date:
- Size: 4.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.23
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0de849e0cf5ef8cca5046822d1ff197599ef40d17ee67e7e5b4c7f364623b219
|
|
| MD5 |
61996f43b61690a64ce74785c6e08dee
|
|
| BLAKE2b-256 |
201e8283fe82e5604b8f3744d8727d52426ec6299e1897d468f30365117807c8
|