Skip to main content

ENTRY_BYTES

Constant ENTRY_BYTES 

Source
pub const ENTRY_BYTES: usize = 2400;
Expand description

The most a keyring entry holds on every system: Windows’ Credential Manager keeps 2560 bytes (CRED_MAX_CREDENTIAL_BLOB_SIZE), and a text kept as a password there takes two bytes a character (UTF-16). A secret kept as bytes (save_named_bytes) takes its UTF-8 length; this leaves a margin.