XyPriss Security - Module (XSec-M)
XSec-M is an enterprise-grade cryptographic framework for TypeScript / JavaScript environments. It utilizes a high-performance Go-based core engine compiled as a static, dependency-free CLI binary to provide military-grade security with absolute cross-platform reliability.
Core Principles
Performance
Optimized execution using lightweight process spawning, bypassing the overhead of standard JavaScript cryptographic implementations.
Universal Portability
Zero native compilation required. Statically linked pure Go binaries run flawlessly on Linux, Windows, and macOS.
Modern Standards
Native support for Ed25519, AES-256-GCM, Argon2id, PBKDF2, HKDF, RSA-OAEP, and Post-Quantum algorithms.
Documentation Structure
XSec-M is divided into specialized modules for different cryptographic needs:
Core Primitives
Foundational primitives: Hash, Random, Password manager.
Ed25519
High-performance EdDSA signature verification.
RSA & Byte Utils
RSA-PSS signing, RSA-OAEP encryption, and byte validation.
Encryption
High-level data protection services.
Utilities
Encoding and general cryptographic helpers.
Quick Start
Install the security toolkit via XFPM:
xfpm add xypriss-securityThe Unified Cipher API
For maximum convenience, use the Cipher class to access core hashing and random generation primitives.
import { Cipher } from "xypriss-security";
// Generate 32 secure random bytes
const bytes = Cipher.random.getRandomBytes(32);
// Create a standard SHA-256 hash
const digest = Cipher.hash.create("sensitive-payload");
// Generate a PKCE Code Challenge for OAuth2
const challenge = Cipher.hash.pkce("verifier-string-123");Learn about foundational primitives: Hash, Random, and Password management.
