Skip to main content

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sweecrypt-1.1.5.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sweecrypt-1.1.5-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

Details for the file sweecrypt-1.1.5.tar.gz.

File metadata

  • Download URL: sweecrypt-1.1.5.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.25

File hashes

Hashes for sweecrypt-1.1.5.tar.gz
Algorithm Hash digest
SHA256 d49c0965c63e0356b95a69a3413c809d3db24047b99ea20d51563d8d567e8add
MD5 582f6906c3b9869dcba8e0b3a9d1f69e
BLAKE2b-256 363d047f6d63c4f4c588d6314542cf930010a608df47d9e084b78178ea8555e4

See more details on using hashes here.

File details

Details for the file sweecrypt-1.1.5-py3-none-any.whl.

File metadata

  • Download URL: sweecrypt-1.1.5-py3-none-any.whl
  • Upload date:
  • Size: 4.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.25

File hashes

Hashes for sweecrypt-1.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 12aa4cf30fe51cec8c8ead830e8b431551a1eb1810baf763dd84d5586e87697c
MD5 bc5c1669387ca4524d096ef162a97297
BLAKE2b-256 51746739ad3b292afe3c3743d816422ac307c80b035a721df3c72b1be0e36f30

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page