summaryrefslogtreecommitdiffstats
path: root/examples/guide-getting-started.rs
blob: 9efff752e0b510f7518896b4e10285dc49e81d7b (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 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();
}