detect_private_key: add textual version of `PKCS #8` encrypted privat… · lircs/pre-commit-hooks@ccdf02d · GitHub
Skip to content

Commit ccdf02d

Browse files
committed
detect_private_key: add textual version of PKCS pre-commit#8 encrypted private keys
As described by RFC7468 and RFC5958, keys that are encoded using the "ENCRYPTED PRIVATE KEY" label are described as private key information and therefore can contain secrets, even though encrypted. Signed-off-by: Luís Ferreira <contact@lsferreira.net>
1 parent cf059f0 commit ccdf02d

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

pre_commit_hooks/detect_private_key.py

Lines changed: 1 addition & 0 deletions

tests/detect_private_key_test.py

Lines changed: 1 addition & 0 deletions

0 commit comments

Comments
 (0)