A Python package for cryptography in payment systems
Project description
psec is a package that provides tools for protecting sensitive data and cardholder authentication in retail payment transactions.
Install:
pip install psec
psec consists of the following modules:
cvv - Card Verification Value generation
des - Triple DES utilities
mac - Message Authentication Code generation
pin - Personal Identification Number generation
pinblock - PIN Blocks encoding and decoding
tools - Miscellaneous support tools
For example:
>>> import psec
>>> psec.pin.generate_visa_pvv(
... pvk = bytes.fromhex("0123456789ABCDEFFEDCBA9876543210"),
... pvki="1",
... pin="1234",
... pan="4321000000001234")
'6629'
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
psec-1.0.0.tar.gz
(15.0 kB
view hashes)
Built Distribution
psec-1.0.0-py3-none-any.whl
(12.3 kB
view hashes)