pub fn encode(kind: &str, data: &[u8]) -> String
pem
Encodes data as a PEM block with the given type. Lines are 64 characters, using \n line endings.