{"repo":"danielberkompas/cloak","free":true,"listed":false,"github":"https://github.com/danielberkompas/cloak","clone":"git clone https://github.com/danielberkompas/cloak.git","description":"Elixir encryption library designed for Ecto","language":"Elixir","stars":624,"topics":["elixir","encryption","ecto","hex"],"license":"MIT","category":"security-tools","readme_excerpt":"Cloak ====== Cloak is an Elixir encryption library that implements several best practices and conveniences for Elixir developers: - Random IVs - Tagged ciphertexts - Elixir-native configuration Documentation - Hex Documentation (Includes installation guide) - How to upgrade from Cloak 0.9.x to 1.0.x Examples Encrypt / Decrypt Reencrypt With New Algorithm/Key Configuration Features Random Initialization Vectors (IV) Every strong encryption algorithm recommends unique initialization vectors. Cloak automatically generates unique vectors using :crypto.strong rand bytes , and includes the IV in the ciphertext. This greatly simplifies storage and is not a security risk. Tagged Ciphertext Each ciphertext contains metadata about the algorithm and key which was used to encrypt it. This allows Cloak to automatically select the correct key and algorithm to use for decryption for any given ciphertext. This makes key rotation much easier, because you can easily tell whether any given ciphertext is using the old key or the new key. Elixir-Native Configuration Cloak works through Vault modules which you define in your app, and add to your supervision tree. You can have as many vaults as you wish running simultaneously in your project. (This works well with umbrella apps, or any runtime environment where you have multiple OTP apps using Cloak) Ecto Support You can use Cloak to transparently encrypt Ecto fields, using cloak ecto . Security Notes - Cloak is built on Erlang's crypto library, an","default_branch":null,"files":null,"tree":[],"storefront":"/r/danielberkompas","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/danielberkompas/cloak/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}