A Python packege for Cryptographic algorithms
Project description
# PyCrypt
A collection of **cryptographic algorithms** like Reverse Cipher , Caeser Cipher and many more to be used in encryption srcipts.It is easy to use and can be implement in any scripts with little or no knowledge of Cryptography.
**It is still in devolopment**
# Algoritms include:
Till now I am able include only a handfull of cryptograhic algoritms and **looking forward to add more**.The algorithms included in PyCrypt package :
* Reverse Cipher
* Caeser Cipher
* ROT13 Cipher
* XOR Cipher
* Affine Cipher
* Viginere Cipher
# Installation
From Pypi:
Make sure you're using `python3` and have `pip` installed and enabled. On the command line, simply run:
`pip install pycrypt_dev`
And From GitHub Repo:
clone the repository
`git clone https://github.com/ayanbag/pycrypt.git`
Navigate into the project directory
`cd pycrypt`
Install pydl and its dependencies
`python setup.py install`
# Tutorials
To use **PyCrypt** in your programs, you have to import it :
`import py.pycrypt`
* Reverse Cipher:
`py.pycrypt.reverse.cipher(message)`
where, message -> It is a set of characters or strings which you want to encrypt.
**NOTE**:
To decrypt the current cipher text which is encrypted with Reverse Cipher,
~~~~
from pycrypt import reverse_cipher
cipher_text="nayA'
print(reverse_cipher(cipher_text))
~~~~
Output : Ayan
* Caeser Cipher:
`py.pycrypt.caesar_cipher(message,encode=False,decode=False)`
where, message ->(string) It is a set of characters or strings which you want to encrypt or decrypt.
encode ->(Boolean) Set *True* if you want to encrypt the current message.By default it is *False*.
decode ->(Boolean) Set *True* if you want to decrypt the current cipher text.By default it is *False*.
* ROT13 Cipher:
`py.pycrypt.rot13_cipher(message)`
where, message ->(string) It is a set of characters or strings which you want to encrypt.
**NOTE**:
To decrypt the current cipher text which is encrypted with ROT13 Cipher,
~~~~
from py.pycrypt import rot13_cipher
cipher_text="nlna'
print(rot13_cipher(cipher_text))
~~~~
Output : ayan
* XOR Cipher:
`py.pycrypt.xor_cipher(message,key)`
where, message ->(string) It is a set of characters or strings which you want to encrypt.
key ->(string) Used to encrypt message.
**NOTE**:
To decrypt the current cipher text which is encrypted with XOR Algoritms,
~~~~
from py.pycrypt import xor_cipher
cipher_text="SHRZ'
print(xor_cipher(cipher_text))
~~~~
Output : ayan
* Affine Cipher:
`py.pycrypt.affine_cipher(message,encode=False,decode=False)`
where, message ->(string) It is a set of characters or strings which you want to encrypt or decrypt.
encode ->(Boolean) Set *True* if you want to encrypt the current message.By default it is *False*.
decode ->(Boolean) Set *True* if you want to decrypt the current cipher text.By default it is *False*.
* Viginere Cipher:
`py.pycrypt.viginere_cipher(message,keyword='crypto',decencode=False,decode=False)`
where, message ->(string) It is a set of characters or strings which you want to encrypt or decrypt.
keyword ->(string) Used to encrypt or decrypt message as key to the lock.
encode ->(Boolean) Set *True* if you want to encrypt the current message.By default it is *False*.
decode ->(Boolean) Set *True* if you want to decrypt the current cipher text.By default it is *False*.
# PyCrypt CLI
PyCrypt comes with a interctive Help CLI. To activate the PyCrypt Help CLI , on the command line, simply run:
`$ pycrypt`
**or**
`$ pycrypt [Funtion_Name]`
A collection of **cryptographic algorithms** like Reverse Cipher , Caeser Cipher and many more to be used in encryption srcipts.It is easy to use and can be implement in any scripts with little or no knowledge of Cryptography.
**It is still in devolopment**
# Algoritms include:
Till now I am able include only a handfull of cryptograhic algoritms and **looking forward to add more**.The algorithms included in PyCrypt package :
* Reverse Cipher
* Caeser Cipher
* ROT13 Cipher
* XOR Cipher
* Affine Cipher
* Viginere Cipher
# Installation
From Pypi:
Make sure you're using `python3` and have `pip` installed and enabled. On the command line, simply run:
`pip install pycrypt_dev`
And From GitHub Repo:
clone the repository
`git clone https://github.com/ayanbag/pycrypt.git`
Navigate into the project directory
`cd pycrypt`
Install pydl and its dependencies
`python setup.py install`
# Tutorials
To use **PyCrypt** in your programs, you have to import it :
`import py.pycrypt`
* Reverse Cipher:
`py.pycrypt.reverse.cipher(message)`
where, message -> It is a set of characters or strings which you want to encrypt.
**NOTE**:
To decrypt the current cipher text which is encrypted with Reverse Cipher,
~~~~
from pycrypt import reverse_cipher
cipher_text="nayA'
print(reverse_cipher(cipher_text))
~~~~
Output : Ayan
* Caeser Cipher:
`py.pycrypt.caesar_cipher(message,encode=False,decode=False)`
where, message ->(string) It is a set of characters or strings which you want to encrypt or decrypt.
encode ->(Boolean) Set *True* if you want to encrypt the current message.By default it is *False*.
decode ->(Boolean) Set *True* if you want to decrypt the current cipher text.By default it is *False*.
* ROT13 Cipher:
`py.pycrypt.rot13_cipher(message)`
where, message ->(string) It is a set of characters or strings which you want to encrypt.
**NOTE**:
To decrypt the current cipher text which is encrypted with ROT13 Cipher,
~~~~
from py.pycrypt import rot13_cipher
cipher_text="nlna'
print(rot13_cipher(cipher_text))
~~~~
Output : ayan
* XOR Cipher:
`py.pycrypt.xor_cipher(message,key)`
where, message ->(string) It is a set of characters or strings which you want to encrypt.
key ->(string) Used to encrypt message.
**NOTE**:
To decrypt the current cipher text which is encrypted with XOR Algoritms,
~~~~
from py.pycrypt import xor_cipher
cipher_text="SHRZ'
print(xor_cipher(cipher_text))
~~~~
Output : ayan
* Affine Cipher:
`py.pycrypt.affine_cipher(message,encode=False,decode=False)`
where, message ->(string) It is a set of characters or strings which you want to encrypt or decrypt.
encode ->(Boolean) Set *True* if you want to encrypt the current message.By default it is *False*.
decode ->(Boolean) Set *True* if you want to decrypt the current cipher text.By default it is *False*.
* Viginere Cipher:
`py.pycrypt.viginere_cipher(message,keyword='crypto',decencode=False,decode=False)`
where, message ->(string) It is a set of characters or strings which you want to encrypt or decrypt.
keyword ->(string) Used to encrypt or decrypt message as key to the lock.
encode ->(Boolean) Set *True* if you want to encrypt the current message.By default it is *False*.
decode ->(Boolean) Set *True* if you want to decrypt the current cipher text.By default it is *False*.
# PyCrypt CLI
PyCrypt comes with a interctive Help CLI. To activate the PyCrypt Help CLI , on the command line, simply run:
`$ pycrypt`
**or**
`$ pycrypt [Funtion_Name]`
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
pycrypt_dev-0.1.dev1.tar.gz
(3.7 kB
view details)
Built Distribution
File details
Details for the file pycrypt_dev-0.1.dev1.tar.gz
.
File metadata
- Download URL: pycrypt_dev-0.1.dev1.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.18.4 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.6.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 452fbc4515342ada1db35ba0aa25eaa468542278b55c14acb94f2fe1a784e8a1 |
|
MD5 | 560b559bbe5051f6c619c191ed804dd1 |
|
BLAKE2b-256 | f9b9d769e0543c762d646820dbca189d516950bf5aef3a055e3f1f4965d637b3 |
File details
Details for the file pycrypt_dev-0.1.dev1-py3-none-any.whl
.
File metadata
- Download URL: pycrypt_dev-0.1.dev1-py3-none-any.whl
- Upload date:
- Size: 3.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.18.4 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.6.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 55b9d5c656f8371910ce40ff80ca4964362e4e616db389535eddc914f4921755 |
|
MD5 | 921c59e2e42f29ec4d417947e80a641a |
|
BLAKE2b-256 | d2372ca26f99f7b3e326df9a3021d544f3f4c2c739038e0a7f1b68acfe5b773f |