saltpack v1.1.2 Saltpack.Armor View Source

Armoring

Link to this section Summary

Types

A keyword list with formatting options

Link to this section Types

Link to this type formatting_options() View Source
formatting_options() :: [app: String.t, chars_per_word: pos_integer, words_per_line: pos_integer]

A keyword list with formatting options

  • app: the application name (default: “”)
  • chars_per_word: grouping word-size (default: 18)
  • words_per_line: grouping line-size (default: 4)

The start and end framing are always presented on separate lines.

72 (4 words of 18 characters)
+3 (inter-word spaces)
+1 (end-of-message indicator: `.`)
==
76 (default maximum line-length)