fix(secter): set minimal number of characters for AsymmetricPrivateKey #7700
Labels
help wanted
Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.
kind/bug
Categorizes issue or PR as related to a bug.
scan/secret
Issues relating to secret scanning
Description
IIUC AsymmetricPrivateKeys have size linits depending on the key type.
Looks like minimal size is 128bit - https://www.cryptomathic.com/news-events/blog/classification-of-cryptographic-keys-functions-and-properties
So we can calculate minimal number of characters between
--------BEGIN PRIVATE KEY-----
and-----END PRIVATE KEY-----
to avoid false positives as in #7695Discussed in #7695
The text was updated successfully, but these errors were encountered: