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


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.4.tar.gz (3.9 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.4-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

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

Hashes for sweecrypt-1.1.4.tar.gz
Algorithm Hash digest
SHA256 52e3f29c561b5c6df14d0c090cc752a4d723a335ce8c566de889b5ce4ffbcf16
MD5 36fb4d8e31298cb6a40a68d831325f46
BLAKE2b-256 b0f414113d0c7a92db173a0e89208c11cc1148b9c045afb5e3e16562fc4187ee

See more details on using hashes here.

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

Hashes for sweecrypt-1.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 0de849e0cf5ef8cca5046822d1ff197599ef40d17ee67e7e5b4c7f364623b219
MD5 61996f43b61690a64ce74785c6e08dee
BLAKE2b-256 201e8283fe82e5604b8f3744d8727d52426ec6299e1897d468f30365117807c8

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