blob: 0b9b3a135e9704df2d58dfada9dd79e948063407 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
//! https://preview.sequoia-pgp.org/guide/getting-started/
#[macro_use] extern crate openpgp; // For armored!
use openpgp::armor; // For armored!
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();
}
|