feat: add crypto/pkcs8,ssh-keys
This commit is contained in:
6
__crypto/ssh-keys/src/main.rs
Normal file
6
__crypto/ssh-keys/src/main.rs
Normal 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()); // ???
|
||||
}
|
||||
Reference in New Issue
Block a user