Download the PHP package farizfadian/phpcrypt without Composer
On this page you can find all versions of the php package farizfadian/phpcrypt. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download farizfadian/phpcrypt
More information about farizfadian/phpcrypt
Files in farizfadian/phpcrypt
Package phpcrypt
Short Description Jasypt-like encryption library for PHP - Encrypt your configuration with ENC(...) pattern
License MIT
Homepage https://github.com/farizfadian/phpcrypt
Informations about the package phpcrypt
PHPCrypt ๐
Jasypt-like encryption library for PHP - Encrypt your application configuration with the familiar ENC(...) pattern used in Spring Boot applications.
Made with โค๏ธ from Claude AI for PHP developers who need Jasypt
๐ฏ Why PHPCrypt?
If you're coming from Java/Spring Boot world and need to share encrypted configuration across multiple languages, PHPCrypt is for you! It provides:
- โ
Familiar
ENC(...)pattern - Just like Jasypt in Spring Boot - โ Java Jasypt compatibility - Decrypt values encrypted by Java
- โ Multiple algorithms - From legacy Jasypt to modern AES-256-GCM
- โ Laravel/Symfony ready - Easy integration with PHP frameworks
- โ CLI tool included - Encrypt/decrypt from command line
- โ Cross-platform - Works with GoCrypt, PyCrypt, NodeCrypt, RustCrypt, and Java Jasypt
๐ฆ Installation
๐ Quick Start
Basic Encryption/Decryption
Loading Encrypted Configuration
๐ Encryption Algorithms
| Encryptor | Algorithm | Security | Use Case |
|---|---|---|---|
Encryptor |
AES-256-GCM | โญโญโญโญโญ | Recommended for new projects |
JasyptStrongEncryptor |
PBEWithHmacSHA256AndAES_256 | โญโญโญโญ | Jasypt strong compatibility |
JasyptEncryptor |
PBEWithMD5AndDES | โญโญ | Legacy Jasypt compatibility |
Choose the Right Algorithm
โ Java Jasypt Compatibility
โ ๏ธ Important: Compatibility Matrix
Decrypt Values from Java
Share Config with Go/Python/Node.js
๐ Usage Guide
Configuration Files
.env File
JSON File
Set to Environment Variables
Decrypt Map
Check if Value is Encrypted
๐ง Framework Integration
Laravel
Symfony
๐ป CLI Tool
Usage
โ๏ธ Advanced Configuration
Custom Options
๐ API Reference
Encryptor
JasyptEncryptor
JasyptStrongEncryptor
ConfigLoader
Utility Functions
๐งช Testing
๐ Project Structure
๐ค Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
๐ License
This project is licensed under the MIT License - see the LICENSE file for details.
๐ Related Projects
- GoCrypt - Jasypt-like encryption for Go
- PyCrypt - Jasypt-like encryption for Python
- NodeCrypt - Jasypt-like encryption for Node.js
- RustCrypt - Jasypt-like encryption for Rust
- Jasypt - Original Java library
Made with โค๏ธ from Claude AI for PHP developers who need Jasypt
All versions of phpcrypt with dependencies
ext-openssl Version *