Skip to main content

poixe-encrypt

Python SDK for Poixe API key encryption.

Encrypt your API keys locally before submitting them to Poixe. The plaintext key never leaves your machine — only the enc:v2:... ciphertext is transmitted.

Installation

pip install poixe-encrypt

Requires Python 3.8+ and the cryptography package.

Usage

from poixe_encrypt import ChannelType, encrypt

# OpenAI
cipher = encrypt(ChannelType.OPENAI_CHATGPT, "sk-proj-...")

# Anthropic
cipher = encrypt(ChannelType.ANTHROPIC_CLAUDE, "sk-ant-...")

# Azure (requires endpoint)
cipher = encrypt(ChannelType.AZURE_CHATGPT, "my-key",
    endpoint="https://my-resource.openai.azure.com")

# AWS Bedrock (requires region)
cipher = encrypt(ChannelType.AWS_BEDROCK_CLAUDE, "AKID...",
    region="us-east-1")

# Google Vertex Gemini (Service Account JSON string)
import json
sa = json.loads(open("sa.json").read())
cipher = encrypt(ChannelType.GOOGLE_VERTEX_GEMINI, json.dumps(sa))

Output is a single enc:v2:... ciphertext string.

Public Key

The public key is fetched from https://poixe.com/security.json and cached for the process lifetime. It can also be pinned by fingerprint:

cipher = encrypt(ChannelType.OPENAI_CHATGPT, "sk-proj-...",
    fingerprint="19bb2f01...")

Supported Channel Types

All 32+ channel types are available as constants on ChannelType. See the full list.

License

MIT

Metadata

Release files for poixe-encrypt 0.1.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 poixe-encrypt 0.1.0
File Size Uploaded Provenance Actions
poixe_encrypt-0.1.0.tar.gz 5.3 kB With provenance Details for poixe_encrypt-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for poixe-encrypt 0.1.0
File Interpreter ABI Platform Actions
poixe_encrypt-0.1.0-py3-none-any.whl Python 3 none any Details for poixe_encrypt-0.1.0-py3-none-any.whl

Total release size: 11.2 kB

Release files / poixe_encrypt-0.1.0.tar.gz

Download URL poixe_encrypt-0.1.0.tar.gz
Size 5.3 kB
Tags Source
SHA-256 checksum
How to use checksums
e1df957f4843ef7a0f43c8dcab2429844341e48be5917cc7d0471edb5f23aea0
BLAKE2b-256 checksum
How to use checksums
486d6d6ad61254bf3749afcf60caf5fe297602e3d766330b05ddfed845eec938
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 12, 2026.

Transparency log

Release files / poixe_encrypt-0.1.0-py3-none-any.whl

Download URL poixe_encrypt-0.1.0-py3-none-any.whl
Size 5.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a2007669be2d0b8b9c9d62eccd20b354360fa460c86319936039c3c35d096050
BLAKE2b-256 checksum
How to use checksums
b065a315d4db0f9da1ff29c3999f1db2497445bdf8123c5ad4a7ef498cf37c6a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 12, 2026.

Transparency log

Security for poixe-encrypt 0.1.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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for poixe_encrypt-0.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 12, 2026.

Transparency log

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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files Full 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