Epicrypt 2.0#
Epicrypt provides authenticated data protection, token security, password security, integrity primitives, and certificate tooling for PHP 8.4 and later.
Complete-path examples#
Certificates and key exchange: create a CA, issue a service certificate, and validate it before deployment.
Cryptographic primitives: sign, encrypt, decrypt, and authenticate a service message.
Data protection: protect a database value and renew it through key rotation.
Secure generation and key derivation: derive purpose-isolated keys and use them for protection and authentication.
Integrity: publish and verify a signed release manifest and artifact.
Password security: register, authenticate, and transparently rehash a password.
Application security: issue and atomically consume a single-use password-reset token.
Complete OAuth token lifecycle: issue and verify access tokens, rotate refresh tokens, bind DPoP, narrow scopes, and revoke authorization.
Error Handling: map cryptographic failures at an application boundary.
Internal is not a consumer capability and intentionally has no public
integration example.
- Getting started
- Architecture
- Security recommendations
- Certificates and key exchange
- Complete path: create a CA, issue a leaf, and validate deployment
- Issue a short-lived service certificate
- Create and inspect a CA-signed certificate
- Derive a service-to-service session key
- Directional Sodium
crypto_kxsession keys - OpenSSL ECDH with context-bound HKDF
- Advanced Ristretto255 protocol primitives
- Cryptographic primitives
- Data protection
- Secure generation and key derivation
- Integrity
- Password security
- Application security
- Tokens and JWT
- Supported algorithms
- Complete path: issue and verify an access token across a service boundary
- Use symmetric JWT inside one trust boundary
- Publish an asymmetric verification key as JWK
- Issue and rotate an opaque refresh token
- Implement JWT replay and denylist storage
- Sign short-lived application state
- Sign a detached webhook and require multiple signatures
- Publish and rotate a certificate-bound JWKS
- Resolve remote JWKS with safe rollover
- Encrypt PII and nest a signed JWT
- Validate an OpenID Connect login
- Bind an API request with DPoP
- Complete OAuth token lifecycle
- Token persistence contracts
- Error Handling
- Benchmarking