pyZuoraEncodeV2


NamepyZuoraEncodeV2 JSON
Version 1.1 PyPI version JSON
download
home_pagehttps://github.com/LuiisDev21/pyZuoraEncode
SummaryA Python library for encrypt CreditCard data for Zuora Payment Gateway
upload_time2025-08-11 02:09:01
maintainerNone
docs_urlNone
authorLuiisDev21
requires_python>=3.6
licenseMIT
keywords zuora encrypt creditcard payment gateway zuoraencrypt zuorapayment
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            ![Image](https://companieslogo.com/img/orig/ZUO_BIG-16a6d064.png?t=1720244494)
# <p align="center">PyZouraEncode</p>
 
`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](https://img.shields.io/badge/Python-3.10.5-yellow.svg?logo=python&logoColor=white)](https://www.python.org/downloads/release/python-3105/) 
[![License](https://img.shields.io/badge/License-GPL-green.svg)](https://opensource.org/licenses/GPL)
[![PyPi](https://img.shields.io/badge/PyPi-View_Package-blue.svg?logo=python&logoColor=white)](https://pypi.org/project/pyZuoraEncodeV2/) 
----------

## Installation

##### You can install the library using pip:

```sh
pip install -U pyZuoraEncodeV2
```


## Usage

```python
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.  |



## Requierements ![Python Logo](https://upload.wikimedia.org/wikipedia/commons/thumb/c/c3/Python-logo-notext.svg/20px-Python-logo-notext.svg.png)

#### • Python 3.6 or higher
#### • PyCriptoDome:

```sh
pip install pycryptodome
```



            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/LuiisDev21/pyZuoraEncode",
    "name": "pyZuoraEncodeV2",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": null,
    "keywords": "zuora, encrypt, creditcard, payment, gateway, zuoraencrypt, zuorapayment",
    "author": "LuiisDev21",
    "author_email": "Xetwy21@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/e6/c9/eaf3713b5b736cdd5e01f83afc6ae199466686a7d7931191908acded97a3/pyZuoraEncodeV2-1.1.tar.gz",
    "platform": null,
    "description": "![Image](https://companieslogo.com/img/orig/ZUO_BIG-16a6d064.png?t=1720244494)\r\n# <p align=\"center\">PyZouraEncode</p>\r\n \r\n`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.\r\n\r\n\r\n[![Python](https://img.shields.io/badge/Python-3.10.5-yellow.svg?logo=python&logoColor=white)](https://www.python.org/downloads/release/python-3105/) \r\n[![License](https://img.shields.io/badge/License-GPL-green.svg)](https://opensource.org/licenses/GPL)\r\n[![PyPi](https://img.shields.io/badge/PyPi-View_Package-blue.svg?logo=python&logoColor=white)](https://pypi.org/project/pyZuoraEncodeV2/) \r\n----------\r\n\r\n## Installation\r\n\r\n##### You can install the library using pip:\r\n\r\n```sh\r\npip install -U pyZuoraEncodeV2\r\n```\r\n\r\n\r\n## Usage\r\n\r\n```python\r\nfrom pyZuoraEncodeV2 import ZuoraEncrypt\r\n\r\n# Initialize a public key \r\npublic_key = \"MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAld9m3u5AUMAxgbU9sPgzU3rDWVnxpKgpvJPQG5hVZULIxtdaBmRO8zD1WvzeZrj5dFsY4ohipCDS52kszz2w4Ex/p4fGkJh7+1yEp1HvSO9wx1f2p+JVIEdyTH7RtpX2RdejXurukHmZkb/++579ewXVNYMu5Ak152CqppyyaT/V1wus+s9966715Jlf1mTDLh5Lu4pugGoUnZfgIWwB7gVJJoHGJizSlIb1Mw7OQZtYAQjuaYlxXZPghAFIXLwP4XC5QSlK1/P2Rqh7OSuNbC6aNowgf5nUqqsjl8iz5Jhjja4hIqxmO20ilXdhT2y2awevWR10F8cvFkOWYB380QIDAQAB\" \r\n\r\nzuora = ZuoraEncrypt(public_key)\r\n\r\n# Encrypt data\r\nCard = \"4242424242424242|12|2030|025\"\r\nCard_Encrypted = zuora.encrypt(Card)\r\n\r\nprint(Card_Encrypted)\r\n# Result: Ohyqa+uLuEKUYhfVTtGESLYLS6...\r\n```\r\n\r\n\r\n## Main Methods \r\n| Method                        | Description                                         |\r\n|------------------------------|-----------------------------------------------------|\r\n| ZuoraEncrypt(public_key=`None`) | Initializes the object with an optional public key.  |\r\n| set_key(public_key)           | Sets or changes the public key.                      |\r\n| encrypt(data)                 | Encrypts a string and returns the result in base64.  |\r\n\r\n\r\n\r\n## Requierements ![Python Logo](https://upload.wikimedia.org/wikipedia/commons/thumb/c/c3/Python-logo-notext.svg/20px-Python-logo-notext.svg.png)\r\n\r\n#### \u2022 Python 3.6 or higher\r\n#### \u2022 PyCriptoDome:\r\n\r\n```sh\r\npip install pycryptodome\r\n```\r\n\r\n\r\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "A Python library for encrypt CreditCard data for Zuora Payment Gateway",
    "version": "1.1",
    "project_urls": {
        "Homepage": "https://github.com/LuiisDev21/pyZuoraEncode"
    },
    "split_keywords": [
        "zuora",
        " encrypt",
        " creditcard",
        " payment",
        " gateway",
        " zuoraencrypt",
        " zuorapayment"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "49b3c334558cf4c9c785f28e84dde061fa3c0e2126e65849b5f53940fa0a02ab",
                "md5": "2396a6dc9e35dea9227285bde29edf49",
                "sha256": "41095cb9bcdd7041c1986f82cf173f5c195fa6b89163a7902cee85fae42925f3"
            },
            "downloads": -1,
            "filename": "pyZuoraEncodeV2-1.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "2396a6dc9e35dea9227285bde29edf49",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6",
            "size": 16003,
            "upload_time": "2025-08-11T02:09:00",
            "upload_time_iso_8601": "2025-08-11T02:09:00.379380Z",
            "url": "https://files.pythonhosted.org/packages/49/b3/c334558cf4c9c785f28e84dde061fa3c0e2126e65849b5f53940fa0a02ab/pyZuoraEncodeV2-1.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "e6c9eaf3713b5b736cdd5e01f83afc6ae199466686a7d7931191908acded97a3",
                "md5": "848abc7739e2b6a825f69d67b8cea4d0",
                "sha256": "78306a0a51a15d997547573504c01e98358a39f225cddedbe55f859b286957e0"
            },
            "downloads": -1,
            "filename": "pyZuoraEncodeV2-1.1.tar.gz",
            "has_sig": false,
            "md5_digest": "848abc7739e2b6a825f69d67b8cea4d0",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 15859,
            "upload_time": "2025-08-11T02:09:01",
            "upload_time_iso_8601": "2025-08-11T02:09:01.869010Z",
            "url": "https://files.pythonhosted.org/packages/e6/c9/eaf3713b5b736cdd5e01f83afc6ae199466686a7d7931191908acded97a3/pyZuoraEncodeV2-1.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-08-11 02:09:01",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "LuiisDev21",
    "github_project": "pyZuoraEncode",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "pyzuoraencodev2"
}
        
Elapsed time: 1.01623s