commit b81fd31b293feb48f54d6f7e72b751093bff5d04
parent f5ca1be4938a3ceee04283d1bce0f221c8181c40
Author: srfsh <dev@srf.sh>
Date: Thu, 20 Oct 2022 20:16:21 +0300
dep update plug_crypto v1.2.3
Diffstat:
8 files changed, 25 insertions(+), 9 deletions(-)
diff --git a/.deps/plug_crypto/.hex b/.deps/plug_crypto/.hex
Binary files differ.
diff --git a/.deps/plug_crypto/CHANGELOG.md b/.deps/plug_crypto/CHANGELOG.md
@@ -1,5 +1,13 @@
# Changelog
+## v1.2.3 (2022-08-19)
+
+ * Remove warnings on Elixir v1.14
+
+## v1.2.2 (2021-03-25)
+
+ * Remove warnings on Elixir v1.12
+
## v1.2.1 (2021-02-17)
* Add support for Erlang/OTP 24
diff --git a/.deps/plug_crypto/README.md b/.deps/plug_crypto/README.md
@@ -15,7 +15,7 @@ def deps do
end
```
-If you're using [Plug][plug], you can already use the functionality in plug_crypto since Plug depends on it.
+If you're using [Plug](https://github.com/elixir-plug/plug), you can already use the functionality in plug_crypto since Plug depends on it.
## Contributing
diff --git a/.deps/plug_crypto/hex_metadata.config b/.deps/plug_crypto/hex_metadata.config
@@ -14,4 +14,4 @@
[{<<"GitHub">>,<<"https://github.com/elixir-plug/plug_crypto">>}]}.
{<<"name">>,<<"plug_crypto">>}.
{<<"requirements">>,[]}.
-{<<"version">>,<<"1.2.2">>}.
+{<<"version">>,<<"1.2.3">>}.
diff --git a/.deps/plug_crypto/lib/plug/crypto.ex b/.deps/plug_crypto/lib/plug/crypto.ex
@@ -6,7 +6,7 @@ defmodule Plug.Crypto do
`Plug.Crypto.MessageEncryptor`, and `Plug.Crypto.MessageVerifier`.
"""
- use Bitwise
+ import Bitwise
alias Plug.Crypto.{KeyGenerator, MessageVerifier, MessageEncryptor}
@doc """
@@ -123,7 +123,7 @@ defmodule Plug.Crypto do
end
defp masked_compare(<<x, left::binary>>, <<y, right::binary>>, <<z, mask::binary>>, acc) do
- xorred = bxor(x , bxor(y, z))
+ xorred = bxor(x, bxor(y, z))
masked_compare(left, right, mask, acc ||| xorred)
end
@@ -155,6 +155,9 @@ defmodule Plug.Crypto do
Plug.Crypto.sign(conn.secret_key_base, "user-secret", {:elixir, :terms})
+ A key will be derived from the secret key base and the given user secret.
+ The key will also be cached for performance reasons on future calls.
+
## Options
* `:key_iterations` - option passed to `Plug.Crypto.KeyGenerator`
@@ -178,6 +181,11 @@ defmodule Plug.Crypto do
@doc """
Encodes, encrypts, and signs data into a token you can send to clients.
+ Plug.Crypto.encrypt(conn.secret_key_base, "user-secret", {:elixir, :terms})
+
+ A key will be derived from the secret key base and the given user secret.
+ The key will also be cached for performance reasons on future calls.
+
## Options
* `:key_iterations` - option passed to `Plug.Crypto.KeyGenerator`
@@ -192,9 +200,9 @@ defmodule Plug.Crypto do
`86400` seconds (1 day) and it may be overridden on `decrypt/4`.
"""
- def encrypt(key_base, secret, token, opts \\ [])
+ def encrypt(key_base, secret, data, opts \\ [])
when is_binary(key_base) and is_binary(secret) do
- encrypt(key_base, secret, nil, token, opts)
+ encrypt(key_base, secret, nil, data, opts)
end
@doc false
diff --git a/.deps/plug_crypto/lib/plug/crypto/key_generator.ex b/.deps/plug_crypto/lib/plug/crypto/key_generator.ex
@@ -14,7 +14,7 @@ defmodule Plug.Crypto.KeyGenerator do
See http://tools.ietf.org/html/rfc2898#section-5.2
"""
- use Bitwise
+ import Bitwise
@max_length bsl(1, 32) - 1
@doc """
diff --git a/.deps/plug_crypto/mix.exs b/.deps/plug_crypto/mix.exs
@@ -1,7 +1,7 @@
defmodule Plug.Crypto.MixProject do
use Mix.Project
- @version "1.2.2"
+ @version "1.2.3"
@description "Crypto-related functionality for the web"
@source_url "https://github.com/elixir-plug/plug_crypto"
diff --git a/mix.lock b/mix.lock
@@ -28,7 +28,7 @@
"nimble_parsec": {:hex, :nimble_parsec, "1.2.3", "244836e6e3f1200c7f30cb56733fd808744eca61fd182f731eac4af635cc6d0b", [:mix], [], "hexpm", "c8d789e39b9131acf7b99291e93dae60ab48ef14a7ee9d58c6964f59efb570b0"},
"plug": {:hex, :plug, "1.13.6", "187beb6b67c6cec50503e940f0434ea4692b19384d47e5fdfd701e93cadb4cc2", [:mix], [{:mime, "~> 1.0 or ~> 2.0", [hex: :mime, repo: "hexpm", optional: false]}, {:plug_crypto, "~> 1.1.1 or ~> 1.2", [hex: :plug_crypto, repo: "hexpm", optional: false]}, {:telemetry, "~> 0.4.3 or ~> 1.0", [hex: :telemetry, repo: "hexpm", optional: false]}], "hexpm", "02b9c6b9955bce92c829f31d6284bf53c591ca63c4fb9ff81dfd0418667a34ff"},
"plug_cowboy": {:hex, :plug_cowboy, "2.5.2", "62894ccd601cf9597e2c23911ff12798a8a18d237e9739f58a6b04e4988899fe", [:mix], [{:cowboy, "~> 2.7", [hex: :cowboy, repo: "hexpm", optional: false]}, {:cowboy_telemetry, "~> 0.3", [hex: :cowboy_telemetry, repo: "hexpm", optional: false]}, {:plug, "~> 1.7", [hex: :plug, repo: "hexpm", optional: false]}], "hexpm", "ea6e87f774c8608d60c8d34022a7d073bd7680a0a013f049fc62bf35efea1044"},
- "plug_crypto": {:hex, :plug_crypto, "1.2.2", "05654514ac717ff3a1843204b424477d9e60c143406aa94daf2274fdd280794d", [:mix], [], "hexpm", "87631c7ad914a5a445f0a3809f99b079113ae4ed4b867348dd9eec288cecb6db"},
+ "plug_crypto": {:hex, :plug_crypto, "1.2.3", "8f77d13aeb32bfd9e654cb68f0af517b371fb34c56c9f2b58fe3df1235c1251a", [:mix], [], "hexpm", "b5672099c6ad5c202c45f5a403f21a3411247f164e4a8fab056e5cd8a290f4a2"},
"postgrex": {:hex, :postgrex, "0.16.5", "fcc4035cc90e23933c5d69a9cd686e329469446ef7abba2cf70f08e2c4b69810", [:mix], [{:connection, "~> 1.1", [hex: :connection, repo: "hexpm", optional: false]}, {:db_connection, "~> 2.1", [hex: :db_connection, repo: "hexpm", optional: false]}, {:decimal, "~> 1.5 or ~> 2.0", [hex: :decimal, repo: "hexpm", optional: false]}, {:jason, "~> 1.0", [hex: :jason, repo: "hexpm", optional: true]}, {:table, "~> 0.1.0", [hex: :table, repo: "hexpm", optional: true]}], "hexpm", "edead639dc6e882618c01d8fc891214c481ab9a3788dfe38dd5e37fd1d5fb2e8"},
"ranch": {:hex, :ranch, "1.8.0", "8c7a100a139fd57f17327b6413e4167ac559fbc04ca7448e9be9057311597a1d", [:make, :rebar3], [], "hexpm", "49fbcfd3682fab1f5d109351b61257676da1a2fdbe295904176d5e521a2ddfe5"},
"telemetry": {:hex, :telemetry, "1.1.0", "a589817034a27eab11144ad24d5c0f9fab1f58173274b1e9bae7074af9cbee51", [:rebar3], [], "hexpm", "b727b2a1f75614774cff2d7565b64d0dfa5bd52ba517f16543e6fc7efcc0df48"},