Python Package to encode and decode strings using ciphers.
Project description
encdecpy
Python package to encode and decode strings using ciphers.
Installation
$ pip install encdecpy
Usage
- Base64 encoding-decoding: Parameter is a string. A string is returned.
Do
from encdecpy import base64
string = 'lorem ipsum ...'
print(base64(string).encode())
print(base64(string).decode())
- base64(string).encode() : To encode a string.
- base64(string).decode() : To decode a string.
- Atbash encoding-decoding: Parameter is a string. A string is returned.
Do
from encdecpy import atbash
string = 'lorem ipsum ...'
print(atbash(string).encode())
print(atbash(string).decode())
- atbash(string).encode() : To encode a string.
- atbash(string).decode() : To decode a string.
- ROT13 encoding-decoding: Parameter is a string. A string is returned.
Do
from encdecpy import rot13
string = 'lorem ipsum ...'
print(rot13(string).encode())
print(rot13(string).decode())
- rot13(string).encode() : To encode a string.
- rot13(string).decode() : To decode a string.
- Caesar encoding-decoding: Parameters are a string and a key(integer) . A string is returned.
Do
from encdecpy import caesar
string = 'lorem ipsum ...'
key = 8
print(caesar(string,key).encode())
print(caesar(string,key).decode())
- caesar(string,key).encode() : To encode a string.
- caesar(string,key).decode() : To decode a string.
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
encdecpy-0.1.tar.gz
(3.0 kB
view hashes)
Built Distribution
encdecpy-0.1-py3-none-any.whl
(4.8 kB
view hashes)