Skip to main content

Azlibs V1.0.0

A Family Dev Project

in Package

  • RSA & OAEP PROJECT
  • base 16 to 91

Features on RSA & OAEP

  • RSA key generation (512–4096 bits)
  • OAEP secure padding (SHA-256)
  • Text encryption & decryption
  • Digital signature support (sign & verify)
  • Pure Python - no external dependencies

Features on our base

  • Base enc/dec: base16, base32, base85, base62, base64, base91
  • Pure Python script - no external dependencies

Installation Azlibs

pip install azlibs

Usage of RSA

Generate RSA Keypair

from Azlibs.RSATools import genkey

# Generate a 2048-bit RSA keypair
public_key, private_key = genkey(2048)

print("Public Key:", public_key)
print("Private Key:", private_key)

Encrypt and Decrypt Text

from Azlibs.RSATools import encrypt_text, decrypt_text

message = "Hello from AkzDev!"
cipher = encrypt_text(message, public_key)
print("Encrypted:", cipher)

decrypted = decrypt_text(cipher, private_key)
print("Decrypted:", decrypted)

Output (contoh):

Encrypted: 592031591054735219...
Decrypted: Hello from AkzDev!

Sign and Verify Messages

from Azlibs.RSATools import sign_message, verify_signature

msg = "This is an important message"
signature = sign_message(msg, private_key)
print("Signature:", signature)

# Verification
is_valid = verify_signature(msg, signature, public_key)
print("Valid:", is_valid)

Output (contoh):

Signature: 38475018274018247...
Valid: True

Usage base

Encryption (base64 example)

from Azlibs.base import b64enc

a = "Hallo World"
b = b64enc(a)
print("encrypted text :", b)

Decryption (base64 example)

from Azlibs.base import b64dec

a = "SGFsbG8gV29ybGQ="  # Hello World
b = b64dec(a)
print("plaintext from decrypt :", b)

License

This project is licensed under the MIT License — see LICENSE for details.
Made with love by AkzDev Team
A project proudly part of the Akuzz Open Source Ecosystem.

Note

Azlibs is still in Version 1.0.0

“Azlibs: simple, powerful, and open for every developer.”

Metadata

Release files for azlibs 2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for azlibs 2.0
File Size Uploaded Provenance
azlibs-2.0.tar.gz 7.0 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for azlibs 2.0
File Interpreter ABI Platform
azlibs-2.0-py3-none-any.whl Python 3 none any Details

Total release size: 14.6 kB

Release files / azlibs-2.0.tar.gz

Download URL azlibs-2.0.tar.gz
Size 7.0 kB
Tags Source
SHA-256 checksum
How to use checksums
ac523c98f31099a9d29954152e72865c8fc8a4b544bb3c5e400b20e834bf2054
BLAKE2b-256 checksum
How to use checksums
0ebb84bb540099c47a136bff28b18437e0b4cf1fc4992915599e2a3cf9eb6cc4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.10

Release files / azlibs-2.0-py3-none-any.whl

Download URL azlibs-2.0-py3-none-any.whl
Size 7.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8758f7ed986f74deb38470a715d726ecff4a850f6b60960d6935c240f5d65951
BLAKE2b-256 checksum
How to use checksums
6cc5047603d272136416f4d4142a11a2b75ab3f7142bd86749cccf33243892d5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.10

Security for azlibs 2.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.

Release history Release notifications | RSS feed

This release

2.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page