Download the PHP package sham3r/cipher-bsk without Composer
On this page you can find all versions of the php package sham3r/cipher-bsk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download sham3r/cipher-bsk
More information about sham3r/cipher-bsk
Files in sham3r/cipher-bsk
Package cipher-bsk
Short Description A lightweight encryption library implementing techniques from the research paper 'A Hybrid Cryptographic Scheme of Modified Vigenère Cipher using Randomized Approach for Enhancing Data Security' by Sazzad Saju. This library provides robust data security with secure hashing capabilities and Laravel-native support. For more details, visit: https://bit.ly/cipher-bsk
License MIT
Informations about the package cipher-bsk
cipher-bsk-composer-package
Bornomala Symmetric Key (BSK) stream cipher, is a lightweight encryption library implementing techniques from the research paper 'A Hybrid Cryptographic Scheme of Modified Vigenère Cipher using Randomized Approach for Enhancing Data Security' by Sazzad Saju. This library aims to provide robust data security with an easy-to-use API. For more details, visit: https://bit.ly/cipher-bsk
🔐 New in v1.1.1
- Added
secureHash()andverifyHash()for dual-layer password encryption. - Added Laravel integration (config, service provider, and facade).
- Backward compatible with v1.0.
Installation/Launch
Install the package via Composer:
Usage
Basic Encryption/Decryption (Existing functionality)
🆕 Secure Password Hashing (v1.1.1)
Note: You must set an environment variable for secure hashing:
🆕 Laravel Integration (v1.1.1)
Auto-Discovery Setup
The package automatically registers itself in Laravel applications. No manual setup required!
Using the Facade:
Laravel Configuration:
-
Publish the config file (optional):
-
Set your environment variables in
.env: - Configuration file (
config/cipher-bsk.php):
Laravel Service Container:
Features
- Avalanche effect - Small changes in input create large changes in output
- Immune from frequency analysis attack - Secure against cryptographic attacks
- Output ranges from ASCII(0-255) - Full character space utilization
- 🆕 Dual-layer password hashing (CipherBSK + bcrypt) - Enhanced security
- 🆕 Laravel integration with auto-discovery - Seamless framework integration
- 🆕 Environment-based key management - Secure configuration
- ✅ Backward compatible with existing code - No breaking changes
Important Security Notes
For Secure Hashing Features
- MUST set
CIPHER_BSK_KEYorAPP_KEYenvironment variable - Never commit keys to version control
- Use different keys for different environments (dev, staging, production)
Example Environment Setup:
Error Handling:
If no key is configured, the package will throw a RuntimeException with helpful instructions:
Compatibility
Existing Users (v1.0.x)
All existing code continues to work without changes:
New Users (v1.1.1+)
Access to both original and new features:
Documentation
- Published paper: DOI: 10.5120/ijca2021921290
- Online tool: BSK ONLINE
- GitHub Repository: cipher-bsk-composer-package
Testing
Run All Tests:
Test Specific Features:
Test Coverage:
- 25 tests total - Comprehensive coverage
- 71 assertions - Thorough validation
- Core encryption - Original CipherBSK algorithm
- Secure hashing - New dual-layer password security
- Environment handling - Key resolution and error cases
- Laravel integration - Framework-specific features
Contributing
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Run tests (
vendor/bin/phpunit) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
License
This project is licensed under the MIT License - see the LICENSE file for details.
Authors
- Sazzad Saju - Initial work and research - GitHub
- Email: [email protected]
Acknowledgments
- Based on the research paper: "A Hybrid Cryptographic Scheme of Modified Vigenère Cipher using Randomized Approach for Enhancing Data Security"
- Hajee Mohammad Danesh Science and Technology University
- Laravel community for framework integration patterns