ex_crypto icon indicating copy to clipboard operation
ex_crypto copied to clipboard

Wrapper around the Erlang crypto module for Elixir.

Results 11 ex_crypto issues
Sort by recently updated
recently updated
newest added

iex(4)> System.otp_release() "24" iex(5)> clear_text = "my-clear-text" "my-clear-text" iex(6)> auth_data = "my-auth-data" "my-auth-data" iex(7)> {:ok, aes_256_key} = ExCrypto.generate_aes_key(:aes_256, :bytes) {:ok, } iex(8)> {:ok, {_ad, {init_vec, cipher_text, cipher_tag}}} = **ExCrypto.encrypt(aes_256_key, auth_data,...

Making the return type compatible with the method's typespec, also stopping exceptions from raising when `base64` decoding fails or in case the decoded payload is too small. Preventing smaller input...

1. Replace `Poison` with `Jason` for JSON encoding/decoding 2. Update hex_doc version 3. Format code with `mix format`

Prior to this change, if you selected the `:base64` format when calling `ExCrypto.generate_aes_key/2` you would get back a string that was encoded using `Base.url_encode64`. However, the url-encoding allows certain characters...

Hello, thanks for this nice library. My pull-request is about removing deprecated warnings, support for elixir 1.4 and updating travis.yml to compile with --warnings-as-errors flag. Since Elixir 1.4. is not...

It would be nice if all public functions had a `@spec` type specification so it becomes more obvious from the documentation what types can be given to a function without...

I'm trying to understand what auth_data for GCM mode is. Between https://crypto.stackexchange.com/questions/35727/does-aad-make-gcm-encryption-more-secure which says that it's optional, and https://en.wikipedia.org/wiki/Galois/Counter_Mode has this blurb: As with any message authentication code, if the...

Hi there, I've found your very useful Elixir lib but I'm facing with an issue when I'm using AES-256-CBC private keys Test case that fails: test/ex_public_key_test.exs insert at line :...

I'm trying to do basic AES encryption on some text ``` elixir {:ok, aes_128_key} = ExCrypto.generate_aes_key(:aes_128, :bytes) {:ok, {_iv, cipher_text}} = ExCrypto.encrypt(aes_128_key, "hi") ``` and I'm getting this error ```...

This is the same issue as reported here: https://stackoverflow.com/questions/41336947/erlang-generate-rsa-keys-from-pem-files In this case it causes `ExPublicKey.load/2` to [return an {:error, _} tuple](https://github.com/ntrepid8/ex_crypto/blob/2ba743393aa4d837f658785de3342932e51d43cd/lib/ex_public_key.ex#L140). Loading the corresponding public key produces the `:RSAPublicKey` as...