bit-shifrator-0.5
توضیحات
This is a bit-encoder module
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | bit-shifrator-0.5 |
| نام | bit-shifrator |
| نسخه کتابخانه | 0.5 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | michazaxm |
| ایمیل نویسنده | michazaxm@gmail.com |
| آدرس صفحه اصلی | https://github.com/michazaxm/shifrator |
| آدرس اینترنتی | https://pypi.org/project/bit-shifrator/ |
| مجوز | - |
# About
This library turns bytes into bits and allows them to be encrypted with a password
# Installing:
```bash
pip install shifrator
```
# Using:
### BitEncode
```python
from shifrator import BitArray
data = BitArray('Hello'.encode('UTF-8'))
print(data) # Printing bits
data.bitEncode('password') # Encoding with password, password must be str
print(data.to_bytes()) # printing bytes
data.bitDecode('password') # Decoding with password, password must be str
print(data.to_bytes()) # Printing of original value
```
### XOR
```python
from shifrator import BitArray
data = BitArray('Hello'.encode('UTF-8'))
print(data) # Printing bits
key = data.xorEncode() # Return key
print(data.to_bytes()) # printing bytes
data.xorDecode(key) # Decoding with key, key must be bytes
print(data.to_bytes()) # Printing of original value
```
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.9 | Python |
نحوه نصب
نصب پکیج whl bit-shifrator-0.5:
pip install bit-shifrator-0.5.whl
نصب پکیج tar.gz bit-shifrator-0.5:
pip install bit-shifrator-0.5.tar.gz