webcrypto.dev-examples

Overview

node-webcrypto-p11 Provides a binding between the PKCS#11 API and the WebCrypto API, making it easy to add support for PKCS#11 to any application built around the WebCrypto API.

npm npm (scoped)

Samples

Sample Name Description
SHA digest Demonstrates SHA digest calculation
AES-CBC key generation and data encryption Demonstrates AES-CBC key generation and data encryption
RSASSA-PKCS1-v1_5 key generation and signing Demonstrates RSASSA-PKCS1-v1_5 key generation and signing
RSA-OAEP key generation and secret key wrapping Demonstrates RSA-OAEP key generation and secret key wrapping
ECDSA key generation and signing Demonstrates ECDSA key generation and signing
ECDH key generation and key deriving Demonstrates ECDH key generation and key deriving
Getting all keys from the token Demonstrates getting all keys from the token
Creating an RSA key and adding it to the token Demonstrates creating an RSA key and adding it to the token
Getting all certificates with private keys from the token Demonstrates getting all certificates with private keys from the token
Importing a certificate and adding it to the token Demonstrates importing a certificate and adding it to the token