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:

Quick Start

Install the security toolkit via XFPM:

bash
xfpm add xypriss-security

The Unified Cipher API

For maximum convenience, use the Cipher class to access core hashing and random generation primitives.

typescript
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");
Core Primitives

Learn about foundational primitives: Hash, Random, and Password management.