summaryrefslogtreecommitdiffstats
path: root/examples/guide-getting-started.rs
blob: 940f90320913d932675cdc3a017182e0c5c8d776 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! https://sequoia-pgp.org/guide/getting-started/

#[macro_use] // For armored!
extern crate sequoia_openpgp as openpgp;
use std::io;

fn main() {
    let mut reader = armored!(
        "-----BEGIN PGP ARMORED FILE-----

         SGVsbG8gd29ybGQhCg==
         =XLsG
         -----END PGP ARMORED FILE-----"
    );

    io::copy(&mut reader, &mut io::stdout()).unwrap();
}