EVP v0.1.1 Evp View Source

Link to this section Summary

Functions

Generates a key and iv based using MD5 using the password string as start

Link to this section Functions

Link to this function bytes_to_key(password) View Source
bytes_to_key(String.t()) ::
  {:ok, %{key: String.t(), iv: String.t()}} | {:error, String.t()}
Link to this function bytes_to_key(password, salt) View Source
bytes_to_key(String.t(), binary()) ::
  {:ok, %{key: String.t(), iv: String.t()}} | {:error, String.t()}

Generates a key and iv based using MD5 using the password string as start.

salt must be 8 bytes or nil