CodeSampleX

Exemplo

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

Caso

Objetivo
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
Pacotes
cryptography 47.0.0
Ambiente
python
Criado
2026-08-17T02:11:35Z

O que costuma-se supor

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

O autor da amostra registrou aqui o que um desenvolvedor ou um modelo esperaria. O contrato abaixo é o que de fato rodou.

Contrato

Arquivos

Baixar o artefato verificado (tar.gz) — exatamente os bytes contra os quais o contrato rodou

Seeder de origem

csx-seed

Recibos de verificação