@phantom-core/crypto
Version:
Cryptographic analysis and security assessment core with algorithm validation and key management - Part of the Phantom Spire CTI Platform
33 lines (21 loc) • 1.05 kB
Markdown
with secure authentication, JWT processing, and high-performance random generation. Part of the Phantom Spire CTI Platform.
```bash
npm install @phantom-core/crypto
```
```javascript
const phantomCrypto = require('@phantom-core/crypto');
// Hash a password with enterprise-grade Argon2id
const hashResult = phantomCrypto.hash_enterprise_password('{"password": "your_password"}', 'high');
// Generate secure JWT tokens
const jwtResult = phantomCrypto.create_enterprise_jwt_token('{"user_id": "user123", "role": "admin"}', 'secure');
// Generate cryptographically secure random tokens
const tokenResult = phantomCrypto.generate_enterprise_token('{"length": 32}', 'secure');
```
- **GitHub**: [https://github.com/defendr-ai/phantom.core-crypto](https://github.com/defendr-ai/phantom.core-crypto)
- **NPM Package**: [@phantom-core/crypto](https://www.npmjs.com/package/@phantom-core/crypto)
MIT
Enterprise-grade cryptographic core library