DIM Algorithm Plugins (Python)
Dependencies
- Latest Versions
| Name | Version | Description |
|---|---|---|
| Ming Ke Ming (名可名) | Decentralized User Identity Authentication | |
| Dao Ke Dao (道可道) | Universal Message Module | |
| DIMP (去中心化通讯协议) | Decentralized Instant Messaging Protocol |
Plugins
- Data Coding
- Base-58
- Base-64
- Hex
- UTF-8
- JsON
- PNF (Portable Network File)
- TED (Transportable Encoded Data)
- Digest Digest
- SHA-256
- Keccak-256
- RipeMD-160
- Cryptography
- AES-256 (AES/CBC/PKCS7Padding)
- RSA-1024 (RSA/ECB/PKCS1Padding), (SHA256withRSA)
- ECC (Secp256k1)
Plugin Loader
from typing import Optional
from dimp import Base64
from dimap import PluginLoader
from dimap import Base64Coder
class CommonPluginLoader(PluginLoader):
# Override
def register_base64_coder(self):
# Base64 coding
Base64.coder = _PatchBase64Coder()
# Base-64
class _PatchBase64Coder(Base64Coder):
# Override
def decode(self, string: str) -> Optional[bytes]:
string = self.trim_base64_string(b64=string)
return super().decode(string=string)
@staticmethod
def trim_base64_string(b64: str) -> str:
if '\n' in b64:
b64 = b64.replace('\n', '')
b64 = b64.replace('\r', '')
b64 = b64.replace('\t', '')
b64 = b64.replace(' ', '')
return b64.strip()
This library is primarily designed to implement various algorithms in a plug-in manner, allowing you to further develop additional algorithms tailored to your specific applications.
Metadata
Release files for dimap 2.5.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| dimap-2.5.0.tar.gz | 24.1 kB | Without provenance | Details for dimap-2.5.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| dimap-2.5.0-py3-none-any.whl | Python 3 | none | any | Details for dimap-2.5.0-py3-none-any.whl |
Total release size: 71.8 kB
Release files / dimap-2.5.0.tar.gz
| Download URL | dimap-2.5.0.tar.gz |
|---|---|
| Size | 24.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
111580b80a184216984697bb98adcdd356592fdf804db44c0d371f20c4b9babb
|
|
BLAKE2b-256 checksum How to use checksums |
61d47214e67f2e1b511cebc3ee7a780eeb0b8568eee30bd8d8574ca05db257bc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/68.0.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.0b3
|
Release files / dimap-2.5.0-py3-none-any.whl
| Download URL | dimap-2.5.0-py3-none-any.whl |
|---|---|
| Size | 47.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7db0a32a80a47df47d60fbb8643af54d8e3a622f0a1f29dbc21ebeea5fde2cd6
|
|
BLAKE2b-256 checksum How to use checksums |
b12dd8664c5754c10e36aa265ef4ae0112b99303c002aa0d07d4e7ad8c51d030
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/68.0.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.0b3
|
Security for dimap 2.5.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.