cloak_ecto
cloak_ecto copied to clipboard
Encrypted fields for Ecto
See also https://erlef.github.io/security-wg/secure_coding_and_deployment_hardening/sensitive_data
[Erlang/OTP 24.2](https://www.erlang.org/patches/otp-24.2) ships with [:crypto.pbkdf2_hmac](https://www.erlang.org/doc/man/crypto.html#pbkdf2_hmac-5). I'm suggesting a new major version of `cloak_ecto` that requires OTP 24.2+.
Hello. I'm trying to implement the same thing that we have during config MyApp.Vault. For example: I can have more than one cipher: ` Keyword.put(config, :ciphers, [ default: {Cloak.Ciphers.AES.GCM, tag:...
Hi all, I presume I can't order by in Pg as the data is encrypted and Pg doesn't know what it is? Thanks.
This is a breaking change. OTP versions > 24.2 now include the `pbkdf2_hmac/5` function in the `:crypto` module, thanks to this PR: https://github.com/erlang/otp/pull/5421 The new function does not include support...
# Problem It's common to need to do migrations in the database and convert data between encrypted fields with the following conditions: 1. elixir is not installed (iex/mix not available)...
Hello, I'm running into an issue when attempting to [copy existing data to encrypted fields](https://hexdocs.pm/cloak_ecto/encrypt_existing_data.html#copy-data-to-new-fields) on [fly.io](https://www.fly.io) (it works fine locally). The error is as follows: ```bash * 1st argument:...
I have a schema with one encrypted field and want to rotate the keys, but the schema also has a `field :state, Ecto.Enum, values: [:enabled, :disabled, :archived], default: :enabled` field...
Hello all! I'm sorry if the question was already araised (I didn't find anything), but was is the reason why Cloak migrator doesn't support custom Ecto embeds? https://github.com/danielberkompas/cloak_ecto/blob/master/lib/cloak_ecto/migrator.ex ```elixir defp...
i use Decimal for sensitive numbers and cloak_ecto doesn't seem to support it. it doesn't look too hard to implement, but can someone check this? seems to be working for...