semvec/pypi-packages huggingface dataset:
pypaycrypto 0.0.0a1
A Python package for cryptography in payment systems
License: MIT
Requires Python: >=3.5
Keywords: cvv cvd cvc mac xor bitparity tripledes

PyPayCrypto
-----------

|pypi| |coverage|

`PyPayCrypto` provides utilities for common cryptographic tasks
within payment networks. It's built on top of `cryptography <https://pypi.org/project/cryptography/>`_ package.

Install::

    pip install pypaycrypto

`PyPayCrypto` consists of the following modules:

    - cvv - Card Verification Value utilities
    - mac - Message Authentication Code utilities
    - tdes - Triple DES utilities
    - tools - Miscellaneous tools, such as xor.

Card Verification Value
~~~~~~~~~~~~~~~~~~~~~~~

Generating Card Verification Value:

.. code-block:: python

    >>> import pypaycrypto as ppc
    >>> cvk = bytes.fromhex("0123456789ABCDEFFEDCBA9876543210")
    >>> ppc.cvv.calculate_cvv(cvk, "1234567890123456", "9912", "220")
    '170'

Contribute
----------

`PyPayCrypto` is hosted on `GitHub <https://github.com/knovichikhin/pypaycrypto>`_.

Feel free to fork and send contributions over.

.. |pypi| image:: https://img.shields.io/pypi/v/pypaycrypto.svg
    :alt: PyPI
    :target:  https://pypi.org/project/pypaycrypto/

.. |coverage| image:: https://codecov.io/gh/knovichikhin/pypaycrypto/branch/master/graph/badge.svg
    :alt: Test coverage
    :target: https://codecov.io/gh/knovichikhin/pypaycrypto