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
Url Encryptor Bundle

Url Encryptor Bundle Laravel Package

nzo/url-encryptor-bundle

Symfony bundle for encrypting and decrypting URL parameters, helping hide sensitive IDs and create tamper-resistant links. Integrates with Symfony routing so you can generate and resolve encrypted URLs with minimal configuration.

View on GitHub
Deep Wiki
Context7

Symfony Bundle used to Encrypt and Decrypt data and variables in the Web application

Frequently asked questions about Url Encryptor Bundle
Can I use nzo/url-encryptor-bundle in a Laravel application?
Not directly. nzo/url-encryptor-bundle is a Symfony bundle, so it ships a Symfony DI extension and configuration tree rather than a Laravel service provider, facade, or config publish tag. There is no Laravel version support matrix and no Laravel test coverage. You could hand-wire the service inside a Laravel service provider, but you would inherit a Symfony dependency tree for functionality Laravel already provides.
What does nzo/url-encryptor-bundle actually do?
It encrypts and decrypts arbitrary values, primarily URL parameters, so sensitive identifiers are not exposed in links. The surface area is thin: a DI extension, a configuration node holding a secret key, and a service wrapping an authenticated-encryption cipher. It integrates with Symfony routing so encrypted URLs can be generated and resolved with minimal configuration.
What is the Laravel equivalent of this Symfony bundle?
Laravel covers the same ground with first-party primitives. Use encrypt() and decrypt() or the Crypt facade for confidential values, and URL::signedRoute() or URL::temporarySignedRoute() for tamper-evident links. The signed route middleware rejects tampered URLs without any extra dependency. For most Laravel use cases this maps one-to-one onto the bundle's encrypt and decrypt calls.
Do I need encrypted URLs or signed URLs in Laravel?
Start by deciding whether the requirement is confidentiality, integrity, or both. Signed URLs solve integrity alone, meaning tampering is detected, and carry far less operational burden since no key-driven ciphertext format is exposed. Encryption also hides the payload but adds key management, ciphertext length, and format lock-in. If the only goal is preventing users from editing an ID in a link, signed routes are usually the correct answer.
How much does encrypting URL parameters increase link length?
Expect roughly 1.4x expansion from base64 encoding plus fixed overhead for the IV and authentication tag. That growth matters because long links collide with proxy and CDN header limits and get truncated by email clients. If you are encrypting anything beyond a short identifier, measure the resulting URL against your infrastructure limits before committing.
How would I install this bundle in a Laravel project?
There is no composer require flow that just works, because the package has no Laravel auto-discovery. You would register the bundle's service and configuration manually in a service provider and supply the secret key yourself. That is the highest-friction path and it pulls Symfony components into an app that does not otherwise need them. Porting roughly 50 to 150 lines of cipher logic into a first-party service is usually cheaper and easier to test.
Who handles encryption key rotation for this bundle?
You do. The bundle reads a secret key from configuration and encrypts with it; key versioning, rotation, and multi-key decrypt-during-rollover are entirely out of scope. In Laravel, the encrypter supports previous keys via APP_PREVIOUS_KEYS, which gives you rollover for free. If you have to build rotation yourself anyway, adopting an external package saves you very little.
Is nzo/url-encryptor-bundle actively maintained and safe for production?
The signals are weak for a component sitting on a trust boundary. It has roughly 98 stars, no dependents, a single maintainer, and release metadata that is internally inconsistent. There is no published security disclosure policy, no evidence of an external audit, and no PHP or framework version support matrix. Weigh that carefully before putting it in the path of every generated link.
Does this bundle support link expiry or revocation?
No. It encrypts and decrypts values; it does not model expiry, single-use tokens, or revocation. In Laravel, URL::temporarySignedRoute() gives you expiry natively, and revocation is typically handled with an opaque server-side identifier or a token table. If your business needs expiring or revocable links, that is a design requirement this bundle does not address.
How do I migrate existing ciphertext produced by this bundle to Laravel?
Only do it if a corpus of ciphertext already exists in the wild, because once links are issued the byte format becomes a compatibility contract. If you must, port the cipher into a first-party service with a versioned key so you can decrypt old payloads during rollover and emit the new format. If there is no existing corpus, the compatibility argument disappears and Laravel's native encrypt() and signed routes win outright. Avoid writing PII into URLs at all; use an opaque server-side identifier instead.
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.
robertmarney/lara-hierarchial-collections
simonschaufi/rule-doc-generator
emissaoja/emissaoja
blackbricksoftware/gravityforms-civicrm-form-processor
al-rahabi/fancy-crud
jinas/dhivatar-component
mltstephane/laravel-quality
bernskiold/laravel-talentlms
bernskioldmedia/laravel-form-architect
youbar/easy-crud
c-point-labs/laravel-hostyourai
dbravoan/dbcms-admin-theme-dbcms
dbravoan/dbcms-theme-db-cyber
dbravoan/dbcms-blocks-basic
dbravoan/dbcms-module-content-audit
dbravoan/dbcms-module-ai-assistant
paygate-to/paygate-php
padosoft/askmydocs-connector-base
defstudio/supercharged-carbon
bernskioldmedia/laravel-matomo