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 a.k.a “공인인증서
  • Encrypt, Decrypt, Sign, Verify (part of Public-key cryptography)
  • PKCS#7 sign, envelop

Usage example

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


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


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

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.1
Filename, size File type Python version Upload date Hashes
Filename, size pypinksign-0.1.1.tar.gz (6.7 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