Serializes the key pair set to an unspecified encoding. You can deserialize a key pair set with [`SshKeyPairSet::deserialize`].
(&self)
| 247 | /// |
| 248 | /// You can deserialize a key pair set with [`SshKeyPairSet::deserialize`]. |
| 249 | pub fn to_bytes(&self) -> Zeroizing<Vec<u8>> { |
| 250 | Zeroizing::new(serde_json::to_vec(self).expect("serialization of key_set cannot fail")) |
| 251 | } |
| 252 | |
| 253 | /// Deserializes a key pair set that was serialized with |
| 254 | /// [`SshKeyPairSet::serialize`]. |