1
0
mirror of https://github.com/imgproxy/imgproxy.git synced 2025-02-07 11:36:25 +02:00

Update docs

This commit is contained in:
DarthSim 2023-06-17 20:15:11 +03:00
parent 8227592451
commit 56b294cbd3
3 changed files with 4 additions and 4 deletions

View File

@ -885,7 +885,7 @@ When using an encoded source URL, you can specify the [extension](#extension) af
/aHR0cDovL2V4YW1w/bGUuY29tL2ltYWdl/cy9jdXJpb3NpdHku/anBn.png /aHR0cDovL2V4YW1w/bGUuY29tL2ltYWdl/cy9jdXJpb3NpdHku/anBn.png
``` ```
### Encrypted with AES-CBC ### Encrypted with AES-CBC![pro](./assets/pro.svg) :id=encrypted-with-aes-cbc
The source URL can be encrypted with the AES-CBC algorithm, prepended by the `/enc/` segment. The encrypted URL can be split with `/` as desired: The source URL can be encrypted with the AES-CBC algorithm, prepended by the `/enc/` segment. The encrypted URL can be split with `/` as desired:

View File

@ -36,7 +36,7 @@ The source URL can be encoded with URL-safe Base64. The encoded URL can be split
/aHR0cDovL2V4YW1w/bGUuY29tL2ltYWdl/cy9jdXJpb3NpdHku/anBn /aHR0cDovL2V4YW1w/bGUuY29tL2ltYWdl/cy9jdXJpb3NpdHku/anBn
``` ```
#### Encrypted with AES-CBC #### Encrypted with AES-CBC![pro](./assets/pro.svg) :id=encrypted-with-aes-cbc
The source URL can be encrypted with the AES-CBC algorithm, prepended by the `/enc/` segment. The encrypted URL can be split with `/` as desired: The source URL can be encrypted with the AES-CBC algorithm, prepended by the `/enc/` segment. The encrypted URL can be split with `/` as desired:

View File

@ -23,8 +23,8 @@ A signature is a URL-safe Base64-encoded HMAC digest of the rest of the path, in
* Take the part of the path after the signature: * Take the part of the path after the signature:
* For [processing URLs](generating_the_url.md): `/%processing_options/%encoded_url.%extension` or `/%processing_options/plain/%plain_url@%extension` * For [processing URLs](generating_the_url.md): `/%processing_options/%encoded_url.%extension`, `/%processing_options/plain/%plain_url@%extension`, or `/%processing_options/enc/%encrypted_url.%extension`
* For [info URLs](getting_the_image_info.md): `/%encoded_url` or `/plain/%plain_url` * For [info URLs](getting_the_image_info.md): `/%encoded_url`, `/plain/%plain_url`, or `/enc/%encrypted_url`
* Add a salt to the beginning. * Add a salt to the beginning.
* Calculate the HMAC digest using SHA256. * Calculate the HMAC digest using SHA256.
* Encode the result with URL-safe Base64. * Encode the result with URL-safe Base64.