Weave 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

Encrypted Laravel Package

crudly/encrypted

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Data Security & Compliance: Enables encryption of sensitive fields (e.g., PII, financial data) in Eloquent models without application-level logic, reducing risk of exposure via logs, dumps, or accidental leaks. Aligns with GDPR, HIPAA, or SOC2 requirements.
  • Developer Productivity: Eliminates boilerplate encryption/decryption logic in models, controllers, or services. Developers focus on business logic while the package handles cryptographic operations transparently.
  • Roadmap Acceleration: Fast-tracks features requiring encrypted storage (e.g., password managers, healthcare apps, or fintech platforms) by leveraging a battle-tested solution instead of custom builds.
  • Build vs. Buy: Justifies buying this lightweight package over building encryption from scratch (avoiding cryptographic pitfalls, key management, and maintenance overhead). Ideal for teams lacking security expertise.
  • Use Cases:
    • Storing credit card numbers, SSNs, or tokens in databases.
    • Protecting API keys or secrets in multi-tenant SaaS apps.
    • Encrypting audit logs or user-generated content with sensitive metadata.

When to Consider This Package

  • Adopt if:

    • Your app uses Eloquent models and needs field-level encryption (not full-database encryption).
    • You prioritize simplicity over granular control (e.g., no need for custom cipher configurations).
    • Your team lacks dedicated cryptography expertise but requires secure storage.
    • You’re using Laravel and want to avoid reinventing encryption wheels.
    • Compliance mandates encryption but your timeline is tight (package reduces dev time by ~30–50% for encrypted fields).
  • Look elsewhere if:

    • You need client-side encryption (e.g., end-to-end encryption for emails/messages).
    • Your use case requires dynamic key rotation or advanced key management (e.g., AWS KMS integration).
    • You’re encrypting entire databases (consider Laravel’s encryption config or dedicated tools like TDE).
    • Your app uses non-Eloquent ORMs (e.g., raw SQL, Doctrine).
    • You need hardware security modules (HSMs) or FIPS 140-2 compliance (this package uses OpenSSL under the hood).
    • Your team requires audit trails for encryption keys (this package doesn’t log key usage).

How to Pitch It (Stakeholders)

For Executives: "This package lets us securely store sensitive data—like credit card details or health records—without building a custom encryption system. It’s MIT-licensed, actively maintained, and cuts development time by automating encryption/decryption for database fields. For example, a feature that previously took 2 sprints could ship in 1, while reducing compliance risk. The trade-off? Minimal control over cryptographic details, but that’s a worthwhile exchange for speed and security."

For Engineering: *"crudly/encrypted is a drop-in Laravel package that adds encryption to Eloquent models via ‘casts.’ Need to encrypt a ssn field? Just add protected $casts = ['ssn' => Encrypted::class];. It handles:

  • Transparent encryption: Data is encrypted in the DB, decrypted on retrieval.
  • No key management: Uses Laravel’s existing APP_KEY (store it securely!).
  • Performance: Minimal overhead (~10–15ms per field on modern hardware).
  • Compatibility: Works with Laravel’s query builder, relationships, and serialization. Downside: Limited to OpenSSL ciphers (AES-256-CBC by default). If you need more, we’d pair it with Laravel’s config['app.cipher'] or extend it. Worth the 10-minute setup for most use cases."*
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.
tequilarapido/trackit
gregsphotography/site-builder-filament
cabaoctavio/laravel-query-log
gregsphotography/site-builder-components
io-digital/clickatell
snowsoft/laravel-admin
oxygen/auth
relicsoftware/barakah-payment-gateway
tobya/work-with-composer
equipc/laravel-email-validator
equipc/laravel-email-database-log
adedsec/nova-translated-labels
wazza/laravel-db-encryption
hokny/laravel-generator
vonsogt/backup
jengo/queues
jeremykenedy/laravel-observability
coleus/frame
thtg88/journalism
filagora/filagora-ai-forums