The hash generator is a tool you can use to:
-
Create signed URLs on an ad-hoc basis
-
Learn how MediaVault works so you can implement hashes within your own applications
For additional information about MediaVault and further configuration options, see the MediaVault Guide.
Instructions
-
For any given URL, fill out the fields in the top section of the page (See Configuration Fields). As you enter information, fields in the Output section are updated (See Output Fields).
-
Copy the value of the Secure URL field and publish it in place of the non-protected URL.
Configuration Fields
To gain greater insight into the purpose of all fields, see Parameters.
Field | Description |
---|---|
Shared Secret | The shared secret that you have set on the respective CDN configuration. If you don’t know your Shared Secret, refer to your CDN configurations in Control or contact Support. |
Target URL | The URL you want to protect. |
Start Date / Time | Optional The time the request is authorized from (represented as Unix epoch seconds). End users can’t access the media before the start time Optional |
End Date / Time | Optional The time the request is authorized to (represented as Unix seconds). End users can’t access the media after the end time. |
IP Address / Mask | Optional The IP address, IP address range, or Mask you wish to make your content available to. |
Referrer URL | Optional Domain name from the Referer request header, usually the media player that is authorized to play your content. |
Prefix | Optional For cookie-based , the length of the Shared Secret + Target URL that should be hashed. See Using the Prefix Slider for instructions. |
Using the Prefix Slider
The Prefix field has a slider that lets you generate a single hash to allow access to multiple objects nested under a single path. The slider value determines how much of the Shared Secret + Target URL should be hashed, and ranges from 0 to the length of the Target URL field.
Use the slider to generate a single hash to allow access to multiple objects nested under a single path.
Slider Value | How Much of Shared Secret + Target URL to Hash |
---|---|
0 | Shared Secret + all of the Target URL The URL that will be hashed is displayed as an example under the slider. This slider (option p) is added to omit hashing other options like IP address or referrer or just to strip the part of the URL. |
1 through N | All of the Shared secret + N characters of the Target URL. |
Example
Let Shared Secret = md5test
Let Target URL = http://llnw.com/media-vault/media.mp4
The slider maximum value is 37, the length of the Target URL.
Slider Value | Result to Hash |
---|---|
0 | md5testhttp://llnw.com/media-vault/media.mp4 |
1 | md5testh |
2 | md5testht |
37 | md5testhttp://http://llnw.com/media-vault/media.mp4 |
Output Fields
Field | Description/Instructions |
---|---|
Target URL with Options | Informational only1 The URL without hash specified, essentially the same as Secure URL but without h (hash) parameter. |
Actual MD5 | Informational only1 Shows how the hash is generated, which is then passed to h parameter. It is formed as follows: <md5secret><url><parameters> . |
Secure URL | The result of hashing: - Shared Secret - Target URL - Start Date / Time, End Date / Time, IP Address / Mas, and Referrer URL, if provided. |
1These fields are provided in case you want to generate the secure URL yourself.