ABP is an encryption algorithm.
Project description
ABP Tools
ABP (Additional Binary Patterns) is a string encryption algorithm, designed on March 31, 2025. It is based on the use of a table of patterns to transform a text in a reversible way. From the MazeGroup Wiki page (in french).
Installation
With PyPi :
Use the command pip install abp-tools.
Usage
Importation
The code below imports ABP :
from abp import *
Encoding
The function encode(text: str, patterns: list[list[int]]) -> bytes takes the string to encode/encrypt and a list of list of numbers (the table of patterns), it returns a bytes string.
Decoding
The function decode(ciphertext: bytes, patterns: list[list[int]]) -> str takes the bytes string and the table of patterns to decode, it returns a string.
Key to patterns (K2P)
The function generate_patterns(key: str, num_patterns: int = 100) -> list takes a string key and a number of patterns to generate, it returns the table of patterns corresponding to the parameters.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file abp-tools-0.1.2.tar.gz.
File metadata
- Download URL: abp-tools-0.1.2.tar.gz
- Upload date:
- Size: 2.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.22
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e226a0d62cb2e4357e12b16b19593109f69e75436906d4ceaac5cfd0c4dbfed3
|
|
| MD5 |
b6d99221453408d335c76be8856ece08
|
|
| BLAKE2b-256 |
f873ef01a827df57997a2b057ffb76440ae9ccacf3017660729c4d4df4df8c4e
|