cipher-tools-0.0.3
توضیحات
A python library to assist in the creation of ciphers
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | cipher-tools-0.0.3 |
| نام | cipher-tools |
| نسخه کتابخانه | 0.0.3 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Luke Spademan |
| ایمیل نویسنده | info@lukespademan.com |
| آدرس صفحه اصلی | https://gitlab.com/mokytis/cipher-tools |
| آدرس اینترنتی | https://pypi.org/project/cipher-tools/ |
| مجوز | MIT |
# Cipher Tools
This is a python library that contains some tools for making ciphers.
In was originaly made of use at a childrens workshop at PyCon UK 2019.
[](https://gitlab.com/mokytis/cipher-tools/commits/master)
## Installation
Run the following to install:
```python
pip install cipher-tools
```
## Usage
### Shift
Shift some text by an arbitrary amount. Text case is preserved.
Code:
```python
from cipher_tools import shift
shifted_text = shift("AbCdEfgYZ", 2)
print(shifted_text)
```
Output:
```
CdEfGhiAB
```
### Rot13
You can encrypt / decrypt text using rot13.
Code:
```python
from cipher_tools import rot13
# Apply Rot13 to a phrase
cipher_text = rot13("Hello, World!")
print(cipher_text)
```
Output:
```
Uryyb, Jbeyq!
```
Code:
```python
from cipher_tools import rot13
# Decrtpt the text
plain_text = rot13("Uryyb, Jbeyq!")
print(plain_text)
```
Output:
```
Hello, World!
```
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.8,<4.0 | Python |
نحوه نصب
نصب پکیج whl cipher-tools-0.0.3:
pip install cipher-tools-0.0.3.whl
نصب پکیج tar.gz cipher-tools-0.0.3:
pip install cipher-tools-0.0.3.tar.gz