UNPKG

xypriss-security

Version:

Advanced High-Performance Security Framework. Military-grade encryption, post-quantum resilience, and fortified data structures.

61 lines 2.98 kB
"use strict"; /*************************************************************************** * XyPriss Security Core - Unified API Entry Point * * Provides high-level security classes (Hash, Random, Password, XyPrissSecurity) * that wrap the high-performance Go-based core bridge. * * @author NEHONIX (Nehonix-Team - https://github.com/Nehonix-Team) * @license Nehonix Open Source License (NOSL) ****************************************************************************/ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; var desc = Object.getOwnPropertyDescriptor(m, k); if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { desc = { enumerable: true, get: function() { return m[k]; } }; } Object.defineProperty(o, k2, desc); }) : (function(o, m, k, k2) { if (k2 === undefined) k2 = k; o[k2] = m[k]; })); var __exportStar = (this && this.__exportStar) || function(m, exports) { for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); }; Object.defineProperty(exports, "__esModule", { value: true }); exports.Cipher = exports.pm = exports.XSec = void 0; __exportStar(require("./Hash"), exports); __exportStar(require("./Random"), exports); __exportStar(require("./Password"), exports); __exportStar(require("./PasswordManager"), exports); __exportStar(require("./XyPrissSecurity"), exports); __exportStar(require("./SecureBuffer"), exports); __exportStar(require("./keys"), exports); __exportStar(require("./bridge"), exports); var XyPrissSecurity_1 = require("./XyPrissSecurity"); // Alias for XyPrissSecurity Object.defineProperty(exports, "XSec", { enumerable: true, get: function () { return XyPrissSecurity_1.XyPrissSecurity; } }); var PasswordManager_1 = require("./PasswordManager"); // Alias for PasswordManager Object.defineProperty(exports, "pm", { enumerable: true, get: function () { return PasswordManager_1.PasswordManager; } }); const mergeStatic_1 = require("../utils/mergeStatic"); const Hash_1 = require("./Hash"); const keys_1 = require("./keys"); const Random_1 = require("./Random"); const XyPrissSecurity_2 = require("./XyPrissSecurity"); /** * ### Cipher Class (Compatibility) * * A unified entry point providing access to all security modules. * This class ensures compatibility with previous versions of the library. */ class Cipher { /** High-performance hashing and PKCE operations. */ static hash = Hash_1.Hash; /** Cryptographically secure random number and token generation. */ static random = Random_1.Random; /** Alias for random module. */ static crypto = (0, mergeStatic_1.mergeStatic)(Random_1.Random, keys_1.Keys); /** Framework-level security management and configuration. */ static XSec = XyPrissSecurity_2.XyPrissSecurity; } exports.Cipher = Cipher; //# sourceMappingURL=index.js.map