Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
B

BouncyHsm

> 编程语言
Open source

Bouncy Hsm is a software simulator of HSM and smartcard simulator with HTML UI, REST API and PKCS#11 interface.

185 stars0 likes1 views
WebsiteGitHub

About

Bouncy Hsm is a software simulator of HSM and smartcard simulator with HTML UI, REST API and PKCS#11 interface.

Bouncy Hsm

Bouncy Hsm is an developer friendly implementation of a cryptographic store accessible through a PKCS#11 interface. It can simulate HSM (hardware security module) and smart cards (also with a qualified area), it also includes a web administration interface and a REST interface.

Bouncy Hsm was created to facilitate the development and testing of applications using PKCS#11 devices. It is not intended for production data, as it does not implement any data and key protection in storage or during network calls.

The BouncyHsm project was created as an alternative to SoftHSMv2, due to ongoing problems I had using it.

(Screenshots from version 2.0.0)

Features

Bouncy Hsm implementig PKCS#11 interface from standard version 2.40, 3.1 and version 3.2.

  • Multiple application and users access using PKCS#11 interface.
  • Slot and crypto object management using web interface and REST API.
    • Create/remove slots.
    • Plug and unplug devices (tokens).
    • Edit object attributes.
    • Import P12/PFX files.
    • Import crypto objects in PEM format.
    • Generate CSR, generate self-signed certificate, import certificate from file.
    • Generate keys.
    • ...
  • Possibility to simulate cards with a qualified area and a signature PIN.
  • Possibility to simulate protected authentication path using web interface.
  • Possibility to simulate removable devices (tokens).
  • Supports RSA keys (with size 2-6K).
  • Supports 80 named elliptic curves and user-defined elliptic curves.
  • Edwards curves (Ed25519, Ed448).
  • Mongomery curves (X25519, X448).
  • Post-Quantum Cryptography (ML-DSA, SLH-DSA, ML-KEM)
  • Supports secrets (HMAC, derive,...)
  • Supports AES keys.
  • Supports Salsa20 keys.
  • Supports ChaCha20 keys (also ChaCha20Poly1305 algorithm).
  • Supports Camellia keys.
  • Supports mechanisms
  • Supports PKCS#11 functions
  • Supports custom profiles for mechanisms (To limit mechanisms to simulate a specific type of HSM or card).
  • Same behavior and algorithm support across platforms and versions of Linux operating systems.
  • Native PKCS#11 library without dependencies (no dependency hell, no permission configuration).
  • BouncyHsm runs on all platform supported .Net 10.0. Moreover, it can be run as a Windows service and also works on Raspberry Pi Zero 2 W. Native lib BouncyHsm.Pkcs11Lib is awaitable for Windows x86 and x64, Linux x64, RHEL like x64 (it can also be compiled for other platforms).
  • CLI tool for management.
  • Nuget (BouncyHsm.Client) with REST API client and native PKCS#11 libraries for unit testing. (See example project.)
  • Bouncy Hsm Restrictions

Quick start and deployment guide

  • Quick start guide
  • Deployment guide
  • Docker support

Contributing and issues

Pull requests are welcome. If you are not sure about the change, open an issue first.

If the found error or changes refer to the PKCS#11 standard, please complete the link section of the standard.

See more rules in CONTRIBUTING.

Links

Technology

  • Dotnet 10.0
  • BouncyCastle
  • Pkcs11Interop
  • LiteDb
  • Blazor WebAssembly
  • cmp
  • MessagePack-CSharp

Other links

  • PKCS #11 Cryptographic Token Interface Base Specification Version 2.40
  • PKCS #11 Cryptographic Token Interface Base Specification Version 3.1
  • PKCS #11 Cryptographic Token Interface Base Specification Version 3.2 as markdown, Usage Guide
  • Software Ideas Modeler - tool in which the diagrams in the documentation were drawn
  • NSwag studio - tool for generate OpenApi client
  • Ako som robil BouncyHsm - My blog post about BouncyHsm development, technological decisions and reasons for development - in Slovak language

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

C#blazorblazor-webassemblybouncycastlecryptography

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 18, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言