Metadata-Version: 2.1
Name: pyZuoraEncodeV2
Version: 1.1
Summary: A Python library for encrypt CreditCard data for Zuora Payment Gateway
Home-page: https://github.com/LuiisDev21/pyZuoraEncode
Author: LuiisDev21
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
License-File: LICENSE
Requires-Dist: pycryptodome

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


