feat: add crypto/pkcs8,ssh-keys

This commit is contained in:
2020-12-06 11:41:37 +08:00
parent 8b5e9e54c1
commit 14a473103a
8 changed files with 367 additions and 1 deletions

View File

@@ -0,0 +1,6 @@
fn main() {
let c = rust_util::util_file::read_file_content("~/.ssh/id_rsa.pub").unwrap();
let k = ssh_keys::openssh::parse_public_key(&c).unwrap();
println!("{:#?}", k); // ???
println!("{}", k.to_string()); // ???
}