detect-secrets
detect-secrets copied to clipboard
Add feature to scan line
Add function to scan line
secrets = SecretsCollection()
with default_settings():
secrets.scan_line('test.txt','XMY_KEY="AKIAY5XAIXXR7ALTOOHH"MY_SECRET="3L091LfFvV/dcoDCy5YO7sWz56bitLQjlVVY2WxmY"')
Hi @karankohli13, thank you for your contribution! Could you please expand on what issue you're trying to solve with this PR?
Hi @karankohli13, thank you for your contribution! Could you please expand on what issue you're trying to solve with this PR?
Hi, this function is useful when using the python library in third party apps, sometimes the use case of scanning a particular line/string for secrets comes up and this function creates a wrapper for that purpose.
I faced the same needs, please add something to scan from general string without reading file. Example is some data which comes from HTTP response from server