https://github.com/mathix420/multiplexer
[WIP] New cypher library
https://github.com/mathix420/multiplexer
Last synced: 11 months ago
JSON representation
[WIP] New cypher library
- Host: GitHub
- URL: https://github.com/mathix420/multiplexer
- Owner: mathix420
- Created: 2020-05-10T14:25:47.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2023-02-24T12:45:46.000Z (over 3 years ago)
- Last Synced: 2025-06-27T23:03:01.373Z (12 months ago)
- Language: Python
- Size: 13.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Multiplexer
> Multiplexer is an encryption library.
## Installation
```bash
pip install multiplexer
```
## Usage
```python
from multiplexer import Plex, generate, load
book = load() or generate("michel", save=True)
p = Plex(book)
cypher = p.encode('My secret message')
print(cypher)
secret_message = p.decode(cypher)
print(secret_message)
# Human readable
cypher = p.h_encode('My secret message')
print(cypher)
secret_message = p.h_decode(cypher)
print(secret_message)
```
## Logging
```python
import logging
logger = logging.getLogger('multiplexer')
logger.setLevel(logging.INFO)
```