encrypted_secrets v0.2.0 EncryptedSecrets.WriteSecrets View Source
Provides a method for reading a file then writing it as an encrypted string
Link to this section Summary
Functions
Writes an encrypted blank file to output_path
using key
.
Used for first time setup
Reads the contents of input_path
, encrypts it using key
,
and writes it to output_path
Link to this section Functions
Link to this function
write_blank_file(key, output_path) View Source
Writes an encrypted blank file to output_path
using key
.
Used for first time setup
Returns {:ok, filepath} | {:error, message}
Link to this function
write_file(key, input_path, output_path) View Source
Reads the contents of input_path
, encrypts it using key
,
and writes it to output_path
Returns {:ok, filepath} | {:error, message}