Metadata-Version: 2.1
Name: pyZuoraEncode
Version: 1.1.3
Summary: A Python library for encrypt CreditCard data for Zuora Payment Gateway
Home-page: https://github.com/MrXetwy21/pyZuoraEncode
Author: Taiinyy & MrXetwy21
Author-email: Xetwy21@gmail.com
License: MIT
Keywords: zuora,encrypt,creditcard,payment,gateway,zuoraencrypt,zuorapayment
Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Topic :: Software Development :: Testing
Classifier: Topic :: Utilities
Requires-Python: >=3.6
Description-Content-Type: text/markdown

![Image](https://companieslogo.com/img/orig/ZUO_BIG.D-cc95a659.png?t=1720244494)
# <p align="center">PyZouraEncode</p>
 
`pyZuoraEncode` 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-MIT-green.svg)](https://opensource.org/licenses/MIT)
[![PyPi](https://img.shields.io/badge/PyPi-View_Package-blue.svg?logo=python&logoColor=white)](https://pypi.org/project/pyZuoraEncode/) 
----------

## Installation

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

```sh
pip install -U pyZuoraEncode
```


## Usage

```python
from pyZuoraEncode 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(data)

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

## Authors

<div style="display: flex; gap: 20px; align-items: center;">

<div>
    <img src="https://avatars.githubusercontent.com/u/94748860?v=4" alt="MrXetwy21' Avatar" width="100" height="100" style="border-radius: 50%;">
    <h3>MrXetwy21</h3>
    <a href="https://github.com/MrXetwy21">
        <img src="https://img.shields.io/badge/GitHub-MrXetwy21-181717?logo=github&logoColor=white" alt="GitHub">
    </a>
    <br>
    <a href="https://t.me/Xetwy">
        <img src="https://img.shields.io/badge/Telegram-Chat-0088cc?logo=telegram&logoColor=white" alt="Telegram">
    </a>
</div>
    <br>
    <br>
    <br>
<div>
    <img src="https://avatars.githubusercontent.com/u/159650522?v=4" alt="Maria's Avatar" width="100" height="100" style="border-radius: 50%;">
    <h3>Taiinyy</h3>
    <a href="https://github.com/Taiinyy">
        <img src="https://img.shields.io/badge/GitHub-Taiinyy-181717?logo=github&logoColor=white" alt="GitHub">
    </a>
    <br>
    <a href="https://t.me/zSnoww">
        <img src="https://img.shields.io/badge/Telegram-Chat-0088cc?logo=telegram&logoColor=white" alt="Telegram">
    </a>
</div>

</div>


