View Source NervesHubCLI.Crypto (nerves_hub_cli v2.1.0)

Summary

Functions

decrypt(cipher_text, password, tag \\ "")

@spec decrypt(binary(), any(), binary()) :: {:ok, binary()} | {:error, String.t()}

encrypt(plain_text, password, tag \\ "")

@spec encrypt(String.t(), String.t(), String.t()) :: binary() | {:error, String.t()}