A Package to Cipher text
Project description
ciphercaesar
A ciphering lib for python. Uses Caesar encryption to encrypt messages. Can also cipher text from sequences.
Installation
Installing ciphercaesar via pip
Windows:
$ pip install ciphercaesar
MacOS or Linux:
$ pip3 install ciphercaesar
Usage
This is a really simple project with ease of opperation in mind. Simply import or its specific functions explicitly:
import ciphercaesar
or
from ciphercaesar import encrypt, decrypt
and that is it (just like most of the other packages). Now you will be able to access its 2 functions: encrypt and decrypt.
Example with a String
Both of these functions take in 3 params, the last one being optional.
An example use could be
from ciphercaesar import encrypt, decrypt
print("Encrypting 'Hello World!':", encrypt("Hello World!", 5))
And by executing this piece of code, you would get the following output
Encrypting 'Hello World!': Mjqqt btwqi!
Example with an Interable
You could also use both of these functions on interables by using the 3rd param
print(decrypt(["Mjqqt", "btwqi!"], 5, multi=True))
Now the first param, text is a list and the 3rd param is set to True. This set of params would now return a list of strings, instead of a single string.
This I found, was quite useful in decrypting and encrypting a table row by row. And the output of the code is shown below
['Hello', 'World!']
Note
Note that this is this project's alpha release and one may encounter some bugs, if any bugs are found, please report them. As this encryption algorithm is quite simple, it is recommended that it shouldn't be used for anything more than a little fun and to represent better encryption just for a mild presentation
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file ciphercaesar-0.1.1.tar.gz
.
File metadata
- Download URL: ciphercaesar-0.1.1.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 080c6293b003d1f476138fbe26a74dc58683e505509e6ee2dcdefe9152e4fcf1 |
|
MD5 | 6c21a9e873961d1291f9dd4ab5dc7e9d |
|
BLAKE2b-256 | 8777870189ead88f06941ad2089d0fa862f3d2f5dd187df1c61c46fa6b07a7f0 |
File details
Details for the file ciphercaesar-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: ciphercaesar-0.1.1-py3-none-any.whl
- Upload date:
- Size: 4.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 068d6db53cb5c90c1322fe0414917a0c6b79967fe50144d6c662982c7963df17 |
|
MD5 | 4493b0f18b4e6d8dc53e2da7fb4e191f |
|
BLAKE2b-256 | aa655474131049b002ef72d087638d8f6581e6f6229720fdba92d5b5acccfbb7 |