Skip to main content

Post-quantum cryptographic identity and verification SDK for AI agents.

Project description

pqagents

Post-quantum cryptographic identity and verification SDK for AI agents.

Secure your AI agents against future quantum computer threats using NIST-approved post-quantum algorithms (ML-DSA-65).

Installation

pip install pqagents

Usage

1. Generating Agent Keys

from pqagents import generate_agent_keys

keys = generate_agent_keys()
print("Public Key:", keys["publicKey"]) # Save to your database
print("Secret Key:", keys["secretKey"]) # Give securely to your agent

2. Signing a Payload

from pqagents import sign_agent_token

payload = {"action": "trade", "amount": 100, "asset": "BTC"}
token = sign_agent_token(payload, keys["secretKey"])

3. Verifying a Signature

from pqagents import verify_agent_token

is_valid = verify_agent_token(token, keys["publicKey"])

if is_valid: print("Cryptographically verified! Action approved.")

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

pqagents-1.0.0.tar.gz (2.4 kB view details)

Uploaded Source

Built Distribution

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

pqagents-1.0.0-py3-none-any.whl (2.6 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for pqagents-1.0.0.tar.gz
Algorithm Hash digest
SHA256 f01f59118e8b4ad2e0d14d4af8dbdb2625627767fc9969b25ae16cfea41d79a3
MD5 eba3ce07009200e71a6873c9ace75e2c
BLAKE2b-256 cfd2f08f14074da8c758bf10e4f84a3a7f22a9ccce29e2ba36b11ac5b9b60cb3

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for pqagents-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e522647672e5cba92c76be327cf353b98d4d20fcd905ec4cf8fe26c1c8d80a46
MD5 e9fac5a3c752290985776c49ff32a6b5
BLAKE2b-256 6e35bcb0408bc81ba9af9acea1a02ac88c16822ca7f7ef77c7146b8cc92ce064

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