Std.Pem
7 public declarations
- Block
One armored block: what it holds, named by its label, and the bytes.
- decode
Str -> Result[Std.Pem.Block, Std.Pem.PemError]The first armored block in the text.
- decodeAll
Str -> Result[Array[Std.Pem.Block], Std.Pem.PemError]Every armored block in the text, in order.
- encode
&Std.Pem.Block -> Result[Str, Std.Pem.PemError]A block written as armored text: a BEGIN line, the base64 body wrapped at
- explain
&Std.Pem.PemError -> StrA sentence saying what was wrong with the text.
- PemError
Why text is not a well-formed armored block.
- withLabel
&Array[Std.Pem.Block] -> Str -> Array[Bytes]The content of every block carrying the label, in order — the
