Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Encryption Laravel Package

illuminate/encryption

Laravel’s encryption component for securely encrypting and decrypting strings and serialized data using application keys and strong ciphers. Provides Encrypter support, key rotation via previous keys, and convenient helpers for protecting cookies, sessions, and payloads.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Accelerates development of features requiring secure data handling (e.g., user PII storage, API token management) by providing a battle-tested encryption layer, reducing time-to-market for compliance-sensitive features.
  • Eliminates build-vs-buy dilemmas for core encryption needs—no need to maintain custom cryptographic code or evaluate third-party libraries, minimizing technical debt and security vulnerabilities from homegrown solutions.
  • Directly supports compliance roadmaps (GDPR, HIPAA, PCI-DSS) through standardized AES-256-CBC with message authentication, ensuring data integrity and confidentiality without manual validation.
  • Enables secure data-at-rest strategies for databases (via model casts) and session storage, allowing product teams to scale sensitive data features confidently within Laravel’s ecosystem.

When to Consider This Package

  • Consider when building Laravel applications needing simple symmetric encryption for strings, arrays, or objects (e.g., storing encrypted secrets in databases, securing cookies/tokens).
  • Prioritize if your stack already uses Laravel (as it’s a core framework component with seamless integration and zero additional dependencies).
  • Avoid for non-Laravel projects where dependency bloat from illuminate/support would complicate the stack—opt for standalone libraries like defuse/php-encryption instead.
  • Never use for password hashing (use PHP’s password_hash()); only for reversible encryption of sensitive non-password data. Also avoid if you require advanced cryptography (e.g., asymmetric encryption, zero-knowledge proofs).

How to Pitch It (Stakeholders)

For executives: "This package eliminates the risk and cost of custom encryption implementations by leveraging Laravel’s proven, industry-standard AES-256-CBC solution. It reduces compliance exposure for sensitive data (GDPR, PCI-DSS) and accelerates feature delivery—freeing engineering resources to focus on product innovation instead of security infrastructure."
For engineering: "It provides a zero-configuration, secure encryption layer with automatic key management, MAC validation, and serialization handling—integrated directly into

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
davejamesmiller/laravel-breadcrumbs
artisanry/parsedown
christhompsontldr/phpsdk
enqueue/dsn
bunny/bunny
enqueue/test
enqueue/null
enqueue/amqp-tools
bower-asset/punycode
bower-asset/inputmask
bower-asset/jquery
bower-asset/yii2-pjax
laravel/nova
spatie/laravel-mailcoach
spatie/laravel-superseeder
laravel/liferaft
nst/json-test-suite
danielmiessler/sec-lists
jackalope/jackalope-transport
twbs/bootstrap4