A simple and fun cipher
Find a file
2025-04-05 01:16:10 -07:00
.forgejo/workflows Update .forgejo/workflows/syntax.yml 2025-04-05 01:16:10 -07:00
sweecrypt Update sweecrypt/__init__.py 2025-03-19 16:41:37 -07:00
.gitignore Initial commit 2024-04-02 16:38:09 -07:00
LICENSE Initial commit 2024-04-02 16:38:09 -07:00
README.md Update README.md 2025-03-19 21:08:17 -07:00
setup.py Update setup.py 2025-03-22 11:38:04 -07:00

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:

pip3 install sweecrypt

Import:

>>> import sweecrypt

Encrypt:

>>> sweecrypt.encrypt("hello, world!")
!?~~(:,}(>~/a

Decrypt:

>>> 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'

So it will output a nonsense string if shifted incorrectly.

>>> sweecrypt.decrypt("\\!((>ba_>](#")
'khoor?!zruog'