Debian Codegraph @

cmd/pemit/README

raw
1 pemit
2
3 This is a utility to pem-encode data. It requires a PEM type to be
4 specified via the `-t` flag. Any number of files may be specified on
5 the command line; alternatively, if no arguments are provided or the
6 only argument is "-", pemit will read from standard input.
7
8 Example of standard input:
9 $ dd if=/dev/zero bs=32 count=1 | pemit -t "NULL DATA"
10 1+0 records in
11 1+0 records out
12 32 bytes (32 B) copied, 8.8908e-05 s, 360 kB/s
13 -----BEGIN NULL DATA-----
14 AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=
15 -----END NULL DATA-----
16 $ dd if=/dev/zero bs=32 count=1 | pemit -t "NULL DATA" -
17 1+0 records in
18 1+0 records out
19 32 bytes (32 B) copied, 3.1041e-05 s, 1.0 MB/s
20 -----BEGIN NULL DATA-----
21 AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=
22 -----END NULL DATA-----
23
24 Using files:
25 $ dd if=/dev/zero of=fileA bs=32 count=1
26 1+0 records in
27 1+0 records out
28 32 bytes (32 B) copied, 9.0908e-05 s, 352 kB/s
29 $ dd if=/dev/zero of=fileB bs=32 count=1
30 1+0 records in
31 1+0 records out
32 32 bytes (32 B) copied, 9.0908e-05 s, 352 kB/s
33 $ pemit -t NULL\ DATA fileA
34 -----BEGIN NULL DATA-----
35 AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=
36 -----END NULL DATA-----
37 $ pemit -t NULL\ DATA fileA fileB
38 -----BEGIN NULL DATA-----
39 AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
40 AAAAAAAAAAAAAAAAAAAAAA==
41 -----END NULL DATA-----