Skip to main content

incy_crypto_link (Python)

Python port of @incy/link-encoder — encode VPN subscription URLs into incy://crypt1/<payload> deep links that the INCY iOS, Android, and Desktop clients decode automatically.

Wire-compatible with the JS/PHP/Go ports and the client apps; a pinned test vector guards against drift.

This is obfuscation, not security. The AES-256-GCM key is derived from constants and asset bytes embedded in this package. See the main README for the full threat model.

Install

pip install incy-crypto-link

Requires Python ≥ 3.9 and cryptography.

Usage

from incy_crypto_link import encrypt_link, decrypt_link

link = encrypt_link("https://sub.your-provider.example/abc123token", name="My Provider VPN")
print(link)
# → incy://crypt1/AAECAwQFBgcICQoLNyIQL3rDwRZqnyoD8pGK…

decoded = decrypt_link(link)
print(decoded.url, decoded.name)

API

encrypt_link(url: str, name: str | None = None) -> str
decrypt_link(link: str) -> DecryptedLink          # .url, .name
encrypt_link_deterministic(url: str, iv: bytes, name: str | None = None) -> str  # tests only

VERSION: str
SCHEME_VERSION: str   # "crypt1"
KEY_FINGERPRINT: str  # SHA-256 of K1
SCHEMES: dict[str, SchemeInfo]  # registry of known schemes (today: crypt1)

Tests

python -m unittest discover -s tests -v

Metadata

Release files for incy-crypto-link 1.3.1

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

Source distribution (sdist)

Source distribution for incy-crypto-link 1.3.1
File Size Uploaded Provenance Actions
incy_crypto_link-1.3.1.tar.gz 15.5 kB Without provenance Details for incy_crypto_link-1.3.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for incy-crypto-link 1.3.1
File Interpreter ABI Platform Actions
incy_crypto_link-1.3.1-py3-none-any.whl Python 3 none any Details for incy_crypto_link-1.3.1-py3-none-any.whl

Total release size: 28.8 kB

Security for incy-crypto-link 1.3.1

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.

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