Download the PHP package azaharizaman/nexus-crypto without Composer

On this page you can find all versions of the php package azaharizaman/nexus-crypto. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package nexus-crypto

Nexus\Crypto

Framework-agnostic cryptographic abstraction layer providing algorithm agility and post-quantum readiness for the Nexus ERP ecosystem.

Overview

The Nexus\Crypto package provides a complete cryptographic primitive library designed for long-term security and future-proofing against quantum computing threats. By abstracting all cryptographic operations behind interfaces, the package enables seamless migration from classical algorithms (RSA, ECDSA, AES) to post-quantum alternatives (Dilithium, Kyber) simply by changing bindings in the application layer.

Core Principles

  1. Algorithm Agility: All crypto operations via interfaces, enabling algorithm swapping without code changes
  2. Post-Quantum Readiness: Hybrid mode support planned for dual classical + PQC signing/encryption
  3. Stateless Design: All persistence via KeyStorageInterface - no framework dependencies
  4. Immutable Value Objects: All cryptographic results as readonly data structures
  5. Audit Trail: All operations compatible with Nexus\AuditLogger for compliance

Features

Phase 1 (Current - Classical Algorithms)

Phase 2 (Planned - Hybrid PQC)

Phase 3 (Future - Pure PQC)

Installation

Required PHP Extensions

Integration Requirements

Consuming applications must implement:

  1. KeyStorageInterface - For persistent key storage
  2. Service Container Bindings - Bind all crypto interfaces
  3. Master Key Management - Secure master key for envelope encryption
  4. (Optional) Scheduler Integration - For automated key rotation

Architecture

Usage

1. Hash Data (Integrity Checking)

2. Encrypt Data (Symmetric Encryption)

3. Sign Data (Digital Signatures)

4. HMAC Signing (Webhook Verification)

5. Key Rotation (Automated via Scheduler)

Value Objects

HashResult

EncryptedData

SignedData

KeyPair

EncryptionKey

Enums

HashAlgorithm

SymmetricAlgorithm

AsymmetricAlgorithm

Security Considerations

Envelope Encryption

All data encryption keys (DEKs) are encrypted with the master key (APP_KEY) before storage:

Key Rotation

Algorithm Selection

Error Handling

Performance

Benchmarks (Phase 1 - Classical Algorithms)

Operation Algorithm Input Size Target Actual
Hash SHA-256 1 KB < 1ms ~0.3ms
Hash BLAKE2b 1 KB < 1ms ~0.2ms
Encrypt AES-256-GCM 1 KB < 2ms ~0.8ms
Decrypt AES-256-GCM 1 KB < 2ms ~0.9ms
Sign Ed25519 1 KB < 5ms ~1.2ms
Verify Ed25519 1 KB < 5ms ~1.5ms

Benchmarks on PHP 8.3, ext-sodium 2.0.23

Roadmap

✅ Phase 1: Classical Algorithms (Q4 2025)

🔄 Phase 2: Hybrid PQC Mode (Q3 2026)

🔮 Phase 3: Pure PQC (Post-2027)

Contributing

This package follows the Nexus architecture principles:

Documentation

User Documentation

Project Documentation

License

MIT License - see LICENSE file for details.

Security Disclosure

For security vulnerabilities, please email: [email protected] (DO NOT file public issues)


All versions of nexus-crypto with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
ext-sodium Version *
ext-openssl Version *
psr/log Version ^3.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package azaharizaman/nexus-crypto contains the following files

Loading the files please wait ...