Skip to main content

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 +H before running or by piping instead

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.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sweecrypt 1.1.5
File Size Uploaded
sweecrypt-1.1.5.tar.gz 4.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for sweecrypt 1.1.5
File Interpreter ABI Platform
sweecrypt-1.1.5-py3-none-any.whl Python 3 none any Details

Total release size: 8.6 kB

Release files / sweecrypt-1.1.5.tar.gz

Download URL sweecrypt-1.1.5.tar.gz
Size 4.1 kB
Tags Source
SHA-256 checksum
How to use checksums
d49c0965c63e0356b95a69a3413c809d3db24047b99ea20d51563d8d567e8add
BLAKE2b-256 checksum
How to use checksums
363d047f6d63c4f4c588d6314542cf930010a608df47d9e084b78178ea8555e4
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.5-py3-none-any.whl

Download URL sweecrypt-1.1.5-py3-none-any.whl
Size 4.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
12aa4cf30fe51cec8c8ead830e8b431551a1eb1810baf763dd84d5586e87697c
BLAKE2b-256 checksum
How to use checksums
51746739ad3b292afe3c3743d816422ac307c80b035a721df3c72b1be0e36f30
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.25

Release history Release notifications | RSS feed

This release

1.1.5 This release

2 release files

1.1.4

2 release files

1.1.2

2 release files

1.1.1

2 release files

1.1.0

2 release files

1.0.5

2 release files

1.0.4

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0

2 release 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