Skip to main content

Azlibs — a Package for dev library by AkzDev

Project description

Azlibs V1.0.0

A Family Dev Project

in Package

  • RSA & OAEP PROJECT

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

Installation Azlibs

pip install azlibs

Usage of RSA

Generate RSA Keypair

from Azlib.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 Azlib.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 Azlib.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

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.”

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

azlibs-1.0.0.tar.gz (5.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

azlibs-1.0.0-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

File details

Details for the file azlibs-1.0.0.tar.gz.

File metadata

  • Download URL: azlibs-1.0.0.tar.gz
  • Upload date:
  • Size: 5.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.10

File hashes

Hashes for azlibs-1.0.0.tar.gz
Algorithm Hash digest
SHA256 89d6064482436a43c14ca0f1cc191bf012fd195b6bc082b7a73566d89b6e20a1
MD5 54d73628869838eed4078d6a9879eaf2
BLAKE2b-256 b8f4a4ccef82735dc7ce6383bfb5d6819ba406941d12de6d9d9d7005aa49d27a

See more details on using hashes here.

File details

Details for the file azlibs-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: azlibs-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 5.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.10

File hashes

Hashes for azlibs-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9530641b0aea8da480909b30ec8d9ab0c8f164ae5eedb63336fb06e8b364d9c7
MD5 474c2c5c83fe307e3c0726f605e71c0f
BLAKE2b-256 f693657ec486f81ad5ae8e510b2b452abccdde4b11bceb78121ba47fdd97b2a9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page