ThalesGroup / pycryptoki

Python interface to SafeNet's PKCS11 library implementation
Apache License 2.0
58 stars 22 forks source link

Provide sample codes? #4

Closed LudovicRousseau closed 3 years ago

LudovicRousseau commented 7 years ago

Could you provide simple sample codes to show how to use the wrapper? Do you have the API documentation available as HTML pages somewhere?

I am the current maintainer of https://github.com/LudovicRousseau/PyKCS11

astraw38 commented 7 years ago

We only have a very basic sample in the docs (or you could look at the functional tests -- they do key generation, sign/verify/encrypt/decrypt/wrap etc).

API Docs are also there -- though they do need to be updated with proper links.

LudovicRousseau commented 7 years ago

I propose to add a link to http://pycryptoki.readthedocs.io/en/latest/index.html in the README.md file.

From the doc I do not understand how to specify a specific PKCS#11 library to use.

astraw38 commented 7 years ago

Sorry it was not obvious -- it's the docs|latest tag in the readme. I can make that more clear.

And support for other PKCS11 libraries is not intended and isn't likely to be supported by us, sorry.

bandtank commented 6 years ago

This library was probably a lot of work to create, so not providing more examples doesn't make a lot of sense to me. We considered using about 20 Safenet HSMs, but the integration effort was too substantial and this type of library would have helped had it been more clearly documented.