A
A
avr19722018-04-05 14:38:30
Laravel
avr1972, 2018-04-05 14:38:30

What are Signed URLs?

Reading the Laravel Documentation

Signed URLs
Laravel allows you to easily create "signed" URLs to named routes. These URLs have a "signature" hash appended to the query string which allows Laravel to verify that the URL has not been modified since it was created. Signed URLs are especially useful for routes that are publicly accessible yet need a layer of protection against URL manipulation.
For example, you might use signed URLs to implement a public "unsubscribe" link that is emailed to your customers.
Signed URLs allow Laravel to control that the URL has not been modified since it was created. They are especially useful for routes that are publicly available yet and need to be protected against URL manipulation.
Can you please tell me what this means and how to use it?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
K
Konstantin B., 2018-04-05
@avr1972

for example, we want to transfer data about a new payment to the payment service via the GET parameters
example.com/?foo=1&bar=2
and so that the service knows that the data we are passing to it, we create a signature for it, which we pass with an additional parameter, for example, sign
example.com/? foo=1&bar=2&sign=jhyxchvjvaslnvdalsvsbnkereerb
the signature itself is a hash from the parameters sorted in order (ksort) (naturally without the sign itself) + salt (which we know and knows the service where we send something)
And when we sent our request, the service discards sign and generates a new hash from the remaining parameters (also sorted) + salt and compares it with the hash that we sent to it, and if they match, then it can be sure that the values ​​of the parameters foo and bar are the ones that we passed to him and were not tampered with at the transfer stage

V
Vlad Zhivotnev, 2014-02-15
@0x3

DELL Vostro 5470
The rest of the light and nimble sane laptops with Haswell (and it is important - the battery will last much longer) do not fit into your budget at all. Well, the second vidyuha when it is "turned on" will allow you to play toys of the year 2009 without any problems at all.
It still makes sense to look at the younger HP ProBook 430 G1, Samsung 530U3B, Lenovo IdeaPad U330p, they are at a similar price, but they look much worse from the outside (and maybe not on haswell, check).
Or look already more in weight (from 1.7), but it will be harder to carry them. I wrote you those that are up to 1.6

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question