Skip to main content

read_key_file

Function read_key_file 

Source
pub fn read_key_file(path: impl AsRef<Path>) -> Result<Zeroizing<[u8; 32]>>
Expand description

Read a key file: 32 raw bytes, 64 hex digits, or a recovery code. On Unix it must be a regular file this user owns, with no access for group or others, as ssh asks of a private key (the keys note, section 6).