Rechercher dans ce blog

Articles

Hello,
Here's a helper that can be used to encrypt/decrypt ids that are url safe.
For example, if your user needs to download an invoice, it's clearly more secure to provide a url like
http://yousite.com/download-invoice/TVZiSlU0a0VHWnlZR2NTOTRwYy9Sdz09
instead of:
http://yousite.com/download-invoice/13
As there can be a malicious user that will try to download invoices from others, or you don't want the user to know what the invoice id is.
Example, in your controller: