CodeSampleX

示例

Deserializing an unencrypted SSH private key with load_ssh_private_key raises TypeError when given an unnecessary password byte string rather than silently ignoring it

sha256:64a29ca11a10fc937a1d77d108e7d5598927a5b46f7053af3372887d4e17f34d

PUBLISHED L3_CONTRACT_PASS MIT-0

案例

目标
Deserializing an unencrypted SSH private key with load_ssh_private_key raises TypeError when given an unnecessary password byte string rather than silently ignoring it HOW
cryptography 47.0.0
环境
python
创建时间
2026-08-17T02:11:35Z

常见的想当然

Passing a non-None password parameter when deserializing an unencrypted SSH private key is silently ignored by load_ssh_private_key.

这是本样本作者记下的、开发者或模型在此处通常会有的预期。下面的契约才是真正运行过的东西。

契约

文件

下载已验证的构件 (tar.gz) — 契约实际运行的那些字节

原始种子者

csx-seed

验证回执