HSM Kit - Professional Online Encryption Toolkit
๐ Professional encryption & key management tools, 100% client-side, secure & reliable
English | ็ฎไฝไธญๆ | ๆฅๆฌ่ช | ํ๊ตญ์ด | Deutsch | Franรงais
๐ Introduction
HSM Kit is a professional online encryption toolkit designed for developers, testers, and security engineers in finance, payment, and security domains. It provides 44+ tools covering HSM key management, payment security, PKI certificates, and cryptographic algorithms, all running entirely in the browser.
Core Values
- Security First - 100% client-side computation, keys and sensitive data never leave your device
- Professional & Complete - 44+ tools covering HSM key management, payment security, PKI certificates, and cryptographic algorithms
- Ready to Use - Open browser and start working, supports PWA installation, works on Mac/Windows/Linux/mobile
- Open Source - Code is publicly auditable, meets financial industry compliance requirements
โจ Features
๐ ๏ธ Tool Modules
๐ Encryption/Decryption Tools (5)
๐ Key Management Tools (8)
๐ PKI Tools (2)
๐ณ Payment Security Tools (21)
๐งฐ General Tools (9)
๐ Knowledge Base
HSM Kit includes a built-in knowledge base (/guides/) with 42 in-depth technical articles in each of English and Chinese, covering encryption algorithms, payment security, HSM key management, and more. Articles are cross-linked and directly connected to corresponding tools.
Knowledge Base Features
- ๐ Markdown Rendering - Code blocks, tables, internal links
- ๐ Tool Integration - Direct links to related tools and articles
- ๐ Bilingual - English and Chinese, 43 articles each, fully translated
- ๐ Table of Contents - Right-side TOC navigation with scroll highlighting
- ๐ Search - Full-text search across articles
๐ Project Structure
hsmkit/
โโโ public/ # Static assets
โ โโโ favicon.svg # Website logo
โ โโโ favicon-*.png # PWA icons (48/192/512)
โ โโโ apple-touch-icon.png # iOS icon
โ โโโ sitemap.xml # Sitemap (144 URLs with hreflang)
โ โโโ robots.txt # Crawler instructions
โ โโโ _headers # HTTP headers (Cloudflare)
โ โโโ _redirects # SPA route redirects
โ
โโโ scripts/ # Build scripts
โ โโโ generate-favicon-png.js # Favicon generation
โ โโโ generate-guide-og.js # Per-guide social image generation
โ โโโ prerender-guides.js # Static guide-page generation
โ โโโ check-tool-pages.js # Production page smoke checks
โ โโโ update-sitemap-lastmod.js # Guide/tool sitemap maintenance
โ
โโโ src/
โ โโโ components/ # Reusable components
โ โ โโโ cipher/ # Encryption tool components
โ โ โโโ common/ # Common components
โ โ โ โโโ PageLayout.tsx # Page layout + Schema.org
โ โ โ โโโ ToolPage.tsx # Tool page factory
โ โ โ โโโ SEO.tsx # SEO meta tags + prerender
โ โ โ โโโ ResultCard.tsx # Result display (aria-live)
โ โ โ โโโ ErrorCard.tsx # Error display (role="alert")
โ โ โ โโโ LengthIndicator.tsx # Shared input length/format states
โ โ โ โโโ ExampleButton.tsx # Context-preserving example loading
โ โ โ โโโ ErrorBoundary.tsx # Error boundary
โ โ โ โโโ ReloadPrompt.tsx # PWA update prompt (dark mode)
โ โ โ โโโ ...
โ โ โโโ generic/ # General tool components
โ โ โโโ keys/ # Key management components
โ โ โโโ payment/ # Payment tool components
โ โ โโโ pki/ # PKI tool components
โ โ
โ โโโ hooks/ # Custom hooks
โ โ โโโ useLanguage.tsx # Multi-language switching
โ โ โโโ useTheme.tsx # Theme switching
โ โ โโโ useToolForm.ts # Tool form hook
โ โ โโโ useRecentTools.ts # Recent tools and local favorites
โ โ โโโ ...
โ โ
โ โโโ data/ # Tool metadata and examples
โ โ โโโ examples.ts # Non-production example values
โ โ โโโ toolRelations.ts # Related-tool workflow graph
โ โ โโโ toolGuidesMap.ts # Tool-to-guide links
โ โ
โ โโโ locales/ # Translations (6 languages)
โ โ โโโ en/ # English
โ โ โโโ zh/ # Chinese
โ โ โโโ ja/ # Japanese
โ โ โโโ ko/ # Korean
โ โ โโโ de/ # German
โ โ โโโ fr/ # French
โ โ
โ โโโ utils/ # Utility functions
โ โ โโโ analytics.ts # Privacy-safe tool action events
โ โ โโโ crypto.ts # Core crypto utilities
โ โ โโโ crypto.test.ts # Crypto unit tests
โ โ โโโ hex.ts # Hex utilities
โ โ โโโ hex.test.ts # Hex unit tests
โ โ โโโ logger.ts # Production-safe logger
โ โ โโโ ...
โ โ
โ โโโ App.tsx # Root component + routes
โ โโโ routeConfig.ts # Route configuration
โ โโโ routes.tsx # Lazy-loaded page components
โ โโโ main.tsx # Entry point
โ
โโโ vitest.config.ts # Test configuration
โโโ vite.config.ts # Build configuration
โโโ tsconfig.json # TypeScript config (strict mode)
โโโ package.json # Dependencies
๐ Quick Start
Online
Visit https://hsmkit.com to use all tools directly.
PWA Install
After visiting the website, your browser will prompt "Install HSM Kit". Click to install to desktop.
Local Development
# Clone repository
git clone https://github.com/hsm-kit/hsmkit.git
cd hsmkit
# Install dependencies
npm install
# Start development server
npm run dev
# Visit http://localhost:5173
Build for Production
# Build (includes sitemap update + Puppeteer prerender + PWA Service Worker)
npm run build
# Preview production build
npm run preview
When a release changes tool-page functionality, refresh only the 44 tool-page dates without rewriting homepage, legal, or guide dates:
node scripts/update-sitemap-lastmod.js --tools-date YYYY-MM-DD
Note: Chrome is required for building. The
prebuildscript automatically installs it vianpx puppeteer browsers install chrome.
Type Checking
# TypeScript type checking (strict mode)
npm run typecheck
# ESLint code checking
npm run lint
# ESLint auto-fix
npm run lint:fix
Testing
# Run all tests
npm test
# Smoke-test every generated tool and guide page
npm run test:pages
# Watch mode
npm run test:watch
# Test coverage
npm run test:coverage
๐๏ธ Tech Stack
โก Performance
๐ Security
- Client-side Encryption - All crypto operations run in browser using Web Crypto API and crypto-js
- Zero Data Transfer - Keys and sensitive data never leave your device
- Open Source - All code is publicly auditable
- Compliance Ready - Meets financial industry security requirements
- CSP Protection - Content-Security-Policy prevents XSS attacks
- Production Logging - Debug logs silenced in production, only errors recorded
โฟ Accessibility
HSM Kit follows WCAG 2.1 AA standards with comprehensive accessibility support:
- Skip-to-content Link - Keyboard users can quickly jump to main content
- ARIA Labels - Navigation, buttons, form elements have proper aria-labels
- aria-live Regions - Dynamic results and errors are announced by screen readers
- Keyboard Navigation - All interactive elements support Tab/Enter/Space
- Focus Management - Clear focus indicators and logical focus order
- Semantic HTML - Uses role="banner", role="main", role="alert" etc.
๐ Internationalization
HSM Kit supports 6 languages with 100% translation coverage:
Translation files are located in src/locales/ with lazy loading for optimal performance.
๐ Deployment
HSM Kit can be deployed to any static hosting service:
# The dist/ directory can be deployed directly after build
npm run build
Search Discovery
- Set
BING_SITE_AUTHin the build environment to the verification value supplied by Bing Webmaster Tools. - After Cloudflare Pages finishes deploying, open GitHub Actions โ Submit URLs to IndexNow โ Run workflow. Leave the URL empty to submit the sitemap, or enter one changed URL. Local submission remains available through
npm run submit:indexnow. - AI-readable resources are published at
/llms.txt,/ai/tools.json, and each guide'sindex.mdURL.
๐ค Contributing
Welcome to submit Issues and Pull Requests!
- Fork this repository
- Create a feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Submit a Pull Request
Adding New Knowledge Base Articles
- Create
{slug}.mdinsrc/content/guides/en/(andzh/for Chinese) - Update
src/data/guides/en.jsonandzh.jsonwith metadata - Add routes in
prerender.config.ts - Add URL in
public/sitemap.xml - Run
npm run buildto verify
๐ License
MIT License - See LICENSE file
๐ Links
- ๐ Website
- ๐ Knowledge Base
- ๐ฆ GitHub Repository
- ๐ Issue Tracker
โ ๏ธ Note: This tool is intended for testing and development environments. Please ensure compliance with relevant security standards before using in production.
Made with โค๏ธ by HSM Kit Team