Skip to main content

Python Package to encode and decode strings using ciphers.

Project description

PyPI - Downloads PyPI - Version PyPI - Version

encdecpy

Python package to encode and decode strings using ciphers.

Installation

$ pip install encdecpy

Usage

  1. 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.
  1. 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.
  1. 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.
  1. 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)

Uploaded Source

Built Distribution

encdecpy-0.1-py3-none-any.whl (4.8 kB view hashes)

Uploaded Python 3

Supported by

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