pub fn mask_api_key(key: &str) -> StringExpand description
Masks an API key by showing only the first and last 4 characters.
For keys 8 characters or shorter, returns asterisks only.
ยงExamples
use nautilus_core::string::mask_api_key;
assert_eq!(mask_api_key("abcdefghijklmnop"), "abcd...mnop");
assert_eq!(mask_api_key("short"), "*****");