Skip to main content
Help the Python Software Foundation raise $60,000 USD by December 31st!  Building the PSF Q4 Fundraiser

Basic NPKI module.

Project description


Small python code for K-PKI certificates. 공인인증서를 다루는 파이선

Support method

- Load personal purpose of
`NPKI <>`__
"`공인인증서 <>`__\ "
- Encrypt, Decrypt, Sign, Verify (part of Public-key cryptography)
- PKCS#7 sign, envelop

Usage example

.. code:: python

import pypinksign
p = pypinksign.PinkSign()
p.load_prikey(prikey_path="/path/signPri.key", prikey_password="my-0wn-S3cret")
sign = p.sign('1')
verify = p.verify(sign, '1') # True

.. code:: python

import pypinksign

# choose_cert function automatically fetch path for certificates
# and load certificate which match DN and passpharase for Private Key
p = pypinksign.choose_cert(dn="홍길순", pw="i-am-h0ng")
sign = p.sign('1')
verify = p.verify(sign, '1') # True
envelop = p.envelop_with_sign_msg('message') # Envelop with K-PKI

Requirement & Dependency

- Python 2.7 (Probably works with python 3 and above, but not tested)
- `PyCrypto <>`__ for
- `python-pkcs1 <>`__ for
- `PyASN1 <>`__ for pyasn1
- `cryptography <>`__ for
- `bitarray <>`__ 0.8.1 for


The easiest way to get skeleton is if you have setuptools / distribute
*or* pip installed


easy_install pypinksign



pip install pypinksign

The current development version can be found at
` <>`__


Ver. 0.1.1

- Add README.rst for PyPI

Ver. 0.1

- First release.

See also

- ` <>`__ -
Technical Specification for K-PKI System

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for pypinksign, version 0.1
Filename, size File type Python version Upload date Hashes
Filename, size pypinksign-0.1-py2.7.egg (13.4 kB) File type Egg Python version 2.7 Upload date Hashes View
Filename, size pypinksign-0.1.tar.gz (6.4 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page