pub fn encrypt_token(plaintext: &str) -> Option<String>
加密明文 token,返回 nonce‖ct‖tag 的 hex 字符串(存入 token_enc)。
nonce‖ct‖tag
token_enc
失败仅在不持有有效主密钥时(调用方应在签发前已检查 mcp_enc_key().is_some())。
mcp_enc_key().is_some()