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!
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
In SweeCrypt >= 1.1.5, you can now pipe to the CLI
$ cat test.txt
Lorem ipsum dolor
$ xxd -p test.txt | sweecrypt encrypt > test.swcr
$ cat test.swcr
j)l^mhlkl/hplompmimkl/hpljl^l)l^mhp`c
$ sweecrypt decrypt < test.swcr | xxd -rp
Lorem ipsum dolor
Metadata
Release files for sweecrypt 1.1.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| sweecrypt-1.1.6.tar.gz | 4.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| sweecrypt-1.1.6-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.9 kB
Release files / sweecrypt-1.1.6.tar.gz
| Download URL | sweecrypt-1.1.6.tar.gz |
|---|---|
| Size | 4.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8a8d11841993591b9f226f69ee943e86721763ac37bccb0ce71c3182b4c2883a
|
|
BLAKE2b-256 checksum How to use checksums |
5b69b33d9ea4b88ca0328fe6d990e9cbe5ef10aff4dba0fc241ea060a20c8298
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.25
|
Release files / sweecrypt-1.1.6-py3-none-any.whl
| Download URL | sweecrypt-1.1.6-py3-none-any.whl |
|---|---|
| Size | 4.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
905ce7e65284f1c1ab9875f466f6ecf75dd3fa7591e28d3c0f0c94de24c2582e
|
|
BLAKE2b-256 checksum How to use checksums |
4d380b17c08cafbfe3040d65d7dc616b53a4edafb05bb4a73b9b92782cd14b52
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.25
|