Examples (5)
Encrypt a file and set a specific name
systemd-creds encrypt --name name path/to/input_file path/to/outputDecrypt the file again
systemd-creds decrypt path/to/input_file path/to/output_fileEncrypt text from `stdin`
echo -n text | systemd-creds encrypt --name name - path/to/outputEncrypt the text and append it to the `.service` file (the credentials will be available in `$CREDENTIALS_DIRECTORY`)
echo -n text | systemd-creds encrypt --name name --pretty - - >> serviceCreate a credential that is only valid until the given timestamp
systemd-creds encrypt --not-after "timestamp" path/to/input_file path/to/output_filemade by @shridhargupta | data from tldr-pages