Skip to main content

Image

PyZouraEncode

pyZuoraEncodeV2 is a Python library for encrypting card data using RSA public keys, ideal for integrations with Zuora or other systems that require secure data transmission.

Python License PyPi

Installation

You can install the library using pip:
pip install -U pyZuoraEncodeV2

Usage

from pyZuoraEncodeV2 import ZuoraEncrypt

# Initialize a public key 
public_key = "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAld9m3u5AUMAxgbU9sPgzU3rDWVnxpKgpvJPQG5hVZULIxtdaBmRO8zD1WvzeZrj5dFsY4ohipCDS52kszz2w4Ex/p4fGkJh7+1yEp1HvSO9wx1f2p+JVIEdyTH7RtpX2RdejXurukHmZkb/++579ewXVNYMu5Ak152CqppyyaT/V1wus+s9966715Jlf1mTDLh5Lu4pugGoUnZfgIWwB7gVJJoHGJizSlIb1Mw7OQZtYAQjuaYlxXZPghAFIXLwP4XC5QSlK1/P2Rqh7OSuNbC6aNowgf5nUqqsjl8iz5Jhjja4hIqxmO20ilXdhT2y2awevWR10F8cvFkOWYB380QIDAQAB" 

zuora = ZuoraEncrypt(public_key)

# Encrypt data
Card = "4242424242424242|12|2030|025"
Card_Encrypted = zuora.encrypt(Card)

print(Card_Encrypted)
# Result: Ohyqa+uLuEKUYhfVTtGESLYLS6...

Main Methods

Method Description
ZuoraEncrypt(public_key=None) Initializes the object with an optional public key.
set_key(public_key) Sets or changes the public key.
encrypt(data) Encrypts a string and returns the result in base64.

• Python 3.6 or higher

• PyCriptoDome:

pip install pycryptodome

Metadata

Release files for pyZuoraEncodeV2 1.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 pyZuoraEncodeV2 1.1
File Size Uploaded Provenance Actions
pyZuoraEncodeV2-1.1.tar.gz 15.9 kB Without provenance Details for pyZuoraEncodeV2-1.1.tar.gz

Built distribution (wheel)

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

Total release size: 31.9 kB

Release files / pyZuoraEncodeV2-1.1.tar.gz

Download URL pyZuoraEncodeV2-1.1.tar.gz
Size 15.9 kB
Tags Source
SHA-256 checksum
How to use checksums
78306a0a51a15d997547573504c01e98358a39f225cddedbe55f859b286957e0
BLAKE2b-256 checksum
How to use checksums
e6c9eaf3713b5b736cdd5e01f83afc6ae199466686a7d7931191908acded97a3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.5

Release files / pyZuoraEncodeV2-1.1-py3-none-any.whl

Download URL pyZuoraEncodeV2-1.1-py3-none-any.whl
Size 16.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
41095cb9bcdd7041c1986f82cf173f5c195fa6b89163a7902cee85fae42925f3
BLAKE2b-256 checksum
How to use checksums
49b3c334558cf4c9c785f28e84dde061fa3c0e2126e65849b5f53940fa0a02ab
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.5

Security for pyZuoraEncodeV2 1.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.

Release history Release notifications | RSS feed

This release

1.1 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