Skip to main content

encode_portable

Function encode_portable 

Source
pub fn encode_portable(key: &MasterKey) -> Zeroizing<String>
Expand description

Renders key in the portable text form export-key writes.

Two significant lines: a header naming the format, its version and the key_id in hex, then the master key in base64. The buffer is a full copy of the key, hence Zeroizing.