1
0
mirror of https://github.com/imgproxy/imgproxy.git synced 2024-11-29 08:22:11 +02:00
imgproxy/examples
Niklas Mollenhauer 524434b63f
Drop dependency + use built-in base64url (#1156)
* Drop dependency + use built-in `base64url`

[`create-hmac`](https://github.com/browserify/createHmac) is meant for compat between node and browser compat and was last updated in 2018.

Computing the HMAC signature on the client (browser) does not make any sense in 99% of the use-cases, as the secrets would be needed on the client side.
This means that we can drop browser support and just use the native node module, which is also exported by the `create-hmac` when running on node.

`Buffer.toString()` also accepts "base64url" as an encoding, so we can drop the `urlSafeBase64` in favor of that.

* Use encoder from hmac instance
2023-05-24 19:30:00 +06:00
..
encrypted_source_url.go Cleanup examples 2022-09-03 00:58:54 +06:00
encrypted_source_url.js Encrypted source URLs docs (#962) 2022-09-02 14:17:43 +06:00
encrypted_source_url.rb Encrypted source URLs docs (#962) 2022-09-02 14:17:43 +06:00
signature-truncated.php Cleanup examples 2022-09-03 00:58:54 +06:00
signature.cs Cleanup examples 2022-09-03 00:58:54 +06:00
signature.dart Cleanup examples 2022-09-03 00:58:54 +06:00
signature.ex Cleanup examples 2022-09-03 00:58:54 +06:00
signature.go Cleanup examples 2022-09-03 00:58:54 +06:00
signature.java Cleanup examples 2022-09-03 00:58:54 +06:00
signature.js Drop dependency + use built-in base64url (#1156) 2023-05-24 19:30:00 +06:00
signature.php Cleanup examples 2022-09-03 00:58:54 +06:00
signature.py Cleanup examples 2022-09-03 00:58:54 +06:00
signature.rb Cleanup examples 2022-09-03 00:58:54 +06:00
signature.rs Cleanup examples 2022-09-03 00:58:54 +06:00
signature.swift Cleanup examples 2022-09-03 00:58:54 +06:00